玩家方法reach_winCheck改为check_lineReach,新增攻击达标检测函数
This commit is contained in:
@@ -2641,11 +2641,16 @@ function player.lose(P)
|
||||
end
|
||||
end
|
||||
|
||||
function PLY.reach_winCheck(P)
|
||||
function PLY.check_lineReach(P)
|
||||
if P.stat.row>=P.gameEnv.target then
|
||||
P:win("finish")
|
||||
end
|
||||
end
|
||||
function PLY.check_attackReach(P)
|
||||
if P.stat.atk>=P.gameEnv.target then
|
||||
P:win("finish")
|
||||
end
|
||||
end
|
||||
--------------------------<\Events>--------------------------
|
||||
|
||||
--------------------------<Control>--------------------------
|
||||
|
||||
Reference in New Issue
Block a user