mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 06:40:09 +00:00
Fix mod not increasing fortified values
This commit is contained in:
parent
dc495a685a
commit
6b203892fc
@ -255,7 +255,7 @@ namespace MWMechanics
|
||||
for (int i=0; i<3; ++i)
|
||||
{
|
||||
DynamicStat<float> stat = creatureStats.getDynamic (i);
|
||||
stat.setCurrent(stat.getModified());
|
||||
stat.setCurrent (stat.getModified());
|
||||
creatureStats.setDynamic (i, stat);
|
||||
}
|
||||
|
||||
|
@ -219,7 +219,7 @@ namespace MWScript
|
||||
.getDynamic (mIndex));
|
||||
|
||||
stat.setBase(value);
|
||||
stat.setCurrent(value, true);
|
||||
stat.setCurrent(stat.getModified(false), true, true);
|
||||
|
||||
ptr.getClass().getCreatureStats (ptr).setDynamic (mIndex, stat);
|
||||
}
|
||||
@ -268,7 +268,7 @@ namespace MWScript
|
||||
if(mIndex != 2)
|
||||
base = std::max(base, 0.f);
|
||||
stat.setBase(base);
|
||||
stat.setCurrent(diff + current, true);
|
||||
stat.setCurrent(diff + current, true, true);
|
||||
|
||||
stats.setDynamic (mIndex, stat);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user