mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-17 23:51:31 +00:00
- fixed armor save percentage values in Dehacked.
This commit is contained in:
parent
ccb083ed25
commit
944f2bf266
1 changed files with 2 additions and 2 deletions
|
@ -1942,13 +1942,13 @@ static int PatchMisc (int dummy)
|
||||||
if (armor!=NULL)
|
if (armor!=NULL)
|
||||||
{
|
{
|
||||||
armor->IntVar(NAME_SaveAmount) = 100 * deh.GreenAC;
|
armor->IntVar(NAME_SaveAmount) = 100 * deh.GreenAC;
|
||||||
armor->FloatVar(NAME_SavePercent) = deh.GreenAC == 1 ? 0.33335 : 0.5;
|
armor->FloatVar(NAME_SavePercent) = deh.GreenAC == 1 ? 33.335 : 50;
|
||||||
}
|
}
|
||||||
armor = GetDefaultByName ("BlueArmor");
|
armor = GetDefaultByName ("BlueArmor");
|
||||||
if (armor!=NULL)
|
if (armor!=NULL)
|
||||||
{
|
{
|
||||||
armor->IntVar(NAME_SaveAmount) = 100 * deh.BlueAC;
|
armor->IntVar(NAME_SaveAmount) = 100 * deh.BlueAC;
|
||||||
armor->FloatVar(NAME_SavePercent) = deh.BlueAC == 1 ? 0.33335 : 0.5;
|
armor->FloatVar(NAME_SavePercent) = deh.BlueAC == 1 ? 33.335 : 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto barmor = GetDefaultByName ("ArmorBonus");
|
auto barmor = GetDefaultByName ("ArmorBonus");
|
||||||
|
|
Loading…
Reference in a new issue