#--------------------------------------------------------------------------
# ● 获取物理防御
#--------------------------------------------------------------------------
def pdef
#标记
n = base_pdef
for i in @states
m = base_pdef * $data_states[i].pdef_rate / 100.0 - base_pdef
n += m
end
return Integer(n)
end
#--------------------------------------------------------------------------
# ● 获取物理防御
#--------------------------------------------------------------------------
def pdef
#标记
n = base_pdef
for i in @states
m = base_pdef * $data_states[i].pdef_rate / 100.0 - base_pdef
n += m
end
return Integer(n)
end