[Bug Fix] Fix Character EXP Modifiers default (#4161)

# Notes
- The `-1.0f` was causing these modifiers to be set to `0.0` and when people would enable them they would get no experience.
- We now use the zone based grabbed methods when setting which will default to a value of `1.0f` if there is not a value found.
This commit is contained in:
Alex King
2024-03-05 22:54:07 -05:00
committed by GitHub
parent ee3d02bac6
commit 2c2a8cdb63
4 changed files with 80 additions and 4 deletions
+2 -2
View File
@@ -4270,7 +4270,7 @@ void ZoneDatabase::SetAAEXPModifierByCharID(
instance_version,
EXPModifier{
.aa_modifier = aa_modifier,
.exp_modifier = -1.0f
.exp_modifier = zone->GetEXPModifierByCharacterID(character_id)
}
);
}
@@ -4288,7 +4288,7 @@ void ZoneDatabase::SetEXPModifierByCharID(
zone_id,
instance_version,
EXPModifier{
.aa_modifier = -1.0f,
.aa_modifier = zone->GetAAEXPModifierByCharacterID(character_id),
.exp_modifier = exp_modifier
}
);