Compare commits

..

4 Commits

Author SHA1 Message Date
ea8c82256c v11 ready 2023-08-21 22:46:12 +02:00
7df8aad4dc v11 ready 2023-08-16 13:02:06 +02:00
bb38705d52 Fix arme à distance + modificateur de vigueur 2023-08-16 10:51:19 +02:00
4344a5fbd3 v11 ready 2023-08-16 10:32:02 +02:00
7 changed files with 95 additions and 42 deletions

15
.gitignore vendored
View File

@@ -1 +1,14 @@
.history/ .vscode/settings.json
.idea
.history
todo.md
/.vscode
/ignored/
/node_modules/
/jsconfig.json
/package.json
/package-lock.json
/packs/*/
/packs/*/CURRENT
/packs/*/LOG
/packs/*/LOCK

View File

@@ -226,7 +226,7 @@ export class HawkmoonActor extends Actor {
if (this.type == 'personnage') { if (this.type == 'personnage') {
let talentBonus = this.getVigueurBonus() let talentBonus = this.getVigueurBonus()
let vigueur = Math.floor((this.system.attributs.pui.value + this.system.attributs.tre.value) / 2) + talentBonus let vigueur = Math.floor((this.system.attributs.pui.value + this.system.attributs.tre.value) / 2) + talentBonus + this.system.sante.vigueurmodifier
if (vigueur != this.system.sante.vigueur) { if (vigueur != this.system.sante.vigueur) {
this.update({ 'system.sante.vigueur': vigueur }) this.update({ 'system.sante.vigueur': vigueur })
} }

View File

@@ -185,7 +185,7 @@ export class HawkmoonItemSheet extends ItemSheet {
html.find('#add-automation').click(ev => { html.find('#add-automation').click(ev => {
let autom = duplicate(this.object.system.automations) let autom = duplicate(this.object.system.automations)
autom.push( { eventtype: "on-drop", name: "Automatisation 1", competence: "", minLevel: 0, id: randomID(16) }) autom.push( { eventtype: "on-drop", name: "Automatisation 1", bonusname: "vigueur", bonus: 0, competence: "", minLevel: 0, baCost: 0, id: randomID(16) })
this.object.update( { 'system.automations': autom }) this.object.update( { 'system.automations': autom })
}) })
html.find('.delete-automation').click(ev => { html.find('.delete-automation').click(ev => {

View File

@@ -1,7 +1,7 @@
{ {
"id": "fvtt-hawkmoon-cyd", "id": "fvtt-hawkmoon-cyd",
"description": "Hawkmoon RPG for FoundryVTT (CYD system - French)", "description": "Hawkmoon RPG for FoundryVTT (CYD system - French)",
"version": "11.0.4", "version": "11.0.6",
"authors": [ "authors": [
{ {
"name": "Uberwald/LeRatierBretonnien", "name": "Uberwald/LeRatierBretonnien",
@@ -35,7 +35,7 @@
"gridUnits": "m", "gridUnits": "m",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/raw/branch/master/system.json", "manifest": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/raw/branch/master/system.json",
"download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-11.0.4.zip", "download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-11.0.6.zip",
"languages": [ "languages": [
{ {
"lang": "fr", "lang": "fr",
@@ -49,100 +49,133 @@
"type": "Item", "type": "Item",
"label": "Compétences", "label": "Compétences",
"name": "skills", "name": "skills",
"path": "packs/competences.db", "path": "packs/competences",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Compétences de Créatures", "label": "Compétences de Créatures",
"name": "skills-creatures", "name": "skills-creatures",
"path": "packs/competences-creatures.db", "path": "packs/competences-creatures",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Historiques", "label": "Historiques",
"name": "historiques", "name": "historiques",
"path": "packs/historiques.db", "path": "packs/historiques",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Armes", "label": "Armes",
"name": "armes", "name": "armes",
"path": "packs/armes.db", "path": "packs/armes",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Protections", "label": "Protections",
"name": "protections", "name": "protections",
"path": "packs/protections.db", "path": "packs/protections",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Equipement", "label": "Equipement",
"name": "equipement", "name": "equipement",
"path": "packs/equipement.db", "path": "packs/equipement",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Profils", "label": "Profils",
"name": "profils", "name": "profils",
"path": "packs/profils.db", "path": "packs/profils",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Talents de Personnage", "label": "Talents de Personnage",
"name": "talents", "name": "talents",
"path": "packs/talents.db", "path": "packs/talents",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "Item", "type": "Item",
"label": "Talents de Cellule", "label": "Talents de Cellule",
"name": "talents-cellule", "name": "talents-cellule",
"path": "packs/talents-cellule.db", "path": "packs/talents-cellule",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "RollTable", "type": "RollTable",
"label": "Tables", "label": "Tables",
"name": "tables", "name": "tables",
"path": "packs/tables.db", "path": "packs/tables",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}, },
{ {
"type": "JournalEntry", "type": "JournalEntry",
"label": "Aides de Jeu", "label": "Aides de Jeu",
"name": "aides-de-jeu", "name": "aides-de-jeu",
"path": "packs/aides-de-jeu.db", "path": "packs/aides-de-jeu",
"system": "fvtt-hawkmoon-cyd", "system": "fvtt-hawkmoon-cyd",
"private": false, "flags": {},
"flags": {} "ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
} }
], ],
"primaryTokenAttribute": "sante.vigueur", "primaryTokenAttribute": "sante.vigueur",
@@ -156,7 +189,6 @@
"background": "systems/fvtt-hawkmoon-cyd/assets/ui/fond_hawkmoon.webp", "background": "systems/fvtt-hawkmoon-cyd/assets/ui/fond_hawkmoon.webp",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",
"maximum": "11",
"verified": "11" "verified": "11"
} }
} }

View File

@@ -69,7 +69,8 @@
}, },
"sante": { "sante": {
"vigueur": 0, "vigueur": 0,
"etat": 0 "etat": 0,
"vigueurmodifier": 0
}, },
"adversite": { "adversite": {
"bleue": 0, "bleue": 0,

View File

@@ -112,6 +112,13 @@
</li> </li>
{{/each}} {{/each}}
</ul> </ul>
{{#if isGM}}
<div class="flexrow">
<span class="item-name-label competence-name item-field-label-medium">Modificateur de Vigueur</span>
<input type="text" class="item-field-label-short" name="system.sante.vigueurmodifier"
value="{{system.sante.vigueurmodifier}}" data-dtype="Number" />
</div>
{{/if}}
</div> </div>
</div> </div>

View File

@@ -159,7 +159,7 @@
</select> </select>
</div> </div>
{{#if armeDefense}} {{#if (or armeDefense arme.system.isDistance)}}
{{#if arme.system.isDistance}} {{#if arme.system.isDistance}}
<div class="flexrow"> <div class="flexrow">
@@ -168,7 +168,7 @@
{{#select distanceTir}} {{#select distanceTir}}
<option value="porteecourte">Courte ({{protectionDefenseur}}+5)</option> <option value="porteecourte">Courte ({{protectionDefenseur}}+5)</option>
<option value="porteemoyenne">Moyenne ({{protectionDefenseur}}+9)</option> <option value="porteemoyenne">Moyenne ({{protectionDefenseur}}+9)</option>
<option value="porteelongue">Moyenne ({{protectionDefenseur}}+14)</option> <option value="porteelongue">Longue ({{protectionDefenseur}}+14)</option>
{{/select}} {{/select}}
</select> </select>
</div> </div>