Update v1.0023 (#6611)

This commit is contained in:
ChrisDDickey
2020-05-25 10:17:46 -04:00
committed by GitHub
parent e5a43cd676
commit b3a3e3d1a5
+15 -4
View File
@@ -1622,6 +1622,8 @@ Version is at the end of the file in updatecharactersheet().
<option value="MA-Nat" >MA-Nat &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Only Natural Mystic Armor protects against this Damage</option>
<option value="None" >None &nbsp;&nbsp;&nbsp; No Armor protects against this Damage</option>
</select></span>
<span class="nowrap sect-showMost api" title="@{repeating_talents_X_T_sayTotalSuccess} If this is checked, it says Total Successes, otherwise it says Extra Successes.">Say Total
<input name="attr_T_sayTotalSuccess" type="checkbox" value="1"/></span>
<span class="nowrap api" title="@{repeating_talents_X_T_Karma-Control} Under what circumstances should we add karma to Talent tests?">Karma:
<select name="attr_T_Karma-Control" class="selShort">
<option value="-1" title="Never use karma on tests for this Talent. This overrides the 'Add Karma to rolls' control."> Never</option>
@@ -1855,7 +1857,7 @@ Version is at the end of the file in updatecharactersheet().
<option value="5" title="The target number for this Knack is 5." >5</option>
<option value="6" title="The target number for this Knack is 6." >6</option>
</select></span>
<span class="nowrap HideIfNotCloseChecked" title="@{repeating_talents_X_NAC_Armortype} What Armor would apply to resisting this Damage.">Armor:
<span class="nowrap HideIfNotCloseChecked" title="@{repeating_knacks_X_NAC_Armortype} What Armor would apply to resisting this Damage.">Armor:
<select name="attr_NAC_ArmorType" class="selShort">
<option value="N/A" selected>N/A &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Not Applicable as this Knack does not do damage</option>
<option value="PA" >PA &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Physical Armor protects against this Damage</option>
@@ -1864,6 +1866,8 @@ Version is at the end of the file in updatecharactersheet().
<option value="MA-Nat" >MA-Nat &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Only Natural Mystic Armor protects against this Damage</option>
<option value="None" >None &nbsp;&nbsp;&nbsp; No Armor protects against this Damage</option>
</select></span>
<span class="nowrap sect-showMost api" title="@{repeating_knacks_X_NAC_sayTotalSuccess} If this is checked, it says Total Successes, otherwise it says Extra Successes.">Say Total
<input name="attr_NAC_sayTotalSuccess" type="checkbox" value="1"/></span>
<span class="nowrap" title="@{repeating_knacks_X_NAC_Karma-Control} Under what circumstances should we add karma to Knack tests?">Karma:
<select name="attr_NAC_Karma-Control" class="selShort">
<option value="-1" title="Never use karma on tests for this Knack. This overrides the 'Add Karma to rolls' control."> Never</option>
@@ -2086,6 +2090,8 @@ Version is at the end of the file in updatecharactersheet().
<option value="MA-Nat" >MA-Nat &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Only Natural Mystic Armor protects against this Damage</option>
<option value="None" >None &nbsp;&nbsp;&nbsp; No Armor protects against this Damage</option>
</select></span>
<span class="nowrap sect-showMost api" title="@{repeating_skills_X_SK_sayTotalSuccess} If this is checked, it says Total Successes, otherwise it says Extra Successes.">Say Total
<input name="attr_SK_sayTotalSuccess" type="checkbox" value="1"/></span>
<span class="nowrap api" title="@{repeating_skills_X_SK_Karma-Control} Under what circumstances should we add karma to skill tests?">Karma:
<select name="attr_SK_Karma-Control" class="selShort">
<option value="-1" selected title="Never use karma on tests for this Skill. This overrides the 'Add Karma to rolls' control."> Never</option>
@@ -3014,6 +3020,8 @@ Version is at the end of the file in updatecharactersheet().
<span name="attr_SPM_SuccessLevels" class="autoexpand"></span>
<span>Success Levels</span>
</label>
<span class="hidden" title="@{repeating_matrix_X_SPM_sayTotalSuccess} If this is checked, it says Total Successes, otherwise it says Extra Successes.">Say Total
<input name="attr_SPM_sayTotalSuccess" type="checkbox" value="1"/></span>
<label class="label-under2 autoexpand-wrap sect-showMost" title="@{repeating_matrix_X_SPM_ExtraThreads}: Effect of weaving extra threads to the spell.">
<input name="attr_SPM_ExtraThreads" type="text" class="api" readonly/>
<input name="attr_SPM_ExtraThreads" type="text" class="NoAPI"/>
@@ -3223,6 +3231,8 @@ Version is at the end of the file in updatecharactersheet().
<option value="Add Tgt (+1)" >Target +1 Additional</option>
<option value="Special" >Special</option>
</select><span>Success Levels</span></span>
<span class="nowrap sect-showMost api" title="@{repeating_spell_X_SP_sayTotalSuccess} If this is checked, it says Total Successes, otherwise it says Extra Successes.">Say Total
<input name="attr_SP_sayTotalSuccess" type="checkbox" value="1"/></span>
<label class="label-under2 autoexpand-wrap sect-showMost" title="@{repeating_spell_X_SP_ExtraThreads}: Effect of weaving extra threads to the spell. Press 'Do Stuff' button to edit this field.">
<input type="text" name="attr_SP_ExtraThreads" class="api" readonly/>
<input type="text" name="attr_SP_ExtraThreads" class="NoAPI"/>
@@ -3546,7 +3556,7 @@ Version is at the end of the file in updatecharactersheet().
<input class="sect-show" name="attr_show-advanced" type="checkbox" value="1" checked title="@{show-advanced} Show or hide the Advanced section"/>
<span class="option-show"></span> <!-- You need a blank span here for the Show/Hide css code to work with -->
<div class="sect">
Note: You can hide this section once you or the GM have linked this character's token. &nbsp; V1.0022<br>
Note: You can hide this section once you or the GM have linked this character's token. &nbsp; &nbsp; V1.0023<br>
<span class="nowrap3" title="@{NPC} Is this character a PC, NPC, Mook, or Object? (Mook means more than one token shares one character sheet) (Object means it is not really a character at all)">PC?
<select name="attr_NPC" class="numLong">
@@ -4376,10 +4386,11 @@ Version is at the end of the file in updatecharactersheet().
'use strict';
logvalues( values);
var val = getInt( values, "Adjust-Defenses-Misc") + getInt( values, "condition-Cover") + (getInt( values, "combatOption-DefensiveStance") * 3)
var val = getInt( values, "Adjust-Defenses-Misc") + getInt( values, "condition-Cover")
+ ( getInt( values, "condition-Blindsided") ? 0 : getInt( values, "combatOption-DefensiveStance") *3) // If blindsided, not only take the -2 below, but also lose Def stance.
- ( getInt( values, "condition-Harried") + (getInt( values, "condition-Surprised") * 3)
+ ( getInt( values, "combatOption-AggressiveAttack") * ( getInt( values, "Misc-Aggressive-Penalty" )))
+ ( getInt( values, "condition-Blindsided") *2) + (getInt( values, "condition-KnockedDown") *3) );
+ ( getInt( values, "condition-Blindsided") *2) + (getInt( values, "condition-KnockedDown") *3));
setAttrsLog({ "Adjust-Defenses-Total": val });
});
}; // End updateAdjustDefenses()