Compare commits
No commits in common. "9f13961eaf1016eb6328d1275f73f9a990827e9a" and "57d212b33431f0898b72e829d5e4212f2e9ddf4e" have entirely different histories.
9f13961eaf
...
57d212b334
@ -112,7 +112,6 @@
|
|||||||
--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%);
|
||||||
@ -382,21 +381,13 @@ 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: 0;
|
flex: 1;
|
||||||
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: 40px;
|
width: 70px;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristic-play {
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristic-play {
|
||||||
min-width: 225px;
|
min-width: 225px;
|
||||||
@ -515,8 +506,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: 5rem;
|
min-width: 4rem;
|
||||||
max-width: 5rem;
|
max-width: 4rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .level {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .level {
|
||||||
min-width: 2rem;
|
min-width: 2rem;
|
||||||
@ -1577,12 +1568,6 @@ 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,12 +18,4 @@ 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,8 +22,6 @@ 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: 860,
|
width: 848,
|
||||||
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.system.skillTotal
|
minus = unnatural.data.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,7 +9,6 @@
|
|||||||
--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,20 +164,12 @@
|
|||||||
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: 0;
|
flex: 1;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
.form-fields {
|
.form-fields {
|
||||||
font-size: 1.1rem;
|
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 40px;
|
width: 70px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -306,8 +298,8 @@
|
|||||||
max-width: 12rem;
|
max-width: 12rem;
|
||||||
}
|
}
|
||||||
.type {
|
.type {
|
||||||
min-width: 5rem;
|
min-width: 4rem;
|
||||||
max-width: 5rem;
|
max-width: 4rem;
|
||||||
}
|
}
|
||||||
.level {
|
.level {
|
||||||
min-width: 2rem;
|
min-width: 2rem;
|
||||||
|
@ -36,13 +36,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.red-warning {
|
|
||||||
color: var(--color-failure);
|
|
||||||
}
|
|
||||||
|
|
||||||
.orange-warning {
|
|
||||||
color: var(--color-warning);
|
|
||||||
}
|
|
||||||
|
|
||||||
.dialog-damage {
|
.dialog-damage {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -9,11 +9,30 @@
|
|||||||
{{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.home value=system.biodata.home name="system.biodata.home" 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.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" >
|
<div class="protagonist-characteristic" data-drag="true" data-drag-type="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 }}
|
||||||
<label class="char-text">{{mul system.characteristics.str.value 5}}</label>
|
{{mul system.characteristics.str.value 5}}
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic">
|
<div class="protagonist-characteristic" data-drag="true" data-drag-type="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 }}
|
||||||
<label class="char-text">{{mul system.characteristics.dex.value 5}}</label>
|
{{mul system.characteristics.dex.value 5}}
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" data-drag="true" data-drag-type="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 }}
|
||||||
<label class="char-text">{{mul system.characteristics.con.value 5}}</label>
|
{{mul system.characteristics.con.value 5}}
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" data-drag="true" data-drag-type="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 }}
|
||||||
<label class="char-text">{{mul system.characteristics.int.value 5}}</label>
|
{{mul system.characteristics.int.value 5}}
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" data-drag="true" data-drag-type="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 }}
|
||||||
<label class="char-text">{{mul system.characteristics.pow.value 5}}</label>
|
{{mul system.characteristics.pow.value 5}}
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" data-drag="true" data-drag-type="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 }}
|
||||||
<label class="char-text">{{mul system.characteristics.cha.value 5}}</label>
|
{{mul system.characteristics.cha.value 5}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -65,24 +65,4 @@
|
|||||||
</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 red-warning">Zero WP : Automatic failure (ie 0%)</div>
|
<div class="dialog-skill">Zero WP : Automatic failure (ie 0%)</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if isLowWP}}
|
{{#if isLowWP}}
|
||||||
<div class="dialog-skill orange-warning">Low WP : -20%</div>
|
<div class="dialog-skill">Low WP : -20%</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user