Shadowrun 5th Edition v1.6 (#5068)

* Add limits to roll template

* Update version 1.6

* improve roll template

* add new translations
This commit is contained in:
Cassie Levett
2019-05-13 20:24:35 -05:00
committed by GitHub
parent 4c1fc7d5ac
commit ca095cd968
6 changed files with 96 additions and 50 deletions
+16 -9
View File
@@ -910,9 +910,9 @@
width : 100%;}
/***** SKILLS *****/
.sheet-skill-box h3:first-child {margin-right: 67%;}
.sheet-skill-box h3:last-child {margin-left: 30px;}
.sheet-skill-box h3[data-i18n="skill"] {margin-right: 47%;}
.sheet-skill-box h3[data-i18n="attribute"] {margin-left: 4%;}
.sheet-skill-box h3[data-i18n="limit"] {margin-left: 8%;}
.sheet-skill-box label {
display : inline-block;
@@ -920,19 +920,26 @@
text-transform: capitalize;}
select.sheet-attr-select {
position: absolute;
position: absolute;}
select.sheet-attr-select[name="attr_attribute"] {
left : 62%;}
select.sheet-attr-select[name="attr_limit"] {
left : 82%;}
.sheet-attr-select option:nth-of-type(1n+5) {color: #610b0d;}
.sheet-attr-select option:nth-of-type(1n+9) {color: #7a2593;}
/***** SKILLS REPEATING SECTION *****/
.sheet-skill-box .sheet-settings input[type="text"],
.sheet-skill-box select.sheet-skill-select,
.sheet-skills-row .sheet-settings-row div,
.sheet-skill-box .sheet-name {
/***** SKILLS REPEATING SECTION *****/
.sheet-skills-row .sheet-settings-row div {
width: 70%;}
.sheet-skill-box .sheet-name,
.sheet-skill-box select.sheet-skill-select,
.sheet-skill-box .sheet-settings input[type="text"] {
width: 50%;}
.sheet-skill-box .sheet-settings input[type="text"] {text-align: left;}
.sheet-skill-box .sheet-settings input[type="number"] {
+73 -38
View File
@@ -399,7 +399,10 @@
<div class="border-box repeat-box skill-box">
<div class="pc-box medium-box">
<div class="row-long">
<h3 data-i18n="skill">Skill</h3><h3 data-i18n="rtg">RTG</h3><h3 data-i18n="attribute">Attribute</h3>
<h3 data-i18n="skill">Skill</h3>
<h3 data-i18n="rtg">RTG</h3>
<h3 data-i18n="attribute">Attribute</h3>
<h3 data-i18n="limit">Limit</h3>
</div>
<input class="tab-switch" type="hidden" name="attr_skill_toggle" value="active">
<div class="skills-active">
@@ -535,8 +538,8 @@
</div>
<div class="display">
<div class="name">
<button type="roll" name="skill" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[((@{dicepool}+@{attribute})+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" ><span name="attr_display"></span></button>
<button class="spec-button" name="specialization" type="roll" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[(@{dicepool}+@{attribute}+2+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{desc=Spec: @{specialization}}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display_specialization"></span></button>
<button type="roll" name="skill" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{desc=@{display_limit}}}{{dice=[[((@{dicepool}+@{attribute})+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" ><span name="attr_display"></span></button>
<button class="spec-button" name="specialization" type="roll" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}@{display_limit}{{dice=[[(@{dicepool}+@{attribute}+2+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{desc=Spec: @{specialization}, @{display_limit}}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display_specialization"></span></button>
</div>
<div class="rank"><span name="attr_display_rating" title="Skill rating"></span></div>
</div>
@@ -553,6 +556,17 @@
<option value="@{magic}" data-i18n="magic">Magic</option>
<option value="@{resonance}" data-i18n="resonance">Resonance</option>
</select>
<input type="hidden" name="attr_display_limit" value="" />
<select class="attr-select" name="attr_limit" title="Skill limit">
<option value="none" selected>-</option>
<option value="@{mental_limit}" data-i18n="mental">Mental</option>
<option value="@{physical_limit}" data-i18n="physical">Physical</option>
<option value="@{social_limit}" data-i18n="social">Social</option>
<option value="@{attack}" data-i18n="attack">Attack</option>
<option value="@{data_processing}" data-i18n="data_processing">Data Processing</option>
<option value="@{firewall}" data-i18n="firewall">Firewall</option>
<option value="@{sleaze}" data-i18n="sleaze">Sleaze</option>
</select>
</fieldset>
</div>
<div class="skills-know">
@@ -573,8 +587,8 @@
</div>
<div class="display">
<div class="name">
<button type="roll" name="knowledge" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[(@{dicepool}+@{attribute}+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display"></span></button>
<button class="spec-button" name="knowledge specialization" type="roll" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[(@{dicepool}+@{attribute}+2+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{desc=Spec: @{specialization}}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display_specialization"></span></button>
<button type="roll" name="knowledge" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{desc=@{display_limit}}}{{dice=[[(@{dicepool}+@{attribute}+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display"></span></button>
<button class="spec-button" name="knowledge specialization" type="roll" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[(@{dicepool}+@{attribute}+2+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{desc=Spec: @{specialization}, @{display_limit}}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display_specialization"></span></button>
</div>
<div class="rank"><span name="attr_display_rating" title="Skill rating"></span></div>
</div>
@@ -591,6 +605,17 @@
<option value="@{magic}" data-i18n="magic">Magic</option>
<option value="@{resonance}" data-i18n="resonance">Resonance</option>
</select>
<input type="hidden" name="attr_display_limit" value="^{mental} ^{limit} @{mental_limit}" />
<select class="attr-select" name="attr_limit" title="Skill limit">
<option value="none">-</option>
<option value="@{mental_limit}" data-i18n="mental" selected>Mental</option>
<option value="@{physical_limit}" data-i18n="physical">Physical</option>
<option value="@{social_limit}" data-i18n="social">Social</option>
<option value="@{attack}" data-i18n="attack">Attack</option>
<option value="@{data_processing}" data-i18n="data_processing">Data Processing</option>
<option value="@{firewall}" data-i18n="firewall">Firewall</option>
<option value="@{sleaze}" data-i18n="sleaze">Sleaze</option>
</select>
</fieldset>
</div>
<div class="skills-lang">
@@ -611,8 +636,8 @@
</div>
<div class="display">
<div class="name">
<button type="roll" name="language" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[((@{dicepool}+@{attribute})+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display"></span></button>
<button class="spec-button" name="language specialization" type="roll" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[(@{dicepool}+@{attribute}+2+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{desc=Spec: @{specialization}}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display_specialization"></span></button>
<button type="roll" name="language" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{desc=@{display_limit}}}{{dice=[[((@{dicepool}+@{attribute})+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display"></span></button>
<button class="spec-button" name="language specialization" type="roll" value="@{gm_toggle} &{template:rolls}{{header=@{skill}}}{{base=@{display_attribute}}}{{dice=[[(@{dicepool}+@{attribute}+2+@{wound_toggle}+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{desc=Spec: @{specialization}, @{display_limit}}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}"><span name="attr_display_specialization"></span></button>
</div>
<div class="rank"><span name="attr_display_rating" title="Skill rating"></span></div>
</div>
@@ -629,6 +654,17 @@
<option value="@{magic}" data-i18n="magic">Magic</option>
<option value="@{resonance}" data-i18n="resonance">Resonance</option>
</select>
<input type="hidden" name="attr_display_limit" value="^{social} ^{limit} @{mental_limit}" />
<select class="attr-select" name="attr_limit" title="Skill limit">
<option value="none">-</option>
<option value="@{mental_limit}" data-i18n="mental">Mental</option>
<option value="@{physical_limit}" data-i18n="physical">Physical</option>
<option value="@{social_limit}" data-i18n="social" selected>Social</option>
<option value="@{attack}" data-i18n="attack">Attack</option>
<option value="@{data_processing}" data-i18n="data_processing">Data Processing</option>
<option value="@{firewall}" data-i18n="firewall">Firewall</option>
<option value="@{sleaze}" data-i18n="sleaze">Sleaze</option>
</select>
</fieldset>
</div>
</div>
@@ -1437,7 +1473,7 @@
</div>
</div>
<div class="row-long">
<label><button type="roll" name="data processing" value="&{template:rolls}{{header=^{dataprocessing}}}{{base=^{base}}}{{dice=[[(@{data_processing}+(?{Attribute|Willpower,@{willpower}|Logic,@{logic}|Intuition,@{intuition}})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Roll data processing" data-i18n="dataproc">Data Proc.</button></label>
<label><button type="roll" name="data processing" value="&{template:rolls}{{header=^{data_processing}}}{{base=^{base}}}{{dice=[[(@{data_processing}+(?{Attribute|Willpower,@{willpower}|Logic,@{logic}|Intuition,@{intuition}})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Roll data processing" data-i18n="dataproc">Data Proc.</button></label>
<div class="matrix-tot" title="@{data_processing}" ><span name="attr_data_processing"></span></div><span> = </span>
<input type="number" name="attr_data_processing_temp" min="0" alue="" placeholder="0" title="@{data_processing_temp}" /><spam> + </spam>
<input type="number" name="attr_data_processing_modifier" min="0" value="" placeholder="0" title="@{data_processing_modifier}" /><spam> + </spam>
@@ -1860,7 +1896,7 @@
<div class="attr-header"><label data-i18n="hostrating">Host Rating</label><br /><input type="number" name="attr_host_rating" placeholder="5" title="@{host_rating}" value="" /></div>
<div class="attr-header"><label data-i18n="attack">Attack</label><br /><input type="number" name="attr_attack" placeholder="5" title="@{attack}" value="" /></div>
<div class="attr-header"><label data-i18n="sleaze">Sleaze</label><br /><input type="number" name="attr_sleaze" placeholder="6" title="@{sleaze}" value="" /></div>
<div class="attr-header"><label data-i18n="dataprocessing">Data Processing</label><br /><input type="number" name="attr_data_processing" placeholder="7" title="@{data_processing}" value="" /></div>
<div class="attr-header"><label data-i18n="data_processing">Data Processing</label><br /><input type="number" name="attr_data_processing" placeholder="7" title="@{data_processing}" value="" /></div>
<div class="attr-header"><label data-i18n="firewall">Firewall</label><br /><input type="number" name="attr_firewall" placeholder="8" title="@{firewall}" value="" /></div>
</div>
<div class="vehicle attribute">
@@ -1878,7 +1914,7 @@
<div class="attr-header"><label data-i18n="levelresonance">Level / Resonance</label><br /><input type="number" name="attr_level" placeholder="5" title="@{level}" value="" /></div>
<div class="attr-header"><label data-i18n="attack">Attack</label><br /><input type="number" name="attr_attack" placeholder="5" title="@{attack}" value="" /></div>
<div class="attr-header"><label data-i18n="sleaze">Sleaze</label><br /><input type="number" name="attr_sleaze" placeholder="6" title="@{sleaze}" value="" /></div>
<div class="attr-header"><label data-i18n="dataprocessing">Data Processing</label><br /><input type="number" name="attr_data_processing" placeholder="7" title="@{data_processing}" value="" /></div>
<div class="attr-header"><label data-i18n="data_processing">Data Processing</label><br /><input type="number" name="attr_data_processing" placeholder="7" title="@{data_processing}" value="" /></div>
<div class="attr-header"><label data-i18n="firewall">Firewall</label><br /><input type="number" name="attr_firewall" placeholder="8" title="@{firewall}" value="" /></div>
</div>
<!-- ~~~~~~~~ modifieres ~~~~~~~~ -->
@@ -1943,7 +1979,7 @@
<input type="number" name="attr_physical_modifier" placeholder="0" title="@{physical_modifier}" value="0" /><span> / </span>
<input type="number" name="attr_matrix_modifier" placeholder="0" title="@{matrix_modifier}" value="0" />
<br />
<label data-i18n="dataprocessing">Data Processing </label>
<label data-i18n="data_processing">Data Processing </label>
<input type="number" name="attr_data_processing" min="0" placeholder="0" title="@{data_processing}" value="" /><br />
<label data-i18n="firewall">Firewall </label>
<input type="number" name="attr_firewall" min="0" placeholder="0" title="@{firewall}" value="" /><br />
@@ -2068,7 +2104,7 @@
<br />
<div class="attr-header">
<label>
<button type="roll" name="data processing" value="@{gm_toggle} &{template:rolls}{{header=^{dataprocessing}}}{{base=^{dataprocessing} ♦ ^{hostrating}}}{{dice=[[(@{data_processing}+(@{host_rating})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Data Processing Roll" data-i18n="dataprocessing">Data Processing</button>
<button type="roll" name="data processing" value="@{gm_toggle} &{template:rolls}{{header=^{data_processing}}}{{base=^{data_processing} ♦ ^{hostrating}}}{{dice=[[(@{data_processing}+(@{host_rating})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Data Processing Roll" data-i18n="data_processing">Data Processing</button>
</label><br />
<span name="attr_data_processing"></span>
</div>
@@ -2114,7 +2150,7 @@
<br />
<div class="attr-header">
<label>
<button type="roll" name="data processing" value="@{gm_toggle} &{template:rolls}{{header=^{dataprocessing}}}{{base=^{dataprocessing} ♦ ^{level}}}{{dice=[[((@{data_processing}+@{level})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Data Processing Roll" data-i18n="dataprocessing">Data Processing</button>
<button type="roll" name="data processing" value="@{gm_toggle} &{template:rolls}{{header=^{data_processing}}}{{base=^{data_processing} ♦ ^{level}}}{{dice=[[((@{data_processing}+@{level})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Data Processing Roll" data-i18n="data_processing">Data Processing</button>
</label><br />
<span name="attr_data_processing"></span>
</div>
@@ -2175,7 +2211,7 @@
<!-- ~~~~~~~~ Vehicle Display ~~~~~~~~ -->
<div class="vehicle">
<div>
<label data-i18n="dataprocessing">Data Processing</label><span name="attr_data_processing" title="@{data_processing}"></span><br />
<label data-i18n="data_processing">Data Processing</label><span name="attr_data_processing" title="@{data_processing}"></span><br />
<label data-i18n="firewall">Firewall</label><span name="attr_firewall" title="@{firewall}"></span><br />
<label data-i18n="devicerating">Device Rating</label><span name="attr_device_rating" title="@{device_rating}"></span><br />
<button type="action" name="act_cond_reset" data-i18n="conditionmonitorpm">Condition Monitor (P/M)</button>
@@ -2690,7 +2726,7 @@
<div class="repeat-row repeat-row-20"><label data-i18n="iclimit">IC Limit</label><br/>
<select name="attr_IC_limit" title="Limit">
<option class="option" value="@{attack}" selected="selected" data-i18n="attack">Attack</option>
<option class="option" value="@{data_processing}" data-i18n="dataprocessing">Data Processing</option>
<option class="option" value="@{data_processing}" data-i18n="data_processing">Data Processing</option>
</select>
</div>
<span>]</span>
@@ -2706,7 +2742,7 @@
<select name="attr_IC_matrix" title="Matrix attribute resistance">
<option class="option" value="Attack" data-i18n="attack">Attack</option>
<option class="option" value="Sleaze" data-i18n="sleaze">Sleaze</option>
<option class="option" value="Data Processing" selected="selected" data-i18n="dataprocessing">Data Processing</option>
<option class="option" value="Data Processing" selected="selected" data-i18n="data_processing">Data Processing</option>
<option class="option" value="Firewall" data-i18n="firewall">Firewall</option>
</select>
</div>
@@ -2799,7 +2835,7 @@
</div>
<div class="device-attr">
<label>
<button type="roll" name="data processing" value="&{template:rolls}{{header=^{dataprocessing}}}{{base=^{base}}}{{dice=[[(@{data_processing}+(?{Attribute|Willpower,@{willpower}|Logic,@{logic}|Intuition,@{intuition}})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Data Processing Roll" data-i18n="dataprocessing">Data Processing</button>
<button type="roll" name="data processing" value="&{template:rolls}{{header=^{data_processing}}}{{base=^{base}}}{{dice=[[(@{data_processing}+(?{Attribute|Willpower,@{willpower}|Logic,@{logic}|Intuition,@{intuition}})+@{modifier_toggle}+@{edge_toggle})d6>5@{explode_toggle}]]}}{{mod=[[@{modifier_toggle}]]}}{{wound=[[@{wound_toggle}]]}}{{edge=[[@{edge_toggle}]]}}" title="Data Processing Roll" data-i18n="data_processing">Data Processing</button>
</label>
<div class="matrix-bubble matrixData">
<input type="radio" name="attr_data_processing" value="1" /><span></span>
@@ -2913,7 +2949,7 @@
</div>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hidden Attributes ~~~~~~~~~~~~~~~~~~~~~~~~ -->
<input type="hidden" name="attr_version" value="1.5" />
<input type="hidden" name="attr_version" value="1.6" />
<input type="hidden" name="attr_wounds" value="0" />
<input type="hidden" name="attr_explode_toggle" value="" />
<input type="hidden" name="attr_attribute_roll" value="" />
@@ -3301,13 +3337,13 @@
const stat3 = parseInt(v[`${attr3}`]) || 0; //Logic, Strenght, Charisma
const mod = parseInt(v[`${type}_limit_modifier`]) || 0;
const tem = (v[`${type}_limit_temp_flag`] === "on") ? parseInt(v[`${type}_limit_temp_flag`]) || 0 : 0;
const tem = (v[`${type}_limit_temp_flag`] === "on") ? parseInt(v[`${type}_limit_temp`]) || 0 : 0;
const tot = ((stat1 + stat2 + (stat3 * 2))/3);
const update = Math.ceil(tot) + (mod + tem);
setAttrs({[`${type}_limit`]: update});
});
})
};
//This function checks changes to repeating_armor and updates the Primary Armor if needed
@@ -3389,8 +3425,6 @@
const add = (a, b) => a + b, sum = numbers.reduce(add);
setAttrs({[`${name}`]: sum});
console.log(`%c ${name} = ${numbers} totaling ${sum}`, "color: green;font-weight: bold;");
});
};
@@ -3745,6 +3779,7 @@
//REFACTORED Skills
['repeating_active','repeating_knowledge','repeating_language'].forEach(field => {
on(`change:${field}`, (eventinfo) => {
console.table(eventinfo);
const source = eventinfo.sourceAttribute;
const type = eventinfo.sourceType;
@@ -3767,6 +3802,20 @@
[`${field}_display_attribute`]: translation
});
});
} else if (source.includes("limit") && type === "player") {
const limit = eventinfo.newValue.slice(2, -1);
if (eventinfo.newValue === "none") {
setAttrs({
[`${field}_display_limit`]: ""
});
} else {
const translation = getTranslationByKey(`${limit}`);
setAttrs({
[`${field}_display_limit`]: `${translation} ${eventinfo.newValue}`
});
console.log(`${field}_display_limit : ${translation} ${eventinfo.newValue}`);
}
} else if (source.includes("specialization") && type === "player") {
getAttrs([`${source}`], (v) => {
const bas = v[`${source}`];
@@ -3802,7 +3851,8 @@
console.log(`Change to ${field} did not set attr`);
};
});
});
});
//Setting the Default attribute name for default skill
on("change:default_attribute", (eventinfo) => {
@@ -3893,20 +3943,6 @@
console.log(eventinfo);
};
/* switch (true) {
case /weapon/.test(source): update[`primary_${type}_weapon`] = v[`${source}`]; break;
case /damage/.test(source): update[`primary_${type}_weapon_damage`] = v[`${source}`]; break;
case /dicepool/.test(source): update[`primary_${type}_weapon_dicepool`] = v[`${source}`]; break;
case /acc/.test(source): update[`primary_${type}_weapon_acc`] = v[`${source}`]; break;
case /ap/.test(source): update[`primary_${type}_weapon_ap`] = v[`${source}`]; break;
case /skill/.test(source): update[`primary_${type}_weapon_skill`] = v[`${source}`]; break;
case /reach/.test(source): update[`primary_${type}_weapon_reach`] = v[`${source}`]; break;
case /ammo/.test(source): update[`primary_${type}_weapon_ammo`] = v[`${source}`], update[`primary_${type}_weapon_ammo_max`] = v[`${source}`]; break;
case /mode/.test(source): update[`primary_${type}_weapon_mode`] = v[`${source}`]; break;
case /recoil/.test(source): update[`primary_${type}_weapon_recoil`] = v[`${source}`]; break;
default: console.log(`Source ${source} was invalid`);} */
setAttrs(update);
};
});
@@ -4018,5 +4054,4 @@
});
});
</script>
Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

+7 -3
View File
@@ -1,4 +1,4 @@
{
{
"a": "A",
"acc": "ACC",
"accel": "Accel",
@@ -86,8 +86,8 @@
"dam": "Dam",
"damage": "Damage",
"damagetype": "Combat Damage",
"data_processing": "Data Processing",
"dataproc": "Data Proc.",
"dataprocessing": "Data Processing",
"decompiling": "Decompiling",
"default": "Default a skill",
"defense": "Defense",
@@ -189,6 +189,7 @@
"levelresonance": "Level / Resonance",
"licenses": "Licenses",
"liftcarry": "Lift & Carry",
"limit":"Limit",
"limits": "Limits",
"locksmith": "Locksmith",
"logic": "Logic",
@@ -213,6 +214,7 @@
"melee": "Melee",
"memory": "Memory",
"mental": "Mental",
"mental_limit": "Mental Limit",
"mentallimit": "Mental Limit:",
"metamagic": "Metamagic",
"metatype": "Metatype",
@@ -254,6 +256,7 @@
"persona": "Persona",
"personal": "Personal Data",
"physical": "Physical",
"physical_limit": "Physical Limit",
"physicalbonus": "Physical Bonus",
"physicaldamagetrack": "Physical Damage Track",
"physicallimit":"Physical Limit:",
@@ -270,6 +273,7 @@
"plot": "Plot",
"power": "Power",
"powers": "Powers",
"pr": "Professional Rating",
"prep":"Prep...",
"primary": "Primary",
"primaryarmor": "Primary Armor",
@@ -277,7 +281,6 @@
"primarymeleeweapon": "Primary Melee Weapon",
"primaryrangedweapon": "Primary Ranged Weapon",
"programs": "Programs",
"pr": "Professional Rating",
"projectileweapons": "Projectile Weapons",
"public": "Public",
"publicawareness": "Public Awereness",
@@ -319,6 +322,7 @@
"soak": "Soak",
"soakbonus": "Soak Bonus",
"social": "Social",
"social_limit": "Social Limit",
"sociallimit": "Social Limit: ",
"socialskills": "Social Skills",
"software": "Software",