Handle lowering suspicion level in main entity code.
This commit is contained in:
parent
ee16c25a9b
commit
c02c4686f3
|
@ -175,6 +175,11 @@ void doEntities(void)
|
||||||
{
|
{
|
||||||
battle.missionTarget = NULL;
|
battle.missionTarget = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e->killedBy == player && battle.hasSuspicionLevel)
|
||||||
|
{
|
||||||
|
battle.suspicionLevel -= (MAX_SUSPICION_LEVEL * 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
if (e == player)
|
if (e == player)
|
||||||
{
|
{
|
||||||
|
|
|
@ -569,11 +569,6 @@ static void die(void)
|
||||||
incFighterStat(self->defName);
|
incFighterStat(self->defName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (battle.hasSuspicionLevel)
|
|
||||||
{
|
|
||||||
battle.suspicionLevel -= (MAX_SUSPICION_LEVEL * 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (battle.isEpic)
|
if (battle.isEpic)
|
||||||
{
|
{
|
||||||
battle.stats[STAT_EPIC_KILL_STREAK]++;
|
battle.stats[STAT_EPIC_KILL_STREAK]++;
|
||||||
|
|
Loading…
Reference in New Issue