+ + + + + + + + + +
@@ -12042,7 +12052,7 @@ var SWUtils = SWUtils || (function () { var PFSheet = PFSheet || (function () { 'use strict'; - var version = 0.54, + var version = 0.55, /***************************************Lists of Fields ************************************************************/ //add any new repeating sections here. This is the word after "repeating_" @@ -12244,6 +12254,7 @@ var PFSheet = PFSheet || (function () { }); }, + /*********************************** NOTES ****************************************/ /* updates notes for damage row of grid @@ -13617,6 +13628,7 @@ var PFSheet = PFSheet || (function () { , attackGridFields[attype].size, attackGridFields[attype].buff]); }, + /****Attack and Damage Effect section ********/ /* handles the attacks effects row */ @@ -13657,6 +13669,7 @@ var PFSheet = PFSheet || (function () { }, + /********* REPEATING WEAPON FIELDSET *********/ /*handleRepeatingAttackDropdown */ @@ -15018,7 +15031,9 @@ var PFSheet = PFSheet || (function () { optionText+=spellOptions.cast_defDC.replace("REPLACE",defDC); } if(toggleValues.showdescription){ - optionText+=spellOptions.description.replace("REPLACE",SWUtils.escapeRollTemplate(rowValues[prefix+"description"])); + optionText+=spellOptions.description.replace("REPLACE","@{description}"); + } else { + optionText+="{{description=}}"; } //TAS.debug("returning :"+optionText); return optionText; @@ -15028,7 +15043,7 @@ var PFSheet = PFSheet || (function () { var prefix = "repeating_spells_" + getRepeatingIDStr(id) , allFields; //TAS.debug("at resetSpellOptions"); - allFields= _.chain(spellOptionAttributes) + allFields= _.chain(spellOptionAttributesNoDescription) .union(spellOptionHelperAttributes) .flatten(true) .map(function(field){ @@ -15075,9 +15090,9 @@ var PFSheet = PFSheet || (function () { , "Concentration-2-def":(parseInt(tv["Concentration-2-def"],10)||0) } ) .value(); - if (showDescription){ - optionFields=optionFields.concat(["description"]); - } + //if (showDescription){ + // optionFields=optionFields.concat(["description"]); + //} getSectionIDs("repeating_spells",function(ids){ var fields = _.map(ids,function(id){ var prefix = "repeating_spells_" + getRepeatingIDStr(id), @@ -16805,6 +16820,10 @@ var PFSheet = PFSheet || (function () { updateAttackMacros(); resetSpellsPrepared(); } + if (oldversion < .55) { + resetAllSpellsOptions(); + } + },