Skip to content

Commit

Permalink
AncntKpr Lvl11 - Level is no longer lost when last dragon is claimed
Browse files Browse the repository at this point in the history
This fixes an issue I introduced last year when I made the player lose
the level when it could no longer be won. Once you claimed the first
dragon it no longer applies.
  • Loading branch information
Loobinex committed Aug 26, 2017
1 parent 12277e6 commit 8347e34
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions campgns/ancntkpr/map00011.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
REM ********************************************
REM Ancient Keeper campaign for KeeperFX
REM Script for Level 11
REM Version 1.10
REM Version 1.20
REM ********************************************

SET_GENERATE_SPEED(400)
Expand Down Expand Up @@ -52,11 +52,15 @@ MAGIC_AVAILABLE(PLAYER2,POWER_HEAL_CREATURE,1,0)
REM First, player has to claim a portal and receive a dragon from it
IF(PLAYER0,DRAGON>0)
DISPLAY_OBJECTIVE(54,PLAYER0)
SET_FLAG(PLAYER0,FLAG2,1)
ENDIF

REM Player is defeated when all dragons are gone before he gets his first one.
IF_AVAILABLE(PLAYER0,DRAGON <= 0)
DISPLAY_OBJECTIVE(144,PLAYER0)
LOSE_GAME
IF(PLAYER0,FLAG2 <= 0)
DISPLAY_OBJECTIVE(144,PLAYER0)
LOSE_GAME
ENDIF
ENDIF

IF(PLAYER0,HORNY>0)
Expand Down

0 comments on commit 8347e34

Please sign in to comment.