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') {
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) {
this.update({ 'system.sante.vigueur': vigueur })
}

View File

@@ -185,7 +185,7 @@ export class HawkmoonItemSheet extends ItemSheet {
html.find('#add-automation').click(ev => {
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 })
})
html.find('.delete-automation').click(ev => {

View File

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

View File

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

View File

@@ -112,6 +112,13 @@
</li>
{{/each}}
</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>

View File

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