#--------------------------------------------------------------------------
# ● 武器射程の取得
#--------------------------------------------------------------------------
def w_range
n = 0
if not dual_wield?
for item in equips.compact do n += set_equip_add_status(item, 1) end
else
weapon1 = weapons[0] != nil ? set_equip_add_status(weapons[0], 1) : 0
weapon2 = weapons[1] != nil ? set_equip_add_status(weapons[1], 1) : 0
n += weapon1 >= weapon2 ? weapon1 : weapon2
for item in armors.compact do n += set_equip_add_status(item, 1) end
end
for state in states do n += set_state_add_status(state, 1) end
[[Integer(n), 1].max, 7].min
end