mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 22:36:43 +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;
|
healthdmg = true;
|
||||||
// GLOB instead of GMST because it gets updated during a quest
|
// GLOB instead of GMST because it gets updated during a quest
|
||||||
const MWWorld::Store<ESM::Global> &glob = world->getStore().get<ESM::Global>();
|
damage *= world->getGlobalFloat("werewolfclawmult");
|
||||||
damage *= glob.find("WerewolfClawMult")->mValue.getFloat();
|
|
||||||
}
|
}
|
||||||
if(healthdmg)
|
if(healthdmg)
|
||||||
damage *= store.find("fHandtoHandHealthPer")->getFloat();
|
damage *= store.find("fHandtoHandHealthPer")->getFloat();
|
||||||
|
|
|
@ -389,8 +389,8 @@ namespace MWWorld
|
||||||
std::map<std::string, ESM::Variant> globals;
|
std::map<std::string, ESM::Variant> globals;
|
||||||
// vanilla Morrowind does not define dayspassed.
|
// vanilla Morrowind does not define dayspassed.
|
||||||
globals["dayspassed"] = ESM::Variant(1); // but the addons start counting at 1 :(
|
globals["dayspassed"] = ESM::Variant(1); // but the addons start counting at 1 :(
|
||||||
globals["WerewolfClawMult"] = ESM::Variant(1.f);
|
globals["werewolfclawmult"] = ESM::Variant(25.f);
|
||||||
globals["PCKnownWerewolf"] = ESM::Variant(0);
|
globals["pcknownwerewolf"] = ESM::Variant(0);
|
||||||
|
|
||||||
for (std::map<std::string, ESM::Variant>::iterator it = gmst.begin(); it != gmst.end(); ++it)
|
for (std::map<std::string, ESM::Variant>::iterator it = gmst.begin(); it != gmst.end(); ++it)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue