本帖最后由 soulsaga 于 2025-1-17 14:07 编辑
#-------------------------------------------------------------------------- # ● 攻撃力の取得 #-------------------------------------------------------------------------- def atk n = [[base_atk + @atk_plus, 1].max, 999].min for state in states do n *= state.atk_rate / 100.0 end n = [[Integer(n), 1].max, 999].min return n end
#--------------------------------------------------------------------------
# ● 攻撃力の取得
#--------------------------------------------------------------------------
def atk
n = [[base_atk + @atk_plus, 1].max, 999].min
for state in states do n *= state.atk_rate / 100.0 end
n = [[Integer(n), 1].max, 999].min
return n
end
在这里搞就好啦..即时有效
也不用减回去 |