mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-01 04:32:28 +00:00
Always fixing you~ ♪
This commit is contained in:
@@ -781,6 +781,7 @@ text-align:left;
|
||||
|
||||
.ui-dialog .charsheet .sheet-talent-card input[type="checkbox"]:checked + span {
|
||||
justify-content: left;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.ui-dialog .charsheet button[type="roll"] {
|
||||
@@ -2066,11 +2067,14 @@ input.sheet-inputchar2 {
|
||||
|
||||
.sheet-talent-card-line4 span.sheet-isconcentration,
|
||||
.sheet-talent-card-line4 span.sheet-isritual {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
text-align: center !important;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 10px!important;
|
||||
line-height: 10px!important;
|
||||
justify-content: center!important;
|
||||
align-items: center!important;
|
||||
}
|
||||
|
||||
.sheet-talent-card2 .sheet-talent-source {
|
||||
|
||||
@@ -1604,7 +1604,7 @@
|
||||
<button style="max-height: 18px !important" type="roll" class="sheet-button-attack" name="roll_talent" value="@{global-privacy-status} &{template:levelup} {{@{global-advantage-status}=1}} {{name=@{attacksorspell-name}}} {{charactername=@{character_name}}} {{category=@{attacksorspell-globaltype}}} {{critical=[[0]]}} {{@{attacks_toogle}=1}} {{roll=[[@{d20expr}cs@{criticalrange}+(@{attacksorspell-characteristicbonus}+@{attacksorspell-proficiencybonus})+@{attacksorspell-atkb}+[[@{attacks_expertisedice}]]]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1crit=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2crit=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}} {{description=@{attacksorspell-description}}} {{buttoncrit=@{attacksorspell-crit-button}}} {{button=@{attacksorspell-button}}} {{desc=1}}"></button>
|
||||
<input class="sheet-hidden" type="text" name="attr_attacksorspell-button" />
|
||||
<input class="sheet-hidden" type="text" name="attr_attacksorspell-crit-button" />
|
||||
<button type="roll" class="sheet-hidden" name="roll_show-attackorspell-damages" value="@{global-privacy-status} &{template:levelup} {{name=Daaaamages}} {{charactername=@{attacksorspell-name}}} {{category=@{character_name}}} {{critical=[[0]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}}"></button>
|
||||
<button type="roll" class="sheet-hidden" name="roll_show-attackorspell-damages" value="@{global-privacy-status} &{template:levelup} {{name=Damages}} {{charactername=@{attacksorspell-name}}} {{category=@{character_name}}} {{critical=[[0]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}}"></button>
|
||||
<button type="roll" class="sheet-hidden" name="roll_show-attackorspell-crit-damages" value="@{global-privacy-status} &{template:levelup} {{name=Critical Damages}} {{charactername=@{attacksorspell-name}}} {{category=@{character_name}}} {{critical=[[1]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1crit=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2crit=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}}"></button>
|
||||
|
||||
<input class="sheet-left" type="text" placeholder="Name" data-i18n-placeholder="name-placeholder" name="attr_attacksorspell-name" />
|
||||
@@ -4312,7 +4312,7 @@
|
||||
<button style="max-height: 18px !important" type="roll" class="sheet-button-attack" name="roll_talent" value="@{global-privacy-status} &{template:levelup} {{@{global-advantage-status}=1}} {{name=@{attacksorspell-name}}} {{charactername=@{character_name}}} {{category=@{attacksorspell-globaltype}}} {{critical=[[0]]}} {{@{attacks_toogle}=1}} {{roll=[[@{d20expr}cs@{criticalrange}+(@{attacksorspell-characteristicbonus}+@{attacksorspell-proficiencybonus})+@{attacksorspell-atkb}+[[@{attacks_expertisedice}]]]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1crit=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2crit=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}} {{description=@{attacksorspell-description}}} {{buttoncrit=@{attacksorspell-crit-button}}} {{button=@{attacksorspell-button}}} {{desc=1}}"></button>
|
||||
<input class="sheet-hidden" type="text" name="attr_attacksorspell-button" />
|
||||
<input class="sheet-hidden" type="text" name="attr_attacksorspell-crit-button" />
|
||||
<button type="roll" class="sheet-hidden" name="roll_show-attackorspell-damages" value="@{global-privacy-status} &{template:levelup} {{name=Daaaamages}} {{charactername=@{attacksorspell-name}}} {{category=@{character_name}}} {{critical=[[0]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}}"></button>
|
||||
<button type="roll" class="sheet-hidden" name="roll_show-attackorspell-damages" value="@{global-privacy-status} &{template:levelup} {{name=Damages}} {{charactername=@{attacksorspell-name}}} {{category=@{character_name}}} {{critical=[[0]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}}"></button>
|
||||
<button type="roll" class="sheet-hidden" name="roll_show-attackorspell-crit-damages" value="@{global-privacy-status} &{template:levelup} {{name=Critical Damages}} {{charactername=@{attacksorspell-name}}} {{category=@{character_name}}} {{critical=[[1]]}} {{dmg1=[[@{attacksorspell-dmg1}]]}} {{dmg1crit=[[@{attacksorspell-dmg1}]]}} {{dmg1type=@{attacksorspell-type1}}} {{dmg2=[[@{attacksorspell-dmg2}]]}} {{dmg2crit=[[@{attacksorspell-dmg2}]]}} {{dmg2type=@{attacksorspell-type2}}}"></button>
|
||||
|
||||
<input class="sheet-left" type="text" placeholder="Name" data-i18n-placeholder="name-placeholder" name="attr_attacksorspell-name" />
|
||||
@@ -4691,41 +4691,43 @@
|
||||
</script>
|
||||
|
||||
<div class="sheet-doublecolumn">
|
||||
<script id="✓ CALC : Talents Damages Links (Atwill + Level1-9)" type="text/worker">
|
||||
const sections = [
|
||||
{ key: "atwill", label: "Cantrips" },
|
||||
{ key: "level1", label: "Level 1" },
|
||||
{ key: "level2", label: "Level 2" },
|
||||
{ key: "level3", label: "Level 3" },
|
||||
{ key: "level4", label: "Level 4" },
|
||||
{ key: "level5", label: "Level 5" },
|
||||
{ key: "level6", label: "Level 6" },
|
||||
{ key: "level7", label: "Level 7" },
|
||||
{ key: "level8", label: "Level 8" },
|
||||
{ key: "level9", label: "Level 9" }
|
||||
];
|
||||
|
||||
const updateSection = (sectionKey, label) => {
|
||||
const rep = `repeating_${sectionKey}`;
|
||||
getSectionIDs(sectionKey, ids => {
|
||||
const updates = {};
|
||||
ids.forEach(id => {
|
||||
updates[`${rep}_${id}_talent-button`] = `[Damages](~${id}__show-damages)`;
|
||||
updates[`${rep}_${id}_talent-crit-button`] = `[C](~${id}__show-crit-damages)`;
|
||||
updates[`${rep}_${id}_talent-category`] = label;
|
||||
});
|
||||
setAttrs(updates, { silent: true });
|
||||
});
|
||||
};
|
||||
<script id="✓ CALC : Talents Damages Links (Atwill + Level1-9)" type="text/worker">
|
||||
const sections = [
|
||||
{ key: "atwill", label: "Cantrips" },
|
||||
{ key: "level1", label: "Level 1" },
|
||||
{ key: "level2", label: "Level 2" },
|
||||
{ key: "level3", label: "Level 3" },
|
||||
{ key: "level4", label: "Level 4" },
|
||||
{ key: "level5", label: "Level 5" },
|
||||
{ key: "level6", label: "Level 6" },
|
||||
{ key: "level7", label: "Level 7" },
|
||||
{ key: "level8", label: "Level 8" },
|
||||
{ key: "level9", label: "Level 9" }
|
||||
];
|
||||
|
||||
const updateAll = () => sections.forEach(s => updateSection(s.key, s.label));
|
||||
const updateSection = (sectionKey, label) => {
|
||||
const rep = `repeating_${sectionKey}`;
|
||||
|
||||
const events = ["sheet:opened"]
|
||||
.concat(sections.flatMap(s => [`change:repeating_${s.key}`, `remove:repeating_${s.key}`]))
|
||||
.join(" ");
|
||||
getSectionIDs(rep, ids => {
|
||||
const updates = {};
|
||||
(ids || []).forEach(id => {
|
||||
updates[`${rep}_${id}_talent-button`] = `[Damages](~${id}__show-damages)`;
|
||||
updates[`${rep}_${id}_talent-crit-button`] = `[C](~${id}__show-crit-damages)`;
|
||||
updates[`${rep}_${id}_talent-category`] = label;
|
||||
});
|
||||
setAttrs(updates, { silent: true });
|
||||
});
|
||||
};
|
||||
|
||||
on(events, updateAll);
|
||||
</script>
|
||||
const updateAll = () => sections.forEach(s => updateSection(s.key, s.label));
|
||||
|
||||
const events = ["sheet:opened"]
|
||||
.concat(sections.flatMap(s => [`change:repeating_${s.key}`, `remove:repeating_${s.key}`]))
|
||||
.join(" ");
|
||||
|
||||
on(events, updateAll);
|
||||
</script>
|
||||
|
||||
<!-- ----- SPELLS AT WILL ----- -->
|
||||
<div class="sheet-talent-atwill-talents sheet-talent-section">
|
||||
|
||||
Reference in New Issue
Block a user