Permalink
Browse files

Fixing Peril Condition Track

  • Loading branch information...
acegiak committed Mar 30, 2018
1 parent 198cf84 commit 8def685c550bb704ec8588fe7625e51552ee888f
Showing with 8 additions and 7 deletions.
  1. +8 −7 Zweihänder Grim & Perilous/Zweihander.html
@@ -251,9 +251,9 @@ <h4 style="text-align:center;">Difficulty Rating Chart</h4>
</span>
</div>
</td>
<td class="sheet-background_medium" style="font-size:10px;">WB+6</th>
<td class="sheet-background_medium" style="font-size:10px;">WB+12</th>
<td class="sheet-background_medium" style="font-size:10px;">WB+18</th>
<td class="sheet-background_medium" style="font-size:10px;">PT+6</th>
<td class="sheet-background_medium" style="font-size:10px;">PT+12</th>
<td class="sheet-background_medium" style="font-size:10px;">PT+18</th>
</tr>
<tr class="sheet-background_medium">
<td class="sheet-border_right">
@@ -2352,11 +2352,12 @@ <h5 class="sheet-show_title">{{title}}</h5>
//peril bonus
on("change:Willpower change:box_Willpower_bonus change:peril_mod sheet:opened", function() {
getAttrs(["box_Willpower_bonus", "peril_mod"], function(values) {
var pt = +values.box_Willpower_bonus + 3 + +values.peril_mod;
setAttrs({
peril_1: +values.box_Willpower_bonus + 3 + +values.peril_mod,
peril_2: +values.box_Willpower_bonus + 6 + +values.peril_mod,
peril_3: +values.box_Willpower_bonus + 12 + +values.peril_mod,
peril_4: +values.box_Willpower_bonus + 18 + +values.peril_mod
peril_1: pt,
peril_2: pt + 6,
peril_3: pt + 12,
peril_4: pt + 18
});
});
});

0 comments on commit 8def685

Please sign in to comment.