Add support for beast master respec versioning

Also cleans up some existing expertise check stuff and fixes an omission from the addition of the mail opt in rewards
This commit is contained in:
AconiteGodOfSWG
2021-01-13 06:50:25 -05:00
parent 5daa34cea7
commit f59de38132
4 changed files with 35 additions and 7 deletions
@@ -6483,6 +6483,12 @@ public class base_player extends script.base_script
}
skill.recalcPlayerPools(self, false);
}
// when we learn our first beast master skill, store the current expertise version we're learning from
if(skillName.equalsIgnoreCase("expertise_bm_incubation_base_1")) {
int row = dataTableSearchColumnForString("beast_master", "profession", respec.EXPERTISE_VERSION_TABLE);
int bmExpertiseVersion = dataTableGetInt(respec.EXPERTISE_VERSION_TABLE, row, "version");
setObjVar(self, respec.BEAST_MASTER_EXPERTISE_VERSION_OBJVAR, bmExpertiseVersion);
}
recomputeCommandSeries(self);
beast_lib.verifyAndUpdateCalledBeastStats(self);
trial.bumpSession(self, "displayDefensiveMods");