Merge pull request #9595 from Villain1nGlasses/master
[Hero System 6e Heroic]: Minor fix to encumbrance; Expanded armor PD ED
This commit is contained in:
@@ -140,7 +140,7 @@ select {
|
||||
grid-template-areas: "select";
|
||||
align-items: center;
|
||||
position: relative;
|
||||
min-width: 40px;
|
||||
min-width: 34px;
|
||||
max-height: 20px;
|
||||
border: 1px solid gray;
|
||||
border-radius: 3px;
|
||||
@@ -3102,32 +3102,39 @@ select:focus + .focus {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
max-width: 576px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1 {
|
||||
min-width: 42px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(1) {
|
||||
min-width: 118px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(2),
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(3),
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(4),
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(5) {
|
||||
min-width: 46px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(6) {
|
||||
min-width: 30px;
|
||||
max-width: 30px;
|
||||
min-width: 34px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(6),
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(7) {
|
||||
min-width: 140px;
|
||||
min-width: 44px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(8) {
|
||||
min-width: 36px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(9) {
|
||||
min-width: 98px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row h1:nth-child(10) {
|
||||
min-width: 46px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row input {
|
||||
@@ -3137,8 +3144,8 @@ select:focus + .focus {
|
||||
.subitem-tab-gear-flex-container-armor-row input[type=number] {
|
||||
text-align: right;
|
||||
padding-left: 2px;
|
||||
max-width: 60px;
|
||||
min-width: 42px;
|
||||
max-width: 36px;
|
||||
min-width: 34px;
|
||||
padding-right: 0px;
|
||||
margin-right: 0px;
|
||||
margin-left: 0px;
|
||||
@@ -3146,7 +3153,7 @@ select:focus + .focus {
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row input[type=text]:nth-child(1),
|
||||
.subitem-tab-gear-flex-container-armor-row input[type=text]:nth-child(7) {
|
||||
.subitem-tab-gear-flex-container-armor-row input[type=text]:nth-child(9) {
|
||||
padding-left: 1px;
|
||||
padding-right: 1px;
|
||||
margin-right: 0px;
|
||||
@@ -3158,13 +3165,17 @@ select:focus + .focus {
|
||||
max-width: 120px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row input[type=text]:nth-child(7) {
|
||||
.subitem-tab-gear-flex-container-armor-row input[type=text]:nth-child(9) {
|
||||
text-align: center;
|
||||
max-width: 140px;
|
||||
max-width: 100px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row input[type=number]:nth-child(10) {
|
||||
text-align: right;
|
||||
min-width: 48px;
|
||||
}
|
||||
|
||||
.subitem-tab-gear-flex-container-armor-row select {
|
||||
padding-left: 4px;
|
||||
text-align-last: center; // For Chrome
|
||||
text-align: center; // Firefox
|
||||
}
|
||||
|
||||
@@ -442,7 +442,9 @@
|
||||
|
||||
<div class="subitem-tab-gear-flex-container-armor-row">
|
||||
<h1>Armor</h1>
|
||||
<h1>rPD</h1>
|
||||
<h1>PD</h1>
|
||||
<h1>rED</h1>
|
||||
<h1>ED</h1>
|
||||
<h1>END/T</h1>
|
||||
<h1>ACT</h1>
|
||||
@@ -455,7 +457,9 @@
|
||||
<div class="subitem-tab-gear-flex-container-armor-row">
|
||||
<input type="text" name="attr_armorName01" value="" maxlength="20" tabindex="50"/>
|
||||
<input type="number" name="attr_armorPD01" step="1" value="0" min="0" step="1" tabindex="51"/>
|
||||
<input type="number" name="attr_totalPD01" step="1" value="0" min="0" step="1" tabindex="51.5"/>
|
||||
<input type="number" name="attr_armorED01" step="1" value="0" min="0" step="1" tabindex="52"/>
|
||||
<input type="number" name="attr_totalED01" step="1" value="0" min="0" step="1" tabindex="52.5"/>
|
||||
<div class="custom-select">
|
||||
<select name="attr_armorEND01" tabindex="-1">
|
||||
<option value="4">4</option>
|
||||
@@ -478,7 +482,7 @@
|
||||
<option value="18" selected>NA</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation01" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName01}**}} {{Activate on = [[@{armorActivation01}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{PD @{armorPD01}= **ED @{armorED01}**}}" >Roll</button>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation01" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName01}**}} {{Activate on = [[@{armorActivation01}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{Resistant Defense = **rPD ``@{armorPD01}`` rED ``@{armorED01}``**}} {{Total Defense = **PD ``@{totalPD01}`` ED ``@{totalED01}``**}}" >Roll</button>
|
||||
<input type="text" class="armorLocationsText" name="attr_armorLocations01" maxlength="24" tabindex="54"/>
|
||||
<input type="number" name="attr_armorMass01" value="0" min="0" step="0.1" tabindex="55"/>
|
||||
</div>
|
||||
@@ -487,7 +491,9 @@
|
||||
<div class="subitem-tab-gear-flex-container-armor-row">
|
||||
<input type="text" name="attr_armorName02" value="" maxlength="20" tabindex="56"/>
|
||||
<input type="number" name="attr_armorPD02" step="1" value="0" min="0" step="1" tabindex="57"/>
|
||||
<input type="number" name="attr_totalPD02" step="1" value="0" min="0" step="1" tabindex="57.5"/>
|
||||
<input type="number" name="attr_armorED02" step="1" value="0" min="0" step="1" tabindex="58"/>
|
||||
<input type="number" name="attr_totalED02" step="1" value="0" min="0" step="1" tabindex="58.5"/>
|
||||
<div class="custom-select">
|
||||
<select name="attr_armorEND02" tabindex="-1">
|
||||
<option value="4">4</option>
|
||||
@@ -510,7 +516,7 @@
|
||||
<option value="18" selected>NA</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation02" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName02}**}} {{Activate on = [[@{armorActivation02}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{PD @{armorPD02}= **ED @{armorED02}**}}" >Roll</button>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation02" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName02}**}} {{Activate on = [[@{armorActivation02}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{Resistant Defense = **rPD ``@{armorPD02}`` rED ``@{armorED02}``**}} {{Total Defense = **PD ``@{totalPD02}`` ED ``@{totalED02}``**}}" >Roll</button>
|
||||
<input type="text" class="armorLocationsText" name="attr_armorLocations02" maxlength="24" tabindex="59"/>
|
||||
<input type="number" name="attr_armorMass02" value="0" min="0" step="0.1" tabindex="60"/>
|
||||
</div>
|
||||
@@ -519,7 +525,9 @@
|
||||
<div class="subitem-tab-gear-flex-container-armor-row">
|
||||
<input type="text" name="attr_armorName03" value="" maxlength="20" tabindex="61"/>
|
||||
<input type="number" name="attr_armorPD03" step="1" value="0" min="0" step="1" tabindex="62"/>
|
||||
<input type="number" name="attr_totalPD03" step="1" value="0" min="0" step="1" tabindex="62.5"/>
|
||||
<input type="number" name="attr_armorED03" step="1" value="0" min="0" step="1" tabindex="63"/>
|
||||
<input type="number" name="attr_totalED03" step="1" value="0" min="0" step="1" tabindex="63.5"/>
|
||||
<div class="custom-select">
|
||||
<select name="attr_armorEND03" tabindex="-1">
|
||||
<option value="4">4</option>
|
||||
@@ -542,7 +550,7 @@
|
||||
<option value="18" selected>NA</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation03" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName03}**}} {{Activate on = [[@{armorActivation03}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{PD @{armorPD03}= **ED @{armorED03}**}}" >Roll</button>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation03" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName03}**}} {{Activate on = [[@{armorActivation03}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{Resistant Defense = **rPD ``@{armorPD03}`` rED ``@{armorED03}``**}} {{Total Defense = **PD ``@{totalPD03}`` ED ``@{totalED03}``**}}" >Roll</button>
|
||||
<input type="text" class="armorLocationsText" name="attr_armorLocations03" maxlength="24" tabindex="64"/>
|
||||
<input type="number" name="attr_armorMass03" value="0" min="0" step="0.1" tabindex="65"/>
|
||||
</div>
|
||||
@@ -551,7 +559,9 @@
|
||||
<div class="subitem-tab-gear-flex-container-armor-row">
|
||||
<input type="text" name="attr_armorName04" value="" maxlength="20" tabindex="66"/>
|
||||
<input type="number" name="attr_armorPD04" step="1" value="0" min="0" step="1" tabindex="67"/>
|
||||
<input type="number" name="attr_totalPD04" step="1" value="0" min="0" step="1" tabindex="67.5"/>
|
||||
<input type="number" name="attr_armorED04" step="1" value="0" min="0" step="1" tabindex="68"/>
|
||||
<input type="number" name="attr_totalED04" step="1" value="0" min="0" step="1" tabindex="68.5"/>
|
||||
<div class="custom-select">
|
||||
<select name="attr_armorEND04" tabindex="-1">
|
||||
<option value="4">4</option>
|
||||
@@ -574,7 +584,7 @@
|
||||
<option value="18" selected>NA</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation04" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName04}**}} {{Activate on = [[@{armorActivation04}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{PD @{armorPD04}= **ED @{armorED04}**}}" >Roll</button>
|
||||
<button type="roll" class="button buttonRollActivate" tabindex="-1" name="roll_armorActivation04" value="&{template:custom-activate} {{title=@{character_name} - @{character_title}}} {{subtitle= Defends with @{armorName04}**}} {{Activate on = [[@{armorActivation04}]] **or less**}} {{Result = [[3d6cf<0cs>0]]}} {{Resistant Defense = **rPD ``@{armorPD04}`` rED ``@{armorED04}``**}} {{Total Defense = **PD ``@{totalPD04}`` ED ``@{totalED04}``**}}" >Roll</button>
|
||||
<input type="text" class="armorLocationsText" name="attr_armorLocations04" maxlength="24" tabindex="69"/>
|
||||
<input type="number" name="attr_armorMass04" value="0" min="0" step="0.1" tabindex="70"/>
|
||||
</div>
|
||||
@@ -4259,6 +4269,8 @@
|
||||
const maxStat = 20;
|
||||
const costStat = 1;
|
||||
let statCP = 0;
|
||||
var liftCapability;
|
||||
var freeCarry;
|
||||
|
||||
if ( (statValue>maxStat) && (useMaximums != 0) ) {
|
||||
statCP=(statValue-maxStat)*costStat+(statValue-baseStat)*costStat;
|
||||
@@ -4266,8 +4278,21 @@
|
||||
statCP=(statValue-baseStat)*costStat;
|
||||
}
|
||||
|
||||
let liftCapability=Math.round(25*Math.pow(2,(statValue/5)));
|
||||
let freeCarry=liftCapability/10;
|
||||
switch (statValue) {
|
||||
case 0: liftCapability = 0;
|
||||
break;
|
||||
case 1: liftCapability = 8;
|
||||
break;
|
||||
case 2: liftCapability = 16;
|
||||
break;
|
||||
case 3: liftCapability = 25;
|
||||
break;
|
||||
case 4: liftCapability = 38;
|
||||
break;
|
||||
default: liftCapability=Math.round(25*Math.pow(2,(statValue/5)));
|
||||
}
|
||||
|
||||
freeCarry=liftCapability/10;
|
||||
|
||||
// Update cost and roll chance
|
||||
setAttrs({
|
||||
@@ -5274,7 +5299,7 @@
|
||||
|
||||
/* Activate Power 01 */
|
||||
on('clicked:powerRoll01', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName01} - @{powerEffect01}}} {{desc=@{powerText01}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll01}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice01}]]}} {{END=[[@{powerEND01}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName01} - @{powerEffect01}}} {{desc=@{powerText01}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll01}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice01}sd]]}} {{END=[[@{powerEND01}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND01"], function(values) {
|
||||
@@ -5370,7 +5395,7 @@
|
||||
|
||||
/* Activate Power 02 */
|
||||
on('clicked:powerRoll02', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName02} - @{powerEffect02}}} {{desc=@{powerText02}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll02}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice02}]]}} {{END=[[@{powerEND02}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName02} - @{powerEffect02}}} {{desc=@{powerText02}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll02}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice02}sd]]}} {{END=[[@{powerEND02}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND02"], function(values) {
|
||||
@@ -5466,7 +5491,7 @@
|
||||
|
||||
/* Activate Power 03 */
|
||||
on('clicked:powerRoll03', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName03} - @{powerEffect03}}} {{desc=@{powerText03}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll03}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice03}]]}} {{END=[[@{powerEND03}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName03} - @{powerEffect03}}} {{desc=@{powerText03}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll03}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice03}sd]]}} {{END=[[@{powerEND03}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND03"], function(values) {
|
||||
@@ -5562,7 +5587,7 @@
|
||||
|
||||
/* Activate Power 04 */
|
||||
on('clicked:powerRoll04', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName02} - @{powerEffect04}}} {{desc=@{powerText04}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll04}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice04}]]}} {{END=[[@{powerEND04}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName02} - @{powerEffect04}}} {{desc=@{powerText04}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll04}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice04}sd]]}} {{END=[[@{powerEND04}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND04"], function(values) {
|
||||
@@ -5658,7 +5683,7 @@
|
||||
|
||||
/* Activate Power 05 */
|
||||
on('clicked:powerRoll05', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName05} - @{powerEffect05}}} {{desc=@{powerText05}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll05}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice05}]]}} {{END=[[@{powerEND05}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName05} - @{powerEffect05}}} {{desc=@{powerText05}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll05}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice05}sd]]}} {{END=[[@{powerEND05}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND05"], function(values) {
|
||||
@@ -5754,7 +5779,7 @@
|
||||
|
||||
/* Activate Power 06 */
|
||||
on('clicked:powerRoll06', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName06} - @{powerEffect06}}} {{desc=@{powerText06}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll06}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice06}]]}} {{END=[[@{powerEND06}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName06} - @{powerEffect06}}} {{desc=@{powerText06}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll06}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice06}sd]]}} {{END=[[@{powerEND06}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND06"], function(values) {
|
||||
@@ -5850,7 +5875,7 @@
|
||||
|
||||
/* Activate Power 07 */
|
||||
on('clicked:powerRoll07', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName07} - @{powerEffect02}}} {{desc=@{powerText07}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll07}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice07}]]}} {{END=[[@{powerEND07}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName07} - @{powerEffect02}}} {{desc=@{powerText07}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll07}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice07}sd]]}} {{END=[[@{powerEND07}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND07"], function(values) {
|
||||
@@ -5946,7 +5971,7 @@
|
||||
|
||||
/* Activate Power 08 */
|
||||
on('clicked:powerRoll08', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName08} - @{powerEffect08}}} {{desc=@{powerText08}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll08}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice08}]]}} {{END=[[@{powerEND08}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName08} - @{powerEffect08}}} {{desc=@{powerText08}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll08}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice08}sd]]}} {{END=[[@{powerEND08}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND08"], function(values) {
|
||||
@@ -6042,7 +6067,7 @@
|
||||
|
||||
/* Activate Power 09 */
|
||||
on('clicked:powerRoll09', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName09} - @{powerEffect09}}} {{desc=@{powerText09}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll09}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice09}]]}} {{END=[[@{powerEND09}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName09} - @{powerEffect09}}} {{desc=@{powerText09}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll09}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice09}sd]]}} {{END=[[@{powerEND09}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND09"], function(values) {
|
||||
@@ -6138,7 +6163,7 @@
|
||||
|
||||
/* Activate Power 10 */
|
||||
on('clicked:powerRoll10', (info) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName10} - @{powerEffect10}}} {{desc=@{powerText10}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll10}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice10}]]}} {{END=[[@{powerEND10}]]}}", (results) => {
|
||||
startRoll("&{template:custom-power-attack} {{title=@{character_name} - @{character_title}}} {{subtitle= @{powerName10} - @{powerEffect10}}} {{desc=@{powerText10}}} {{Activate On = [[?{Modifiers|0}+@{powerSkillRoll10}]] **or less**}} {{Success Roll=[[3d6cf<0cs>0]]}} {{Attack Roll=[[3d6cf<0cs>0]]}} {{Effect Roll=[[@{hiddenPowerDice10}sd]]}} {{END=[[@{powerEND10}]]}}", (results) => {
|
||||
// Roll activation and effect dice. If the option to auto apply endurance is TRUE, subtract the power's END once from currentEND.
|
||||
|
||||
getAttrs(["optionAutoSubtractEND", "powerEND10"], function(values) {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 100 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 132 KiB |
Reference in New Issue
Block a user