Fixing bugs detected by QA on 20210204
This commit is contained in:
@@ -61,7 +61,7 @@ input[type=radio].sheet-npc-button + span {
|
||||
.sheet-advantagetoggle {
|
||||
position: absolute;
|
||||
top: 92px;
|
||||
left: 570px;
|
||||
left: 440px;
|
||||
z-index: 1;
|
||||
}
|
||||
.sheet-advantagetoggle input[type=radio] {
|
||||
@@ -122,7 +122,7 @@ input[type=radio].sheet-tab-button:checked + span, .sheet-advantagetoggle input[
|
||||
}
|
||||
|
||||
.sheet-whispertoggle {
|
||||
left: 270px;
|
||||
left: 150px;
|
||||
}
|
||||
|
||||
.sheet-advantagetoggle.sheet-whispertoggle input.sheet-toggle-right {
|
||||
@@ -5942,14 +5942,14 @@ div.sheet-charmancer.sheet-licensedsheet .sheet-logos {
|
||||
flex-flow: column;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
div.sheet-charmancer div.sheet-licensedsheet-flag:not(:empty) ~ * .sheet-logos, div.sheet-charmancer div.sheet-licensedsheet-flag:not(:empty) ~ .sheet-logos {
|
||||
div.sheet-charmancer .sheet-logos, div.sheet-charmancer .sheet-logos {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
flex-flow: column;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
div.sheet-charmancer.sheet-licensedsheet .sheet-charmancer-logo {
|
||||
div.sheet-charmancer .sheet-charmancer-logo {
|
||||
margin: 0 auto;
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/charactermancer-1.png");
|
||||
background-position: center;
|
||||
@@ -5959,7 +5959,7 @@ div.sheet-charmancer.sheet-licensedsheet .sheet-charmancer-logo {
|
||||
width: 70%;
|
||||
height: 5em;
|
||||
}
|
||||
div.sheet-charmancer div.sheet-licensedsheet-flag:not(:empty) ~ * .sheet-charmancer-logo, div.sheet-charmancer div.sheet-licensedsheet-flag:not(:empty) ~ .sheet-charmancer-logo {
|
||||
div.sheet-charmancer .sheet-charmancer-logo, div.sheet-charmancer .sheet-charmancer-logo {
|
||||
margin: 0 auto;
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/charactermancer-1.png");
|
||||
background-position: center;
|
||||
@@ -5971,7 +5971,7 @@ div.sheet-charmancer div.sheet-licensedsheet-flag:not(:empty) ~ * .sheet-charman
|
||||
}
|
||||
div.sheet-charmancer.sheet-licensedsheet .sheet-compendium-logo {
|
||||
margin: 0 auto;
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/DnDlogored.png");
|
||||
background: url("https://raw.githubusercontent.com/skydawn1/esper_genesis/master/EG_Logo.png");
|
||||
background-position: center;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
@@ -5979,9 +5979,9 @@ div.sheet-charmancer.sheet-licensedsheet .sheet-compendium-logo {
|
||||
width: 50%;
|
||||
height: 3em;
|
||||
}
|
||||
div.sheet-charmancer div.sheet-licensedsheet-flag:not(:empty) ~ * .sheet-compendium-logo, div.sheet-charmancer div.sheet-licensedsheet-flag:not(:empty) ~ .sheet-compendium-logo {
|
||||
div.sheet-charmancer .sheet-compendium-logo, div.sheet-charmancer .sheet-compendium-logo {
|
||||
margin: 0 auto;
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/DnDlogored.png");
|
||||
background: url("https://raw.githubusercontent.com/skydawn1/esper_genesis/master/EG_Logo.png");
|
||||
background-position: center;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
+100
-206
@@ -6784,7 +6784,7 @@
|
||||
<label class="hilite"><span data-i18n="choose-background"></span>
|
||||
<select accept="Category:Backgrounds" name="comp_background" required="required">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
<option class="custom" data-i18n="custom" value="Rules::Personality%20and%20Background"></option>
|
||||
<option class="custom" data-i18n="custom" value="Rules:Personality%20and%20Background"></option>
|
||||
</select>
|
||||
</label>
|
||||
<div class="choice custom_background">
|
||||
@@ -6985,12 +6985,12 @@
|
||||
</div>
|
||||
<div class="choices spell_holder"></div>
|
||||
<div class="info choice spell-info-container">
|
||||
<div class="sheet-compendium-page sheet-spell-info sheet-spells-info" accept="Rules:Spells"></div>
|
||||
<div class="sheet-compendium-page sheet-spell-info sheet-spells-info" accept="Rules:Esper%20Powers"></div>
|
||||
</div>
|
||||
<div class="bottombar">
|
||||
<button class="prev" data-i18n="back" type="back" value="l1-equipment"></button>
|
||||
<button class="jump" data-i18n="back-to-top" data-scroll="#top" type="button"></button>
|
||||
<button class="next" data-i18n="next" type="back" value="l1-feat"></button>
|
||||
<button class="next" data-i18n="next" type="back" value="l1-bio"></button>
|
||||
</div>
|
||||
<div class="choice cancel-prompt">
|
||||
<p class="label" data-i18n="charmancer-cancel-heading"></p>
|
||||
@@ -7005,206 +7005,94 @@
|
||||
<input name="comp_class_number" type="hidden"/>
|
||||
</div>
|
||||
</charmancer>
|
||||
<charmancer class="sheet-charmancer-l1-feat">
|
||||
<div class="charmancer container">
|
||||
<ol class="steps"></ol>
|
||||
<div class="topbar-holder"></div>
|
||||
<div class="choice no_feat">
|
||||
<p class="label" data-i18n="charmancer-a-feat-represents"></p>
|
||||
<p data-i18n="you-really-havent-done"></p>
|
||||
</div>
|
||||
<div class="choices choice yes_feat">
|
||||
<div class="row">
|
||||
<label><span data-i18n="choose-a-feat:"></span>
|
||||
<select accept="Category:Feats" name="comp_feat">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="choice feat_options">
|
||||
<div class="row choice feat_prereq feat_possible">
|
||||
<label class="warning"><span data-i18n="prerequisite:"></span>
|
||||
<p class="feat_prerequisite feat_text"></p>
|
||||
<p class="feat_text" data-i18n="feat-pre-check"></p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_ability feat_possible">
|
||||
<label><span data-i18n="ability-score-increase:"></span>
|
||||
<p class="feat_ability_score feat_text"></p>
|
||||
<select class="choice feat_possible feat_ability_choice" name="comp_feat_ability_choice">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_language_row">
|
||||
<label><span data-i18n="language-proficiencies"></span>
|
||||
<p class="feat_text feat_languages"></p>
|
||||
<select class="choice feat_possible feat_language_choice1" name="comp_feat_language_choice1">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_language_choice2" name="comp_feat_language_choice2">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_language_choice3" name="comp_feat_language_choice3">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_language_choice4" name="comp_feat_language_choice4">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_skill_row">
|
||||
<label><span data-i18n="skill-proficiencies"></span>
|
||||
<p class="feat_text feat_skills"></p>
|
||||
<select class="choice feat_possible feat_skill_choice1" name="comp_feat_skill_choice1" accept="Category:Proficiencies Type:Skill">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_skill_choice2" name="comp_feat_skill_choice2" accept="Category:Proficiencies Type:Skill">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_skill_choice3" name="comp_feat_skill_choice3" accept="Category:Proficiencies Type:Skill">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_skill_choice4" name="comp_feat_skill_choice4" accept="Category:Proficiencies Type:Skill">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_weapon_row">
|
||||
<label><span data-i18n="weapon-proficiencies"></span>
|
||||
<p class="feat_text feat_weapons"></p>
|
||||
<select class="choice feat_possible feat_weapon_choice1" name="comp_feat_weapon_choice1">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_weapon_choice2" name="comp_feat_weapon_choice2">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_weapon_choice3" name="comp_feat_weapon_choice3">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_weapon_choice4" name="comp_feat_weapon_choice4">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_armor_row">
|
||||
<label><span data-i18n="armor-proficiencies"></span>
|
||||
<p class="feat_text feat_armors"></p>
|
||||
<select class="choice feat_possible feat_armor_choice1" name="comp_feat_armor_choice1">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_armor_choice2" name="comp_feat_armor_choice2">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_armor_choice3" name="comp_feat_armor_choice3">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_armor_choice4" name="comp_feat_armor_choice4">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_tool_row">
|
||||
<label><span data-i18n="tool-proficiencies"></span>
|
||||
<p class="feat_text feat_tools"></p>
|
||||
<select class="choice feat_possible feat_tool_choice1" name="comp_feat_tool_choice1">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_tool_choice2" name="comp_feat_tool_choice2">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_tool_choice3" name="comp_feat_tool_choice3">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_tool_choice4" name="comp_feat_tool_choice4">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="sheet-row sheet-choice sheet-feat_possible sheet-feat_spell_row">
|
||||
<label><span data-i18n="spell-list">Spell List:<span style="color: red;"></span></span>
|
||||
<p class="sheet-feat_text sheet-feat_spells"></p>
|
||||
<select class="sheet-choice sheet-feat_possible sheet-feat_spell_choice1" name="comp_feat_spell_choice1">
|
||||
<option data-i18n="choose" value="">Choose</option>
|
||||
</select>
|
||||
<select class="sheet-choice sheet-feat_possible sheet-feat_spell_choice2" name="comp_feat_spell_choice2">
|
||||
<option data-i18n="choose" value="">Choose</option>
|
||||
</select>
|
||||
<select class="sheet-choice sheet-feat_possible sheet-feat_spell_choice3" name="comp_feat_spell_choice3">
|
||||
<option data-i18n="choose" value="">Choose</option>
|
||||
</select>
|
||||
<select class="sheet-choice sheet-feat_possible sheet-feat_spell_choice4" name="comp_feat_spell_choice4">
|
||||
<option data-i18n="choose" value="">Choose</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_expertise_row">
|
||||
<label><span data-i18n="expertise"></span>
|
||||
<select class="choice feat_possible feat_expertise_choice1" name="comp_feat_expertise_choice_1">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
<select class="choice feat_possible feat_expertise_choice2" name="comp_feat_expertise_choice_2">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_feature_row_1">
|
||||
<h4 class="feat_feature_name_1"></h4><span class="feat_feature_1"></span>
|
||||
<select class="feat_possible feat_feature_choice_1" name="comp_feat_feature_choice_1">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
<option class="custom" data-i18n="custom"></option>
|
||||
</select>
|
||||
<p class="description feat_feature_description_1"></p>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_feature_row_1_double">
|
||||
<h4 class="feat_feature_name_1_double"></h4><span class="feat_feature_1_double"></span>
|
||||
<select class="feat_possible feat_feature_choice_1_double" name="comp_feat_feature_choice_3">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
<option class="custom" data-i18n="custom"></option>
|
||||
</select>
|
||||
<p class="description feat_feature_description_1_double"></p>
|
||||
</div>
|
||||
<div class="row choice feat_possible feat_feature_row_2">
|
||||
<h4 class="feat_feature_name_2"></h4><span class="feat_feature_2"></span>
|
||||
<select class="feat_possible feat_feature_choice_2" name="comp_feat_feature_choice_2">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
<option class="custom" data-i18n="custom"></option>
|
||||
</select>
|
||||
<p class="description feat_feature_description_2"></p>
|
||||
</div>
|
||||
<div class="choice row feat_possible other_options_and_features1">
|
||||
<label><span class="other_options_and_features_title1"></span>
|
||||
<select class="feat_possible other_options_and_features_choice1" name="comp_other_options_and_features_choice1">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="choice row feat_possible other_options_and_features2">
|
||||
<label><span class="other_options_and_features_title2"></span>
|
||||
<select class="feat_possible other_options_and_features_choice1" name="comp_other_options_and_features_choice2">
|
||||
<option data-i18n="choose" value=""></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info feat-info-container choice yes_feat">
|
||||
<div class="sheet-compendium-page sheet-feat-info" accept="Rules:Feats"></div>
|
||||
</div>
|
||||
<div class="bottombar">
|
||||
<button class="prev" data-i18n="back" type="back" value="l1-spells"></button>
|
||||
<button class="jump" data-i18n="back-to-top" data-scroll="#top" type="button"></button>
|
||||
<button class="next" data-i18n="next" type="back" value="l1-bio"></button>
|
||||
</div>
|
||||
<div class="choice cancel-prompt">
|
||||
<p class="label" data-i18n="charmancer-cancel-heading"></p>
|
||||
<button class="warning" data-i18n="cancel_charactermancer" type="cancel" value="l1-cancel"></button>
|
||||
<button data-i18n="save_progress_and_exit" type="cancel" value="l1-feat"></button>
|
||||
<button data-i18n="continue-charmancer" name="act_continue" type="action"></button>
|
||||
<p class="warning"><span data-i18n="charmancer-discard-warning"></span></p>
|
||||
</div>
|
||||
</div>
|
||||
</charmancer>
|
||||
<!--
|
||||
charmancer.sheet-charmancer-l1-feat
|
||||
.charmancer.container
|
||||
ol.steps
|
||||
.topbar-holder
|
||||
.choice.no_feat
|
||||
p.label(data-i18n='charmancer-a-feat-represents')
|
||||
p(data-i18n='you-really-havent-done')
|
||||
.choices.choice.yes_feat
|
||||
.row
|
||||
label
|
||||
span(data-i18n='choose-a-feat:')
|
||||
select(accept='Category:Feats' name='comp_feat')
|
||||
option(data-i18n='choose' value='')
|
||||
.choice.feat_options
|
||||
.row.choice.feat_prereq.feat_possible
|
||||
label.warning
|
||||
span(data-i18n='prerequisite:')
|
||||
p.feat_prerequisite.feat_text
|
||||
p.feat_text(data-i18n='feat-pre-check')
|
||||
.row.choice.feat_ability.feat_possible
|
||||
label
|
||||
span(data-i18n='ability-score-increase:')
|
||||
p.feat_ability_score.feat_text
|
||||
select.choice.feat_possible.feat_ability_choice(name='comp_feat_ability_choice')
|
||||
option(data-i18n='choose' value='')
|
||||
+featChoices('language')
|
||||
+featChoices('skill', 'Category:Proficiencies Type:Skill')
|
||||
+featChoices('weapon')
|
||||
+featChoices('armor')
|
||||
+featChoices('tool')
|
||||
.sheet-row.sheet-choice.sheet-feat_possible.sheet-feat_spell_row
|
||||
label
|
||||
span(data-i18n='spell-list') Spell List:
|
||||
span(style='color: red;')
|
||||
p.sheet-feat_text.sheet-feat_spells
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice1(name='comp_feat_spell_choice1')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice2(name='comp_feat_spell_choice2')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice3(name='comp_feat_spell_choice3')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice4(name='comp_feat_spell_choice4')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
.row.choice.feat_possible.feat_expertise_row
|
||||
label
|
||||
span(data-i18n='expertise')
|
||||
each val in [1, 2]
|
||||
select(class=`choice feat_possible feat_expertise_choice${val}` name=`comp_feat_expertise_choice_${val}`)
|
||||
option(data-i18n='choose' value='')
|
||||
.row.choice.feat_possible.feat_feature_row_1
|
||||
h4.feat_feature_name_1
|
||||
span(class='feat_feature_1')
|
||||
select.feat_possible.feat_feature_choice_1(name='comp_feat_feature_choice_1')
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_1
|
||||
.row.choice.feat_possible.feat_feature_row_1_double
|
||||
h4.feat_feature_name_1_double
|
||||
span.feat_feature_1_double
|
||||
select.feat_possible.feat_feature_choice_1_double(name='comp_feat_feature_choice_3')
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_1_double
|
||||
.row.choice.feat_possible.feat_feature_row_2
|
||||
h4.feat_feature_name_2
|
||||
span.feat_feature_2
|
||||
select.feat_possible.feat_feature_choice_2(name='comp_feat_feature_choice_2')
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_2
|
||||
.choice.row.feat_possible.other_options_and_features1
|
||||
label
|
||||
span.other_options_and_features_title1
|
||||
select.feat_possible.other_options_and_features_choice1(name='comp_other_options_and_features_choice1')
|
||||
option(data-i18n='choose' value='')
|
||||
.choice.row.feat_possible.other_options_and_features2
|
||||
label
|
||||
span.other_options_and_features_title2
|
||||
select.feat_possible.other_options_and_features_choice1(name='comp_other_options_and_features_choice2')
|
||||
option(data-i18n='choose' value='')
|
||||
.info.feat-info-container.choice.yes_feat
|
||||
.sheet-compendium-page.sheet-feat-info(accept='Rules:Feats')
|
||||
+bottomBar('spells', 'bio')
|
||||
+cancelPrompt('feat')
|
||||
|
||||
|
||||
-->
|
||||
<charmancer class="sheet-charmancer-l1-bio">
|
||||
<div class="charmancer container">
|
||||
<ol class="steps"></ol>
|
||||
@@ -7258,7 +7146,7 @@
|
||||
<div class="sheet-compendium-page sheet-race-info" accept="Rules:Races"></div>
|
||||
</div>
|
||||
<div class="bottombar">
|
||||
<button class="prev" data-i18n="back" type="back" value="l1-feat"></button>
|
||||
<button class="prev" data-i18n="back" type="back" value="l1-spells"></button>
|
||||
<button class="jump" data-i18n="back-to-top" data-scroll="#top" type="button"></button>
|
||||
<button class="next" data-i18n="next" type="back" value="l1-summary"></button>
|
||||
</div>
|
||||
@@ -11913,7 +11801,7 @@ var processDrop = function(page, currentData, repeating, looped) {
|
||||
clearRepeatingSections("background_holder");
|
||||
}
|
||||
|
||||
if(eventinfo.newValue === "Rules::Personality%20and%20Background") {
|
||||
if(eventinfo.newValue === "Rules:Personality%20and%20Background") {
|
||||
//Clears saved data for this field
|
||||
getCompendiumPage("");
|
||||
setAttrs(reset, function() {
|
||||
@@ -13739,6 +13627,12 @@ var processDrop = function(page, currentData, repeating, looped) {
|
||||
profs.all[slide.values[sectionid + "_type"]].push(slide.values[sectionid + "_custom"])
|
||||
}
|
||||
}
|
||||
if(value == "custom" && name.includes('language_choice')) {
|
||||
const customValueAttribute = name.replace('language_choice', 'language_custom')
|
||||
if(slide.values[customValueAttribute]) {
|
||||
profs.all['Language'].push(slide.values[customValueAttribute]);
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
//Set up drops. start with class, subclass, race, subrace, background
|
||||
@@ -13880,7 +13774,7 @@ var processDrop = function(page, currentData, repeating, looped) {
|
||||
}
|
||||
//set up background drop
|
||||
if(data["l1-background"].values.background) {
|
||||
if(data["l1-background"].values.background == "Rules::Personality%20and%20Backgrounds") {
|
||||
if(data["l1-background"].values.background == "Rules:Personality%20and%20Backgrounds") {
|
||||
var customBg = {name: removeExpansionInfo(data["l1-background"].values["background_name"]), data: {Category: "Backgrounds", blobs:{}}};
|
||||
if(customtraits.background.length > 0) {
|
||||
customBg.data.theseblobs = ["customblob"];
|
||||
|
||||
@@ -60,7 +60,7 @@ input[type=radio]
|
||||
.sheet-advantagetoggle
|
||||
position: absolute
|
||||
top: 92px
|
||||
left: 570px
|
||||
left: 440px
|
||||
z-index: 1
|
||||
|
||||
input[type=radio]
|
||||
@@ -119,7 +119,7 @@ input[type=radio].sheet-tab-button:checked + span, .sheet-advantagetoggle input[
|
||||
width: 110px
|
||||
|
||||
.sheet-whispertoggle
|
||||
left: 270px
|
||||
left: 150px
|
||||
|
||||
.sheet-advantagetoggle.sheet-whispertoggle input
|
||||
&.sheet-toggle-right
|
||||
@@ -5837,8 +5837,7 @@ div.sheet-charmancer
|
||||
flex-flow: column
|
||||
margin-bottom: 1em
|
||||
|
||||
div.sheet-licensedsheet-flag:not(:empty) ~
|
||||
* .sheet-logos, .sheet-logos
|
||||
.sheet-logos, .sheet-logos
|
||||
display: -webkit-box
|
||||
display: -ms-flexbox
|
||||
display: flex
|
||||
@@ -5850,7 +5849,7 @@ div.sheet-charmancer
|
||||
flex-flow: column
|
||||
margin-bottom: 1em
|
||||
|
||||
&.sheet-licensedsheet .sheet-charmancer-logo
|
||||
.sheet-charmancer-logo
|
||||
margin: 0 auto
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/charactermancer-1.png")
|
||||
background-position: center
|
||||
@@ -5862,8 +5861,7 @@ div.sheet-charmancer
|
||||
width: 70%
|
||||
height: 5em
|
||||
|
||||
div.sheet-licensedsheet-flag:not(:empty) ~
|
||||
* .sheet-charmancer-logo, .sheet-charmancer-logo
|
||||
.sheet-charmancer-logo, .sheet-charmancer-logo
|
||||
margin: 0 auto
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/charactermancer-1.png")
|
||||
background-position: center
|
||||
@@ -5877,7 +5875,7 @@ div.sheet-charmancer
|
||||
|
||||
&.sheet-licensedsheet .sheet-compendium-logo
|
||||
margin: 0 auto
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/DnDlogored.png")
|
||||
background: url("https://raw.githubusercontent.com/skydawn1/esper_genesis/master/EG_Logo.png")
|
||||
background-position: center
|
||||
background-size: contain
|
||||
background-repeat: no-repeat
|
||||
@@ -5887,10 +5885,9 @@ div.sheet-charmancer
|
||||
width: 50%
|
||||
height: 3em
|
||||
|
||||
div.sheet-licensedsheet-flag:not(:empty) ~
|
||||
* .sheet-compendium-logo, .sheet-compendium-logo
|
||||
.sheet-compendium-logo, .sheet-compendium-logo
|
||||
margin: 0 auto
|
||||
background: url("https://raw.githubusercontent.com/mperes/Images-for-Roll20-5E-images/master/licensedsheet/DnDlogored.png")
|
||||
background: url("https://raw.githubusercontent.com/skydawn1/esper_genesis/master/EG_Logo.png")
|
||||
background-position: center
|
||||
background-size: contain
|
||||
background-repeat: no-repeat
|
||||
|
||||
@@ -1665,7 +1665,7 @@
|
||||
clearRepeatingSections("background_holder");
|
||||
}
|
||||
|
||||
if(eventinfo.newValue === "Rules::Personality%20and%20Background") {
|
||||
if(eventinfo.newValue === "Rules:Personality%20and%20Background") {
|
||||
//Clears saved data for this field
|
||||
getCompendiumPage("");
|
||||
setAttrs(reset, function() {
|
||||
@@ -3491,6 +3491,12 @@
|
||||
profs.all[slide.values[sectionid + "_type"]].push(slide.values[sectionid + "_custom"])
|
||||
}
|
||||
}
|
||||
if(value == "custom" && name.includes('language_choice')) {
|
||||
const customValueAttribute = name.replace('language_choice', 'language_custom')
|
||||
if(slide.values[customValueAttribute]) {
|
||||
profs.all['Language'].push(slide.values[customValueAttribute]);
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
//Set up drops. start with class, subclass, race, subrace, background
|
||||
@@ -3632,7 +3638,7 @@
|
||||
}
|
||||
//set up background drop
|
||||
if(data["l1-background"].values.background) {
|
||||
if(data["l1-background"].values.background == "Rules::Personality%20and%20Backgrounds") {
|
||||
if(data["l1-background"].values.background == "Rules:Personality%20and%20Backgrounds") {
|
||||
var customBg = {name: removeExpansionInfo(data["l1-background"].values["background_name"]), data: {Category: "Backgrounds", blobs:{}}};
|
||||
if(customtraits.background.length > 0) {
|
||||
customBg.data.theseblobs = ["customblob"];
|
||||
|
||||
@@ -297,7 +297,7 @@ charmancer.sheet-charmancer-l1-background
|
||||
span(data-i18n='choose-background')
|
||||
select(accept='Category:Backgrounds' name='comp_background' required)
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom' value='Rules::Personality%20and%20Background')
|
||||
option.custom(data-i18n='custom' value='Rules:Personality%20and%20Background')
|
||||
.choice.custom_background
|
||||
label.hilite
|
||||
span(data-i18n='name-background')
|
||||
@@ -422,8 +422,8 @@ charmancer.sheet-charmancer-l1-spells
|
||||
p(data-i18n='your-character-dont-have-spells-this-lvl')
|
||||
.choices.spell_holder
|
||||
.info.choice.spell-info-container
|
||||
.sheet-compendium-page.sheet-spell-info(accept='Rules:Spells' class=`sheet-spells-info`)
|
||||
+bottomBar('equipment', 'feat')
|
||||
.sheet-compendium-page.sheet-spell-info(accept='Rules:Esper%20Powers' class=`sheet-spells-info`)
|
||||
+bottomBar('equipment', 'bio')
|
||||
+cancelPrompt('spells')
|
||||
each val in ['race_spells', 'class_spells', 'race_number', 'class_number']
|
||||
input(name=`comp_${val}` type='hidden')
|
||||
@@ -444,90 +444,91 @@ mixin featChoices(type, acceptString)
|
||||
option(data-i18n='choose' value='')
|
||||
- choiceInt++
|
||||
|
||||
charmancer.sheet-charmancer-l1-feat
|
||||
.charmancer.container
|
||||
ol.steps
|
||||
.topbar-holder
|
||||
.choice.no_feat
|
||||
p.label(data-i18n='charmancer-a-feat-represents')
|
||||
p(data-i18n='you-really-havent-done')
|
||||
.choices.choice.yes_feat
|
||||
.row
|
||||
label
|
||||
span(data-i18n='choose-a-feat:')
|
||||
select(accept='Category:Feats' name='comp_feat')
|
||||
option(data-i18n='choose' value='')
|
||||
.choice.feat_options
|
||||
.row.choice.feat_prereq.feat_possible
|
||||
label.warning
|
||||
span(data-i18n='prerequisite:')
|
||||
p.feat_prerequisite.feat_text
|
||||
p.feat_text(data-i18n='feat-pre-check')
|
||||
.row.choice.feat_ability.feat_possible
|
||||
//
|
||||
charmancer.sheet-charmancer-l1-feat
|
||||
.charmancer.container
|
||||
ol.steps
|
||||
.topbar-holder
|
||||
.choice.no_feat
|
||||
p.label(data-i18n='charmancer-a-feat-represents')
|
||||
p(data-i18n='you-really-havent-done')
|
||||
.choices.choice.yes_feat
|
||||
.row
|
||||
label
|
||||
span(data-i18n='ability-score-increase:')
|
||||
p.feat_ability_score.feat_text
|
||||
select.choice.feat_possible.feat_ability_choice(name='comp_feat_ability_choice')
|
||||
span(data-i18n='choose-a-feat:')
|
||||
select(accept='Category:Feats' name='comp_feat')
|
||||
option(data-i18n='choose' value='')
|
||||
+featChoices('language')
|
||||
+featChoices('skill', 'Category:Proficiencies Type:Skill')
|
||||
+featChoices('weapon')
|
||||
+featChoices('armor')
|
||||
+featChoices('tool')
|
||||
.sheet-row.sheet-choice.sheet-feat_possible.sheet-feat_spell_row
|
||||
label
|
||||
span(data-i18n='spell-list') Spell List:
|
||||
span(style='color: red;')
|
||||
p.sheet-feat_text.sheet-feat_spells
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice1(name='comp_feat_spell_choice1')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice2(name='comp_feat_spell_choice2')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice3(name='comp_feat_spell_choice3')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice4(name='comp_feat_spell_choice4')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
.row.choice.feat_possible.feat_expertise_row
|
||||
label
|
||||
span(data-i18n='expertise')
|
||||
each val in [1, 2]
|
||||
select(class=`choice feat_possible feat_expertise_choice${val}` name=`comp_feat_expertise_choice_${val}`)
|
||||
.choice.feat_options
|
||||
.row.choice.feat_prereq.feat_possible
|
||||
label.warning
|
||||
span(data-i18n='prerequisite:')
|
||||
p.feat_prerequisite.feat_text
|
||||
p.feat_text(data-i18n='feat-pre-check')
|
||||
.row.choice.feat_ability.feat_possible
|
||||
label
|
||||
span(data-i18n='ability-score-increase:')
|
||||
p.feat_ability_score.feat_text
|
||||
select.choice.feat_possible.feat_ability_choice(name='comp_feat_ability_choice')
|
||||
option(data-i18n='choose' value='')
|
||||
.row.choice.feat_possible.feat_feature_row_1
|
||||
h4.feat_feature_name_1
|
||||
span(class='feat_feature_1')
|
||||
select.feat_possible.feat_feature_choice_1(name='comp_feat_feature_choice_1')
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_1
|
||||
.row.choice.feat_possible.feat_feature_row_1_double
|
||||
h4.feat_feature_name_1_double
|
||||
span.feat_feature_1_double
|
||||
select.feat_possible.feat_feature_choice_1_double(name='comp_feat_feature_choice_3')
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_1_double
|
||||
.row.choice.feat_possible.feat_feature_row_2
|
||||
h4.feat_feature_name_2
|
||||
span.feat_feature_2
|
||||
select.feat_possible.feat_feature_choice_2(name='comp_feat_feature_choice_2')
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_2
|
||||
.choice.row.feat_possible.other_options_and_features1
|
||||
label
|
||||
span.other_options_and_features_title1
|
||||
select.feat_possible.other_options_and_features_choice1(name='comp_other_options_and_features_choice1')
|
||||
+featChoices('language')
|
||||
+featChoices('skill', 'Category:Proficiencies Type:Skill')
|
||||
+featChoices('weapon')
|
||||
+featChoices('armor')
|
||||
+featChoices('tool')
|
||||
.sheet-row.sheet-choice.sheet-feat_possible.sheet-feat_spell_row
|
||||
label
|
||||
span(data-i18n='spell-list') Spell List:
|
||||
span(style='color: red;')
|
||||
p.sheet-feat_text.sheet-feat_spells
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice1(name='comp_feat_spell_choice1')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice2(name='comp_feat_spell_choice2')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice3(name='comp_feat_spell_choice3')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
select.sheet-choice.sheet-feat_possible.sheet-feat_spell_choice4(name='comp_feat_spell_choice4')
|
||||
option(data-i18n='choose' value='') Choose
|
||||
.row.choice.feat_possible.feat_expertise_row
|
||||
label
|
||||
span(data-i18n='expertise')
|
||||
each val in [1, 2]
|
||||
select(class=`choice feat_possible feat_expertise_choice${val}` name=`comp_feat_expertise_choice_${val}`)
|
||||
option(data-i18n='choose' value='')
|
||||
.row.choice.feat_possible.feat_feature_row_1
|
||||
h4.feat_feature_name_1
|
||||
span(class='feat_feature_1')
|
||||
select.feat_possible.feat_feature_choice_1(name='comp_feat_feature_choice_1')
|
||||
option(data-i18n='choose' value='')
|
||||
.choice.row.feat_possible.other_options_and_features2
|
||||
label
|
||||
span.other_options_and_features_title2
|
||||
select.feat_possible.other_options_and_features_choice1(name='comp_other_options_and_features_choice2')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_1
|
||||
.row.choice.feat_possible.feat_feature_row_1_double
|
||||
h4.feat_feature_name_1_double
|
||||
span.feat_feature_1_double
|
||||
select.feat_possible.feat_feature_choice_1_double(name='comp_feat_feature_choice_3')
|
||||
option(data-i18n='choose' value='')
|
||||
.info.feat-info-container.choice.yes_feat
|
||||
.sheet-compendium-page.sheet-feat-info(accept='Rules:Feats')
|
||||
+bottomBar('spells', 'bio')
|
||||
+cancelPrompt('feat')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_1_double
|
||||
.row.choice.feat_possible.feat_feature_row_2
|
||||
h4.feat_feature_name_2
|
||||
span.feat_feature_2
|
||||
select.feat_possible.feat_feature_choice_2(name='comp_feat_feature_choice_2')
|
||||
option(data-i18n='choose' value='')
|
||||
option.custom(data-i18n='custom')
|
||||
p.description.feat_feature_description_2
|
||||
.choice.row.feat_possible.other_options_and_features1
|
||||
label
|
||||
span.other_options_and_features_title1
|
||||
select.feat_possible.other_options_and_features_choice1(name='comp_other_options_and_features_choice1')
|
||||
option(data-i18n='choose' value='')
|
||||
.choice.row.feat_possible.other_options_and_features2
|
||||
label
|
||||
span.other_options_and_features_title2
|
||||
select.feat_possible.other_options_and_features_choice1(name='comp_other_options_and_features_choice2')
|
||||
option(data-i18n='choose' value='')
|
||||
.info.feat-info-container.choice.yes_feat
|
||||
.sheet-compendium-page.sheet-feat-info(accept='Rules:Feats')
|
||||
+bottomBar('spells', 'bio')
|
||||
+cancelPrompt('feat')
|
||||
|
||||
|
||||
charmancer.sheet-charmancer-l1-bio
|
||||
@@ -544,7 +545,7 @@ charmancer.sheet-charmancer-l1-bio
|
||||
div(data-i18n=datai18n)
|
||||
input(name=`comp_${attributeName}` type='text')
|
||||
+infoDiv('race','Rules:Races')
|
||||
+bottomBar('feat', 'summary')
|
||||
+bottomBar('spells', 'summary')
|
||||
+cancelPrompt('bio')
|
||||
|
||||
|
||||
|
||||
@@ -583,7 +583,7 @@
|
||||
"get-started": "Get started by clicking Next.",
|
||||
"opt-out-u": "OPT OUT",
|
||||
"charmancer-compendium": "Your Compendium Awaits.",
|
||||
"charmancer-compendium-detail": "The Charactermancer currently supports Dungeons & Dragons 5th Edition SRD and the Player's Handbook. You can add the Player's Handbook to your compendium in the Marketplace, or the game owner can share their compendium with everyone in the game.",
|
||||
"charmancer-compendium-detail": "The Charactermancer currently supports the Esper Genesis SRD. You can add the Core Manual to your compendium in the Marketplace, or the game owner can share their compendium with everyone in the game.",
|
||||
"charmancer-choose-race": "Choose a Race:",
|
||||
"charmancer-custom-race-name": "Custom Race Name:",
|
||||
"charmancer-custom-subclass-name:": "Custom sublass Name:",
|
||||
|
||||
Reference in New Issue
Block a user