mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Fix werewolf globals
This commit is contained in:
parent
5ac2788a15
commit
86c286c24e
@ -571,8 +571,7 @@ namespace MWClass
|
||||
{
|
||||
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();
|
||||
damage *= world->getGlobalFloat("werewolfclawmult");
|
||||
}
|
||||
if(healthdmg)
|
||||
damage *= store.find("fHandtoHandHealthPer")->getFloat();
|
||||
|
@ -389,8 +389,8 @@ namespace MWWorld
|
||||
std::map<std::string, ESM::Variant> globals;
|
||||
// vanilla Morrowind does not define dayspassed.
|
||||
globals["dayspassed"] = ESM::Variant(1); // but the addons start counting at 1 :(
|
||||
globals["WerewolfClawMult"] = ESM::Variant(1.f);
|
||||
globals["PCKnownWerewolf"] = ESM::Variant(0);
|
||||
globals["werewolfclawmult"] = ESM::Variant(25.f);
|
||||
globals["pcknownwerewolf"] = ESM::Variant(0);
|
||||
|
||||
for (std::map<std::string, ESM::Variant>::iterator it = gmst.begin(); it != gmst.end(); ++it)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user