Deactivate jumpgate if Pandoran choose to attack the player.
This commit is contained in:
parent
592a020bb3
commit
8f438c4467
|
@ -986,7 +986,7 @@ void checkSuspicionLevel(void)
|
||||||
if (battle.numEnemies > 0 && battle.stats[STAT_TIME] % 5 == 0)
|
if (battle.numEnemies > 0 && battle.stats[STAT_TIME] % 5 == 0)
|
||||||
{
|
{
|
||||||
battle.suspicionLevel++;
|
battle.suspicionLevel++;
|
||||||
battle.suspicionCoolOff = FPS * 5;
|
battle.suspicionCoolOff = FPS * 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (battle.suspicionLevel >= MAX_SUSPICION_LEVEL)
|
if (battle.suspicionLevel >= MAX_SUSPICION_LEVEL)
|
||||||
|
@ -999,6 +999,8 @@ void checkSuspicionLevel(void)
|
||||||
|
|
||||||
destroyScript();
|
destroyScript();
|
||||||
|
|
||||||
|
activateJumpgate(0);
|
||||||
|
|
||||||
activateTrespasserSpawner();
|
activateTrespasserSpawner();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ extern Entity *spawnMine(int type);
|
||||||
extern void addMessageBox(char *title, char *body, int type);
|
extern void addMessageBox(char *title, char *body, int type);
|
||||||
extern void destroyScript(void);
|
extern void destroyScript(void);
|
||||||
extern void activateTrespasserSpawner(void);
|
extern void activateTrespasserSpawner(void);
|
||||||
|
extern void activateJumpgate(int activate);
|
||||||
|
|
||||||
extern Battle battle;
|
extern Battle battle;
|
||||||
extern Colors colors;
|
extern Colors colors;
|
||||||
|
|
Loading…
Reference in New Issue