mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
Fix werewolf claw damage multiplier
This commit is contained in:
parent
9694b18d1b
commit
109df46590
@ -412,7 +412,14 @@ namespace MWClass
|
|||||||
MWBase::Environment::get().getSoundManager()->playSound3D(victim, "critical damage", 1.0f, 1.0f);
|
MWBase::Environment::get().getSoundManager()->playSound3D(victim, "critical damage", 1.0f, 1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
healthdmg = (otherstats.getFatigue().getCurrent() < 1.0f || npcstats.isWerewolf());
|
healthdmg = (otherstats.getFatigue().getCurrent() < 1.0f);
|
||||||
|
if(npcstats.isWerewolf())
|
||||||
|
{
|
||||||
|
healthdmg = true;
|
||||||
|
// GLOB instead of GMST because it gets updated during a quest
|
||||||
|
const MWWorld::Store<ESM::Global> &glob = world->getStore().get<ESM::Global>();
|
||||||
|
damage *= glob.find("WerewolfClawMult")->mValue.getFloat();
|
||||||
|
}
|
||||||
if(healthdmg)
|
if(healthdmg)
|
||||||
damage *= gmst.find("fHandtoHandHealthPer")->getFloat();
|
damage *= gmst.find("fHandtoHandHealthPer")->getFloat();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user