1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

Fix unconscious state in cardiac arrest

This commit is contained in:
BaerMitUmlaut 2017-01-30 21:22:10 +01:00
parent ba810a22e6
commit 60c57a7f20

@ -39,11 +39,11 @@ class ACE_Medical_StateMachine {
class Unconscious {
onState = QUOTE(DFUNC(handleStateUnconscious));
onStateEntered = QUOTE([ARR_2(_this,(true))] call FUNC(setUnconscious));
onStateLeaving = QUOTE([ARR_2(_this,(false))] call FUNC(setUnconscious));
class WakeUp {
targetState = "Injured";
condition = QUOTE(_this call FUNC(hasStableVitals));
events[] = {QGVAR(WakeUp)};
onTransition = QUOTE([ARR_2(_this,(false))] call FUNC(setUnconscious));
};
class FatalTransitions {
targetState = "CardiacArrest";