mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Crime: mark witnesses as alarmed.
Fixes guard dialogue to properly detect if the player turned himself in.
This commit is contained in:
parent
65161c3e24
commit
b3916e7744
2 changed files with 4 additions and 0 deletions
|
@ -763,6 +763,7 @@ namespace MWMechanics
|
|||
// TODO: Not a complete list, disposition changes?
|
||||
creatureStats.setHostile(false);
|
||||
creatureStats.setAttacked(false);
|
||||
creatureStats.setAlarmed(false);
|
||||
|
||||
// Update witness crime id
|
||||
npcStats.setCrimeId(-1);
|
||||
|
|
|
@ -866,6 +866,9 @@ namespace MWMechanics
|
|||
{
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue