[Zafir] Setting up initial HP, AP, and SP values

including setting up the proper token bars for them
This commit is contained in:
Randy Knapp
2020-07-18 15:12:55 -07:00
parent 47fb92dd5d
commit c7d81ea38e
+9
View File
@@ -3622,6 +3622,15 @@ on("clicked:initcombat", function() {
ClearRepeatingSection("chargetracker");
ReloadPrimaryWeapon(false);
// Setup max AP
getAttrs(["hp_max", "ap", "sp"], function(values) {
setAttrs({
hp: parseInt(values.hp_max)||0,
ap_max: parseInt(values.ap)||"",
sp_max: parseInt(values.sp)||""
});
});
// Add all charges
AddChargesToChargeTracker("activeabilities", "aablname", "aablcharges");
AddChargesToChargeTracker("items", "itemname", "itemcharges");