def steps #首先计算属性的数值 base = ((self.agi + self.dex)*8/2000).floor #基础值 #根据自身等级再次计算,取最大值 满级为5 base = [(self.level*0.05).floor,base].max #基础值不能大于10 base = [base,7].min #加成 base += self.move_plus return base end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |