#--------------------------------------------------------------------------
# ● 设置 MaxHP
# new_maxhp : 新的 MaxHP
#--------------------------------------------------------------------------
def maxhp=(new_maxhp)
@maxhp_plus += new_maxhp - self.maxhp
@maxhp_plus = [[@maxhp_plus, -9999].max, 9999].min
@hp = [@hp, self.maxhp].min
end
#--------------------------------------------------------------------------
# ● 设置 MaxMP
# new_maxmp : 新的 MaxMP
#--------------------------------------------------------------------------
def maxmp=(new_maxmp)
@maxmp_plus += new_maxmp - self.maxmp
@maxmp_plus = [[@maxmp_plus, -9999].max, 9999].min
@mp = [@mp, self.maxmp].min
end
@maxhp_plus = [[@maxhp_plus, -9999].max, 9999].min
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |