class Game_Unit #-------------------------------------------------------------------------- # ● 判定是否全灭 #-------------------------------------------------------------------------- def all_dead? members.all? {|member| member.dead? || member.state?(2) } #改这里的数字2,就是改变状态的id end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |