Skip to content

Commit

Permalink
call pcf when changing stats
Browse files Browse the repository at this point in the history
Makes people die when intelligence-drained by Mind Flayers.
  • Loading branch information
fizzet committed May 28, 2013
1 parent 545259e commit c6c7988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gemrb/core/Scriptable/Actor.cpp
Expand Up @@ -3237,15 +3237,15 @@ int Actor::NewStat(unsigned int StatIndex, ieDword ModifierValue, ieDword Modifi
switch (ModifierType) {
case MOD_ADDITIVE:
//flat point modifier
SetStat(StatIndex, Modified[StatIndex]+ModifierValue, 0);
SetStat(StatIndex, Modified[StatIndex]+ModifierValue, 1);
break;
case MOD_ABSOLUTE:
//straight stat change
SetStat(StatIndex, ModifierValue, 0);
SetStat(StatIndex, ModifierValue, 1);
break;
case MOD_PERCENT:
//percentile
SetStat(StatIndex, BaseStats[StatIndex] * ModifierValue / 100, 0);
SetStat(StatIndex, BaseStats[StatIndex] * ModifierValue / 100, 1);
break;
}
return Modified[StatIndex] - oldmod;
Expand Down

0 comments on commit c6c7988

Please sign in to comment.