Merge pull request #9601 from LongShadowGames/they-came-from-beneath-the-sea

[They Came From Beneath The Sea!] Update tcfbts.html
This commit is contained in:
Nic Bradley
2021-10-11 15:41:27 -07:00
committed by GitHub
+13 -2
View File
@@ -1,5 +1,5 @@
<!-- Hidden fields -->
<input type="hidden" name="attr_sheet-version" value="1.2">
<input type="hidden" name="attr_sheet-version">
<div class="wrapper">
<div class="logo"><img src="https://github.com/LongShadowGames/roll20-character-sheets/blob/they-came-from-beneath-the-sea/TheyCameFromBeneathTheSea/images/they-came-from-beneath-the-sea.png?raw=true" alt="They Came From Beneath The Sea!"></div>
@@ -811,7 +811,7 @@
<input type="hidden" class="toggle-more" name="attr_more" value="0" /><button type="action" name="act_toggle"><span class="more" data-i18n="more">More</span><span class="less" data-i18n="less">Less</span></button>
<div class="expandable">
<h3 data-i18n="skillorattribute">Skill or Attribute</h3>
<input type="text" name="trademark_skillorattribute" list="skillorattributelist">
<input type="text" name="attr_trademark_skillorattribute" list="skillorattributelist">
<datalist id="skillorattributelist">
<option value="Aim" data-i18n="aim">Aim</option>
<option value="Athletics" data-i18n="athletics">Athletics</option>
@@ -2105,5 +2105,16 @@ on("sheet:opened", function(eventInfo){
});
});
on('sheet:opened', function() {
getAttrs(['sheet-version','ambition_field'], function(values) {
let newattrs = {};
if (String(values['sheet-version'])=="") {
newattrs['sheet-version']="1.21";
}
setAttrs(newattrs);
});
});
</script>