mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 20:15:33 +00:00
Fix werewolf globals
This commit is contained in:
parent
5ac2788a15
commit
86c286c24e
2 changed files with 3 additions and 4 deletions
|
@ -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…
Reference in a new issue