Compare commits
4 Commits
fvtt-malef
...
fvtt-malef
Author | SHA1 | Date | |
---|---|---|---|
c58e6ac4b8 | |||
2d6eb014c8 | |||
aa02ab878d | |||
ed62f00959 |
BIN
fonts/rivanna.regular.otf
Normal file
BIN
fonts/rivanna.regular.otf
Normal file
Binary file not shown.
BIN
fonts/rivanna.ttf
Normal file
BIN
fonts/rivanna.ttf
Normal file
Binary file not shown.
@ -36,6 +36,7 @@ export class MaleficesActorSheet extends ActorSheet {
|
|||||||
system: duplicate(this.object.system),
|
system: duplicate(this.object.system),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
armes: duplicate(this.actor.getArmes()),
|
armes: duplicate(this.actor.getArmes()),
|
||||||
|
tarots: duplicate(this.actor.getTarots()),
|
||||||
equipements: duplicate(this.actor.getEquipements()),
|
equipements: duplicate(this.actor.getEquipements()),
|
||||||
subActors: duplicate(this.actor.getSubActors()),
|
subActors: duplicate(this.actor.getSubActors()),
|
||||||
phyMalus: this.actor.getPhysiqueMalus(),
|
phyMalus: this.actor.getPhysiqueMalus(),
|
||||||
|
@ -86,6 +86,13 @@ export class MaleficesActor extends Actor {
|
|||||||
MaleficesUtility.sortArrayObjectsByName(comp)
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
getTarots() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'tarot') || [])
|
||||||
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getArmes() {
|
getArmes() {
|
||||||
let comp = duplicate(this.items.filter(item => item.type == 'arme') || [])
|
let comp = duplicate(this.items.filter(item => item.type == 'arme') || [])
|
||||||
|
@ -67,6 +67,9 @@ export class MaleficesRollDialog extends Dialog {
|
|||||||
html.find('#bonusMalusDef').change((event) => {
|
html.find('#bonusMalusDef').change((event) => {
|
||||||
this.rollData.bonusMalusDef = Number(event.currentTarget.value)
|
this.rollData.bonusMalusDef = Number(event.currentTarget.value)
|
||||||
})
|
})
|
||||||
|
html.find('#bonusMalusPortee').change((event) => {
|
||||||
|
this.rollData.bonusMalusPortee = Number(event.currentTarget.value)
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -469,7 +469,7 @@ export class MaleficesUtility {
|
|||||||
|
|
||||||
// Build the dice formula
|
// Build the dice formula
|
||||||
let diceFormula = "1d20"
|
let diceFormula = "1d20"
|
||||||
rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef
|
rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef + rollData.bonusMalusPortee
|
||||||
if (rollData.attr.abbrev == "physique") {
|
if (rollData.attr.abbrev == "physique") {
|
||||||
rollData.target += rollData.phyMalus
|
rollData.target += rollData.phyMalus
|
||||||
}
|
}
|
||||||
@ -598,6 +598,7 @@ export class MaleficesUtility {
|
|||||||
bonusMalusPerso: 0,
|
bonusMalusPerso: 0,
|
||||||
bonusMalusSituation: 0,
|
bonusMalusSituation: 0,
|
||||||
bonusMalusDef: 0,
|
bonusMalusDef: 0,
|
||||||
|
bonusMalusPortee: 0,
|
||||||
rollMode: game.settings.get("core", "rollMode")
|
rollMode: game.settings.get("core", "rollMode")
|
||||||
}
|
}
|
||||||
MaleficesUtility.updateWithTarget(rollData)
|
MaleficesUtility.updateWithTarget(rollData)
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
/* ==================== (A) Fonts ==================== */
|
/* ==================== (A) Fonts ==================== */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Rivanna";
|
||||||
|
src: url('../fonts/rivanna.ttf') format("truetype");
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* =================== 1. ACTOR SHEET FONT STYLES =========== */
|
/* =================== 1. ACTOR SHEET FONT STYLES =========== */
|
||||||
--window-header-title-font-size: 1.3rem;
|
--window-header-title-font-size: 1.3rem;
|
||||||
@ -276,6 +280,8 @@ table {border: 1px solid #7a7971;}
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-malefices .sheet-header h1.charname input {
|
.fvtt-malefices .sheet-header h1.charname input {
|
||||||
|
font-family: Rivanna;
|
||||||
|
font-size: 3rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -285,6 +291,8 @@ table {border: 1px solid #7a7971;}
|
|||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0;
|
-ms-flex: 0;
|
||||||
flex: 0;
|
flex: 0;
|
||||||
|
font-family: Rivanna;
|
||||||
|
font-size: 2.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-malefices .sheet-body,
|
.fvtt-malefices .sheet-body,
|
||||||
@ -453,7 +461,7 @@ section.sheet-body{padding: 0.25rem 0.5rem;}
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sheet nav.sheet-tabs {
|
.sheet nav.sheet-tabs {
|
||||||
font-size: 0.70rem;
|
font-size: 1.2rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
height: 3rem;
|
height: 3rem;
|
||||||
flex: 0 0 3rem;
|
flex: 0 0 3rem;
|
||||||
@ -817,10 +825,19 @@ ul, li {
|
|||||||
.chat-message .message-header .flavor-text, .chat-message .message-header .whisper-to {
|
.chat-message .message-header .flavor-text, .chat-message .message-header .whisper-to {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
.chat-result-text,
|
||||||
.chat-actor-name {
|
.chat-actor-name {
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: Rivanna;
|
||||||
|
font-size: 1.2rem;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
.chat-result-success {
|
||||||
|
color:darkgreen;
|
||||||
|
}
|
||||||
|
.chat-result-failure {
|
||||||
|
color:darkred;
|
||||||
|
}
|
||||||
.chat-img {
|
.chat-img {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
],
|
],
|
||||||
"title": "Maléfices, le Jeu de Rôle",
|
"title": "Maléfices, le Jeu de Rôle",
|
||||||
"url": "https://www.uberwald.me/gitea/public/fvtt-malefices",
|
"url": "https://www.uberwald.me/gitea/public/fvtt-malefices",
|
||||||
"version": "10.0.4",
|
"version": "10.0.7",
|
||||||
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.4.zip",
|
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.7.zip",
|
||||||
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
|
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
|
||||||
}
|
}
|
@ -60,6 +60,13 @@
|
|||||||
<span class="item-field-label-long">Points de Destin</span>
|
<span class="item-field-label-long">Points de Destin</span>
|
||||||
<input type="text" class="item-field-label-short" name="system.pointdestin" value="{{system.pointdestin}}" data-dtype="Number"/>
|
<input type="text" class="item-field-label-short" name="system.pointdestin" value="{{system.pointdestin}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
{{#if isGM}}
|
||||||
|
<li class="item flexrow list-item">
|
||||||
|
<span class="item-field-label-long">Fluide (MJ seulement)</span>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.fluide" value="{{system.fluide}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -225,6 +232,30 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<ul class="item-list alternate-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header">
|
||||||
|
<h3><label class="items-title-text">Tarots</label></h3>
|
||||||
|
</span>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-add" data-type="weapon" title="Create Item"><i class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{#each tarots as |tarot key|}}
|
||||||
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{tarot._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{tarot.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{tarot.name}}</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
{{#if @root.isGM}}
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab notes" data-group="primary" data-tab="notes">
|
<div class="tab notes" data-group="primary" data-tab="notes">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{#if actorImg}}
|
{{#if actorImg}}
|
||||||
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<h4 class=chat-actor-name>{{alias}}</h4>
|
<h4 class="chat-actor-name">{{alias}}</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -30,36 +30,36 @@
|
|||||||
|
|
||||||
{{#if isSuccess}}
|
{{#if isSuccess}}
|
||||||
{{#if isCritical}}
|
{{#if isCritical}}
|
||||||
<li><strong>Réussite Critique !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">Réussite Critique !</label></li>
|
||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
{{#if arme.system.dommagecritiquemort}}
|
{{#if arme.system.dommagecritiquemort}}
|
||||||
<li><strong>La victime est morte !</strong></li>
|
<li><label class="chat-result-text chat-result-success">La victime est morte !</label></li>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if arme.system.dommagecritiqueko}}
|
{{#if arme.system.dommagecritiqueko}}
|
||||||
<li><strong>La victime est KO !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime est KO !</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li><strong>La victime subit {{arme.system.dommagecritique}} dommages</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagecritique}} dommages</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if isPart}}
|
{{#if isPart}}
|
||||||
<li><strong>Réussite Particulière !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">Réussite Particulière !</label></li>
|
||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
<li><strong>La victime subit {{arme.system.dommagepart}} dommages</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagepart}} dommages</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<li><strong>Succés !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">Succés !</label></li>
|
||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
<li><strong>La victime subit {{arme.system.dommagenormale}} dommages</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagenormale}} dommages</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if isFumble}}
|
{{#if isFumble}}
|
||||||
<li><strong>Echec Critique !</strong></li>
|
<li><label class="chat-result-text chat-result-failure ">Echec Critique !</label></li>
|
||||||
{{else}}
|
{{else}}
|
||||||
<li><strong>Echec !</strong></li>
|
<li><label class="chat-result-text chat-result-failure">Echec !</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -64,6 +64,17 @@
|
|||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">Pörtée : </span>
|
||||||
|
<select id="bonusMalusPortee" name="bonusMalusPortee">
|
||||||
|
{{#select bonusMalusPortee}}
|
||||||
|
<option value="1">+1 (Portée courte)</option>
|
||||||
|
<option value="0">0 (Portée moyenne)</option>
|
||||||
|
<option value="-1">-1 (Portée longue)</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user