Compare commits
7 Commits
57d212b334
...
9f13961eaf
Author | SHA1 | Date | |
---|---|---|---|
9f13961eaf | |||
3d6cd35fa4 | |||
33c11e2c05 | |||
b600148247 | |||
c0d240c5d0 | |||
d6a1b2c62a | |||
82139eb634 |
@ -112,6 +112,7 @@
|
|||||||
--logo-standard: url("../assets/logos/reanimated-ce-logo.webp");
|
--logo-standard: url("../assets/logos/reanimated-ce-logo.webp");
|
||||||
--color-success: darkgreen;
|
--color-success: darkgreen;
|
||||||
--color-failure: darkred;
|
--color-failure: darkred;
|
||||||
|
--color-warning: darkorange;
|
||||||
--color-critical-success: lightgreen;
|
--color-critical-success: lightgreen;
|
||||||
--color-critical-failure: lightcoral;
|
--color-critical-failure: lightcoral;
|
||||||
--img-icon-color-filter: brightness(0) saturate(100%) invert(52%) sepia(9%) saturate(2368%) hue-rotate(360deg) brightness(86%) contrast(84%);
|
--img-icon-color-filter: brightness(0) saturate(100%) invert(52%) sepia(9%) saturate(2368%) hue-rotate(360deg) brightness(86%) contrast(84%);
|
||||||
@ -381,13 +382,21 @@ i.fvtt-cthulhu-eternal {
|
|||||||
text-shadow: 0 0 8px var(--color-shadow-primary);
|
text-shadow: 0 0 8px var(--color-shadow-primary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .rollable {
|
||||||
|
min-width: 3rem;
|
||||||
|
max-width: 3rem;
|
||||||
|
}
|
||||||
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .char-text {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group {
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group {
|
||||||
flex: 1;
|
flex: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group .form-fields {
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group .form-fields {
|
||||||
|
font-size: 1.1rem;
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 70px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristic-play {
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristic-play {
|
||||||
min-width: 225px;
|
min-width: 225px;
|
||||||
@ -506,8 +515,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 12rem;
|
max-width: 12rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .type {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .type {
|
||||||
min-width: 4rem;
|
min-width: 5rem;
|
||||||
max-width: 4rem;
|
max-width: 5rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .level {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .level {
|
||||||
min-width: 2rem;
|
min-width: 2rem;
|
||||||
@ -1568,6 +1577,12 @@ i.fvtt-cthulhu-eternal {
|
|||||||
width: 60px;
|
width: 60px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.red-warning {
|
||||||
|
color: var(--color-failure);
|
||||||
|
}
|
||||||
|
.orange-warning {
|
||||||
|
color: var(--color-warning);
|
||||||
|
}
|
||||||
.dialog-damage {
|
.dialog-damage {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -18,4 +18,12 @@ export default class CthulhuEternalMentalDisorderSheet extends CthulhuEternalIte
|
|||||||
template: "systems/fvtt-cthulhu-eternal/templates/mentaldisorder.hbs",
|
template: "systems/fvtt-cthulhu-eternal/templates/mentaldisorder.hbs",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
async _prepareContext() {
|
||||||
|
const context = await super._prepareContext()
|
||||||
|
context.enrichedDescription = await TextEditor.enrichHTML(this.document.system.description, { async: true })
|
||||||
|
return context
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,8 @@ export default class CthulhuEternalMotivationSheet extends CthulhuEternalItemShe
|
|||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.enrichedDescription = await TextEditor.enrichHTML(this.document.system.description, { async: true })
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ export default class CthulhuEternalProtagonistSheet extends CthulhuEternalActorS
|
|||||||
static DEFAULT_OPTIONS = {
|
static DEFAULT_OPTIONS = {
|
||||||
classes: ["protagonist"],
|
classes: ["protagonist"],
|
||||||
position: {
|
position: {
|
||||||
width: 848,
|
width: 860,
|
||||||
height: 620,
|
height: 620,
|
||||||
},
|
},
|
||||||
window: {
|
window: {
|
||||||
|
@ -90,7 +90,7 @@ export default class CthulhuEternalProtagonist extends foundry.abstract.TypeData
|
|||||||
let unnatural = this.parent.items.find(i => i.type === "skill" && i.name.toLowerCase() === game.i18n.localize("CTHULHUETERNAL.Skill.Unnatural").toLowerCase())
|
let unnatural = this.parent.items.find(i => i.type === "skill" && i.name.toLowerCase() === game.i18n.localize("CTHULHUETERNAL.Skill.Unnatural").toLowerCase())
|
||||||
let minus = 0
|
let minus = 0
|
||||||
if (unnatural) {
|
if (unnatural) {
|
||||||
minus = unnatural.data.skillTotal
|
minus = unnatural.system.skillTotal
|
||||||
}
|
}
|
||||||
let maxSan = Math.max(99 - minus, 0)
|
let maxSan = Math.max(99 - minus, 0)
|
||||||
if ( this.san.max !== maxSan) {
|
if ( this.san.max !== maxSan) {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
--logo-standard: url("../assets/logos/reanimated-ce-logo.webp");
|
--logo-standard: url("../assets/logos/reanimated-ce-logo.webp");
|
||||||
--color-success: darkgreen;
|
--color-success: darkgreen;
|
||||||
--color-failure: darkred;
|
--color-failure: darkred;
|
||||||
|
--color-warning: darkorange;
|
||||||
--color-critical-success: lightgreen;
|
--color-critical-success: lightgreen;
|
||||||
--color-critical-failure: lightcoral;
|
--color-critical-failure: lightcoral;
|
||||||
--img-icon-color-filter: brightness(0) saturate(100%) invert(52%) sepia(9%) saturate(2368%) hue-rotate(360deg) brightness(86%) contrast(84%);
|
--img-icon-color-filter: brightness(0) saturate(100%) invert(52%) sepia(9%) saturate(2368%) hue-rotate(360deg) brightness(86%) contrast(84%);
|
||||||
|
@ -164,12 +164,20 @@
|
|||||||
text-shadow: 0 0 8px var(--color-shadow-primary);
|
text-shadow: 0 0 8px var(--color-shadow-primary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.rollable {
|
||||||
|
min-width: 3rem;
|
||||||
|
max-width: 3rem;
|
||||||
|
}
|
||||||
|
.char-text {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
.form-group {
|
.form-group {
|
||||||
flex: 1;
|
flex: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
.form-fields {
|
.form-fields {
|
||||||
|
font-size: 1.1rem;
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 70px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -298,8 +306,8 @@
|
|||||||
max-width: 12rem;
|
max-width: 12rem;
|
||||||
}
|
}
|
||||||
.type {
|
.type {
|
||||||
min-width: 4rem;
|
min-width: 5rem;
|
||||||
max-width: 4rem;
|
max-width: 5rem;
|
||||||
}
|
}
|
||||||
.level {
|
.level {
|
||||||
min-width: 2rem;
|
min-width: 2rem;
|
||||||
|
@ -36,6 +36,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.red-warning {
|
||||||
|
color: var(--color-failure);
|
||||||
|
}
|
||||||
|
|
||||||
|
.orange-warning {
|
||||||
|
color: var(--color-warning);
|
||||||
|
}
|
||||||
|
|
||||||
.dialog-damage {
|
.dialog-damage {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -9,30 +9,11 @@
|
|||||||
{{formField systemFields.biodata.fields.height value=system.biodata.height name="system.biodata.height" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.height value=system.biodata.height name="system.biodata.height" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.eyes value=system.biodata.eyes name="system.biodata.eyes" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.eyes value=system.biodata.eyes name="system.biodata.eyes" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.hair value=system.biodata.hair name="system.biodata.hair" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.hair value=system.biodata.hair name="system.biodata.hair" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.gender value=system.biodata.gender name="system.biodata.gender" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.home value=system.biodata.home name="system.biodata.home" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace name="system.biodata.birthplace" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace name="system.biodata.birthplace" localize=true classes="field-label"}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "CTHULHUETERNAL.Label.motivations"}}{{#if isEditMode}}
|
|
||||||
<a class="action" data-tooltip="{{localize "CTHULHUETERNAL.Tooltip.addMotivation"}}" data-tooltip-direction="UP"><i class="fas fa-plus" data-action="createMotivation"></i></a>{{/if}}</legend>
|
|
||||||
<div class="motivations">
|
|
||||||
{{#each motivations as |item|}}
|
|
||||||
{{!log 'armor' this}}
|
|
||||||
<div class="motivation" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
|
||||||
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
|
||||||
<div class="name" data-tooltip="{{{item.system.description}}}">
|
|
||||||
{{item.name}}
|
|
||||||
</div>
|
|
||||||
<div class="controls">
|
|
||||||
<a data-tooltip="{{localize 'CTHULHUETERNAL.Edit'}}" data-action="edit" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
|
||||||
<a data-tooltip="{{localize 'CTHULHUETERNAL.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
|
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
|
||||||
|
@ -76,47 +76,47 @@
|
|||||||
|
|
||||||
<fieldset class="protagonist-characteristics protagonist-characteristics-{{ifThen isPlayMode 'play' 'edit'}}">
|
<fieldset class="protagonist-characteristics protagonist-characteristics-{{ifThen isPlayMode 'play' 'edit'}}">
|
||||||
<legend>{{localize "CTHULHUETERNAL.Label.characteristics"}}</legend>
|
<legend>{{localize "CTHULHUETERNAL.Label.characteristics"}}</legend>
|
||||||
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="str">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="str">{{localize
|
||||||
"CTHULHUETERNAL.Label.strShort"}}</label>
|
"CTHULHUETERNAL.Label.strShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.str.fields.value value=system.characteristics.str.value
|
{{formField systemFields.characteristics.fields.str.fields.value value=system.characteristics.str.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.str.value 5}}
|
<label class="char-text">{{mul system.characteristics.str.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
|
<div class="protagonist-characteristic">
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="dex">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="dex">{{localize
|
||||||
"CTHULHUETERNAL.Label.dexShort"}}</label>
|
"CTHULHUETERNAL.Label.dexShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.dex.fields.value value=system.characteristics.dex.value
|
{{formField systemFields.characteristics.fields.dex.fields.value value=system.characteristics.dex.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.dex.value 5}}
|
<label class="char-text">{{mul system.characteristics.dex.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="con">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="con">{{localize
|
||||||
"CTHULHUETERNAL.Label.conShort"}}</label>
|
"CTHULHUETERNAL.Label.conShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.con.fields.value value=system.characteristics.con.value
|
{{formField systemFields.characteristics.fields.con.fields.value value=system.characteristics.con.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.con.value 5}}
|
<label class="char-text">{{mul system.characteristics.con.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="int">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="int">{{localize
|
||||||
"CTHULHUETERNAL.Label.intShort"}}</label>
|
"CTHULHUETERNAL.Label.intShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.int.fields.value value=system.characteristics.int.value
|
{{formField systemFields.characteristics.fields.int.fields.value value=system.characteristics.int.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.int.value 5}}
|
<label class="char-text">{{mul system.characteristics.int.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="pow">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="pow">{{localize
|
||||||
"CTHULHUETERNAL.Label.powShort"}}</label>
|
"CTHULHUETERNAL.Label.powShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.pow.fields.value value=system.characteristics.pow.value
|
{{formField systemFields.characteristics.fields.pow.fields.value value=system.characteristics.pow.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.pow.value 5}}
|
<label class="char-text">{{mul system.characteristics.pow.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="cha">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="cha">{{localize
|
||||||
"CTHULHUETERNAL.Label.chaShort"}}</label>
|
"CTHULHUETERNAL.Label.chaShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.cha.fields.value value=system.characteristics.cha.value
|
{{formField systemFields.characteristics.fields.cha.fields.value value=system.characteristics.cha.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.cha.value 5}}
|
<label class="char-text">{{mul system.characteristics.cha.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -65,4 +65,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "CTHULHUETERNAL.Label.motivations"}}{{#if isEditMode}}
|
||||||
|
<a class="action" data-tooltip="{{localize "CTHULHUETERNAL.Tooltip.addMotivation"}}" data-tooltip-direction="UP"><i class="fas fa-plus" data-action="createMotivation"></i></a>{{/if}}</legend>
|
||||||
|
<div class="motivations">
|
||||||
|
{{#each motivations as |item|}}
|
||||||
|
{{!log 'armor' this}}
|
||||||
|
<div class="motivation" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
||||||
|
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
||||||
|
<div class="name" data-tooltip="{{{item.system.description}}}">
|
||||||
|
{{item.name}}
|
||||||
|
</div>
|
||||||
|
<div class="controls">
|
||||||
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Edit'}}" data-action="edit" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
||||||
|
<a data-tooltip="{{localize 'CTHULHUETERNAL.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
</section>
|
</section>
|
@ -15,10 +15,10 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isZeroWP}}
|
{{#if isZeroWP}}
|
||||||
<div class="dialog-skill">Zero WP : Automatic failure (ie 0%)</div>
|
<div class="dialog-skill red-warning">Zero WP : Automatic failure (ie 0%)</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if isLowWP}}
|
{{#if isLowWP}}
|
||||||
<div class="dialog-skill">Low WP : -20%</div>
|
<div class="dialog-skill orange-warning">Low WP : -20%</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user