duty rolls
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -358,6 +358,7 @@ fieldset.repeating_minion-actions + .repcontainer {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(min-content, 1fr));
|
||||
grid-auto-rows: min-content;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
fieldset.repeating_minion-actions + .repcontainer > .repitem {
|
||||
@@ -484,12 +485,30 @@ div.placeholder {
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
fieldset.repeating_duties + .repcontainer > .repitem {
|
||||
grid-template-rows: min-content min-content;
|
||||
}
|
||||
|
||||
fieldset.repeating_duties + .repcontainer > .repitem > button {
|
||||
grid-column: span 2;
|
||||
padding: 1px 3px;
|
||||
background: var(--lightback);
|
||||
}
|
||||
|
||||
fieldset.repeating_duties + .repcontainer > .repitem > .sheet-auto-expand {
|
||||
grid-row: span 2;
|
||||
}
|
||||
|
||||
fieldset.repeating_duties + .repcontainer > .repitem input[type="text"],
|
||||
fieldset.repeating_duties + .repcontainer > .repitem input[type="number"] {
|
||||
width: 100%;
|
||||
/* height: 100%; */
|
||||
}
|
||||
|
||||
.sheet-duty-tier {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.repcontainer.editmode + .repcontrol {
|
||||
min-height: 21px;
|
||||
}
|
||||
@@ -544,6 +563,14 @@ ul:not(.sheet-no-bullets) > li.sheet-subheader {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.sheet-fortune{
|
||||
background: var(--lightback);
|
||||
display: flex;
|
||||
padding: 3px;
|
||||
justify-self: flex-end;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* .sheet-duties {
|
||||
font-size: 12px;
|
||||
} */
|
||||
@@ -633,7 +660,12 @@ hr {
|
||||
input[type="text"] {
|
||||
padding: .3em 0 0 .3em;
|
||||
border: 0;
|
||||
border-bottom: 1px solid darkgrey;
|
||||
border-bottom: 1px solid darkgrey;;
|
||||
}
|
||||
|
||||
.sheet-dice {
|
||||
font-family: dicefontd6;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* .charsheet {
|
||||
@@ -736,8 +768,10 @@ button.sheet-text-button[type="action"] {
|
||||
|
||||
.sheet-dropdown {
|
||||
display: grid;
|
||||
grid-template-columns: min-content min-content;
|
||||
grid-template-columns: min-content minmax(min-content, 1fr);
|
||||
grid-template-rows: min-content min-content;
|
||||
flex-grow: 1;
|
||||
margin-right: .45em;
|
||||
}
|
||||
|
||||
.sheet-dropdown div.sheet-dropdown {
|
||||
@@ -891,6 +925,7 @@ button.sheet-toggle {
|
||||
|
||||
button.sheet-dropdown {
|
||||
background: transparent;
|
||||
justify-self: end;
|
||||
}
|
||||
|
||||
/* Fake radio */
|
||||
@@ -1005,6 +1040,30 @@ button.sheet-symbol:hover > span {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.sheet-chevron {
|
||||
height: 0;
|
||||
padding: 25% 0;
|
||||
}
|
||||
|
||||
.sheet-chevron::before {
|
||||
border-style: solid;
|
||||
border-width: 0.1em 0.1em 0 0;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: 0.45em;
|
||||
left: 0.15em;
|
||||
position: relative;
|
||||
top: 0.15em;
|
||||
transform: rotate(-45deg);
|
||||
vertical-align: top;
|
||||
width: 0.45em;
|
||||
}
|
||||
|
||||
.sheet-chevron.sheet-bottom:before {
|
||||
top: 0;
|
||||
transform: rotate(135deg);
|
||||
}
|
||||
|
||||
/* Hiders */
|
||||
|
||||
input.sheet-hider[value="hide"] ~ .sheet-hider {
|
||||
@@ -1685,11 +1744,15 @@ fieldset.repeating_projects ~ .repcontainer > .repitem .sheet-clock-container {
|
||||
.sheet-rolltemplate-basic .sheet-character {
|
||||
font-size: large;
|
||||
background: darkgray;
|
||||
line-height: .9em;
|
||||
font-weight: bold;
|
||||
;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-basic .sheet-action {
|
||||
background: lightgray;
|
||||
font-style: italic;
|
||||
font-size: 1.1em;
|
||||
padding-left: 11px;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-basic .sheet-roll {
|
||||
@@ -1700,6 +1763,15 @@ fieldset.repeating_projects ~ .repcontainer > .repitem .sheet-clock-container {
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-basic .sheet-subaction {
|
||||
background: lightgray;
|
||||
font-style: italic;
|
||||
padding-top: 0;
|
||||
margin-top: -3px;
|
||||
padding-left: 12px;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-basic .inlinerollresult {
|
||||
font-size: 1.5em;
|
||||
font-weight: normal;
|
||||
|
||||
@@ -345,12 +345,14 @@
|
||||
<span class="dropdown">
|
||||
<input type="hidden" name="attr_minion-action-roll"/>
|
||||
<input type="hidden" name="attr_minion-action-name"/>
|
||||
<button type="roll" class="text-button" name="roll_minion-action" value="&{template:basic} {{character=@{minion-count} @{minion-race} @{minion-type}}} {{action=^{@{minion-action-name}}}} @{minion-action-roll}">
|
||||
<button type="roll" class="text-button" name="roll_minion-action" value="&{template:basic} {{character=@{character_name}}} {{action=@{minion-count} @{minion-race} @{minion-type}}} {{subaction=^{@{minion-action-name}}}} @{minion-action-roll}">
|
||||
<span name="attr_minion-action-name" data-i18n-dynamic></span>
|
||||
</button>
|
||||
<input type="hidden" name="attr_minion-action-drop" class="dropdown" value="up">
|
||||
<button type="action" class="toggle dropdown" name="act_toggle-minion-action-drop" >
|
||||
<span>˅</span>
|
||||
<span class="chevron bottom"></span>
|
||||
<!-- <span>▼</span> -->
|
||||
<!-- <span>˅</span> -->
|
||||
</button>
|
||||
<div class="dropdown">
|
||||
<button type="action" class="text-button" name="act_minion-action-scan"> <span data-i18n="scan">Scan</span></button>
|
||||
@@ -462,11 +464,15 @@
|
||||
<div data-i18n="description">Description</div>
|
||||
</div>
|
||||
<fieldset class="repeating_duties">
|
||||
<input type="text" name="attr_duty-tier"/>
|
||||
<input type="text" name="attr_duty-tier" class="duty-tier"/>
|
||||
<input type="text" name="attr_duty-type"/>
|
||||
<div class="auto-expand"><span name="attr_duty-desc"></span>
|
||||
<textarea spellcheck="false" name="attr_duty-desc"></textarea>
|
||||
</div>
|
||||
<input type="hidden" name="attr_duty-roll"/>
|
||||
<button type="roll" name="roll_duty" class="text-button" value="&{template:basic} {{character=@{character_name}}} {{action=^{tier} @{duty-tier} - @{duty-type}}} {{subaction=@{duty-desc}}} @{duty-roll}">
|
||||
<span>Roll</span>
|
||||
</button>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
@@ -768,6 +774,11 @@
|
||||
<li><strong data-i18n="go-feral">Go Feral</strong>: <span data-i18n="go-feral-desc">Immediately Compelled; Abilities used during this Action cost no Stress.</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sheet-fortune">
|
||||
<button type="roll" name="roll_fortune" class="text-button" value="&{template:basic} {{character=@{character_name}}} {{action=^{fortune-roll}}} @{fortune-roll}">
|
||||
<span data-i18n="fortune-roll">Fortune Roll</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sheet-friend">
|
||||
<span data-i18n="vile-friend" class="header small box">Vile Friend</span>
|
||||
@@ -880,18 +891,22 @@
|
||||
|
||||
function updateRolls(){
|
||||
getSectionIDs("minion-actions", function(ids){
|
||||
console.log(ids)
|
||||
var attrs = actions.concat(ids.map(i => `repeating_minion-actions_${i}_minion-action`))
|
||||
getAttrs(attrs, function(v) {
|
||||
var set = {}
|
||||
for (a in v) {
|
||||
set[a + "-roll"] = getRoll(v[a])
|
||||
}
|
||||
|
||||
set["loot-roll"] = getRoll(0,0,6)
|
||||
|
||||
setAttrs(set);
|
||||
});
|
||||
getSectionIDs("duties", function(ids){
|
||||
//console.log(ids)
|
||||
attrs = attrs.concat(ids.map(i => `repeating_duties_${i}_duty-tier`))
|
||||
getAttrs(attrs, function(v) {
|
||||
var set = {}
|
||||
for (a in v) {
|
||||
set[a.replace("duty-tier", "duty") + "-roll"] = getRoll(v[a])
|
||||
}
|
||||
|
||||
set["loot-roll"] = set["fortune-roll"] = getRoll(0,0,6)
|
||||
|
||||
setAttrs(set);
|
||||
});
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@@ -1295,6 +1310,7 @@
|
||||
<rolltemplate class="sheet-rolltemplate-basic">
|
||||
{{#character}}<div class="character">{{character}}</div>{{/character}}
|
||||
{{#action}}<div class="action">{{action}}</div>{{/action}}
|
||||
{{#subaction}}<div class="subaction">{{subaction}}</div>{{/subaction}}
|
||||
{{#roll}}<div class="roll">{{roll}}</div>{{/roll}}
|
||||
{{#zero}}<div class="zero">{{zero}}</div>{{/zero}}
|
||||
</rolltemplate>
|
||||
Reference in New Issue
Block a user