#-------------------------------------------------------------------
# ● 获取 MaxHP
#-------------------------------------------------------------------
def maxhp
n = [[base_maxhp + @maxhp_plus, 1].max, 999999].min
for i in @states
n *= $data_states[i].maxhp_rate / 100.0
end
n = [[Integer(n), 1].max, 999999].min
return n
end
请问一下, @maxhp_plus和@states除了初始化的量外,好像没有另外给这两个变量赋值。