From 4985e1786519acd886f92fd0606a5d36a840c40d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 7 Aug 2013 18:51:57 -0700 Subject: [PATCH] Fix werewolf claw damage multiplier --- apps/openmw/mwclass/npc.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwclass/npc.cpp b/apps/openmw/mwclass/npc.cpp index b9c463432..29302768c 100644 --- a/apps/openmw/mwclass/npc.cpp +++ b/apps/openmw/mwclass/npc.cpp @@ -412,7 +412,14 @@ namespace MWClass 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 &glob = world->getStore().get(); + damage *= glob.find("WerewolfClawMult")->mValue.getFloat(); + } if(healthdmg) damage *= gmst.find("fHandtoHandHealthPer")->getFloat(); }