mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 20:06:41 +00:00
Fix script functions for setting dynamic stats, part 2
This commit is contained in:
parent
458bdf4dff
commit
7a1531c01b
1 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ void StatsFunctions::SetHealthCurrent(unsigned short pid, double value) noexcept
|
|||
Player *player;
|
||||
GET_PLAYER(pid, player,);
|
||||
|
||||
player->CreatureStats()->mDynamic[0].mCurrent = 0;
|
||||
player->CreatureStats()->mDynamic[0].mCurrent = value;
|
||||
}
|
||||
|
||||
double StatsFunctions::GetMagickaBase(unsigned short pid) noexcept
|
||||
|
@ -211,7 +211,7 @@ void StatsFunctions::SetMagickaCurrent(unsigned short pid, double value) noexcep
|
|||
Player *player;
|
||||
GET_PLAYER(pid, player,);
|
||||
|
||||
player->CreatureStats()->mDynamic[1].mCurrent = 0;
|
||||
player->CreatureStats()->mDynamic[1].mCurrent = value;
|
||||
}
|
||||
|
||||
double StatsFunctions::GetFatigueBase(unsigned short pid) noexcept
|
||||
|
@ -243,7 +243,7 @@ void StatsFunctions::SetFatigueCurrent(unsigned short pid, double value) noexcep
|
|||
Player *player;
|
||||
GET_PLAYER(pid, player,);
|
||||
|
||||
player->CreatureStats()->mDynamic[2].mCurrent = 0;
|
||||
player->CreatureStats()->mDynamic[2].mCurrent = value;
|
||||
}
|
||||
|
||||
int StatsFunctions::GetAttributeCount() noexcept
|
||||
|
|
Loading…
Reference in a new issue