def get_battle_effective#定义获得实际战斗力 sum = 0#数字=0 @member.each do|group|#@每个do|组的成员| next if group.get_all_dead#如果下一个组。全部阵亡 num = group.calculate_effective#数字=组。计算有效 sum+= num #总和+=数字 end return sum.round*10 end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |