Crime: mark witnesses as alarmed.

Fixes guard dialogue to properly detect if the player turned himself in.
actorid
scrawl 11 years ago
parent 65161c3e24
commit b3916e7744

@ -763,6 +763,7 @@ namespace MWMechanics
// TODO: Not a complete list, disposition changes? // TODO: Not a complete list, disposition changes?
creatureStats.setHostile(false); creatureStats.setHostile(false);
creatureStats.setAttacked(false); creatureStats.setAttacked(false);
creatureStats.setAlarmed(false);
// Update witness crime id // Update witness crime id
npcStats.setCrimeId(-1); npcStats.setCrimeId(-1);

@ -866,6 +866,9 @@ namespace MWMechanics
{ {
it1->getClass().getNpcStats(*it1).setCrimeId(id); it1->getClass().getNpcStats(*it1).setCrimeId(id);
} }
// Mark as Alarmed for dialogue
it1->getClass().getCreatureStats(*it1).setAlarmed(true);
} }
break; // Someone saw the crime and everyone has been told break; // Someone saw the crime and everyone has been told
} }

Loading…
Cancel
Save