[Zafir] Setting up initial HP, AP, and SP values
including setting up the proper token bars for them
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user