From 5c889a5153381cbe4554c556e8501deeddc32621 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Sat, 2 Dec 2023 09:03:58 +0100 Subject: [PATCH] Fiche de creature --- modules/wasteland-actor-sheet.js | 3 + modules/wasteland-actor.js | 8 +- modules/wasteland-creature-sheet.js | 26 ++ modules/wasteland-main.js | 4 +- packs/armes/{000088.log => 000096.log} | 0 packs/armes/CURRENT | 2 +- packs/armes/LOG | 16 +- packs/armes/LOG.old | 16 +- packs/armes/MANIFEST-000086 | Bin 134 -> 0 bytes packs/armes/MANIFEST-000094 | Bin 0 -> 134 bytes packs/equipement/{000042.log => 000050.log} | 0 packs/equipement/CURRENT | 2 +- packs/equipement/LOG | 16 +- packs/equipement/LOG.old | 16 +- .../{MANIFEST-000040 => MANIFEST-000048} | Bin 172 -> 172 bytes packs/heritages/{000112.log => 000120.log} | 0 packs/heritages/CURRENT | 2 +- packs/heritages/LOG | 16 +- packs/heritages/LOG.old | 16 +- .../{MANIFEST-000110 => MANIFEST-000118} | Bin 134 -> 134 bytes packs/metiers/{000112.log => 000120.log} | 0 packs/metiers/CURRENT | 2 +- packs/metiers/LOG | 16 +- packs/metiers/LOG.old | 16 +- .../{MANIFEST-000110 => MANIFEST-000118} | Bin 135 -> 135 bytes packs/origines/{000113.log => 000121.log} | 0 packs/origines/CURRENT | 2 +- packs/origines/LOG | 16 +- packs/origines/LOG.old | 16 +- .../{MANIFEST-000111 => MANIFEST-000119} | Bin 169 -> 169 bytes packs/pouvoirs/{000029.log => 000037.log} | 0 packs/pouvoirs/CURRENT | 2 +- packs/pouvoirs/LOG | 16 +- packs/pouvoirs/LOG.old | 23 +- .../{MANIFEST-000027 => MANIFEST-000035} | Bin 173 -> 173 bytes packs/protection/{000149.log => 000157.log} | 0 packs/protection/CURRENT | 2 +- packs/protection/LOG | 16 +- packs/protection/LOG.old | 16 +- .../{MANIFEST-000147 => MANIFEST-000155} | Bin 172 -> 172 bytes packs/scenes/{000088.log => 000096.log} | 0 packs/scenes/CURRENT | 2 +- packs/scenes/LOG | 14 +- packs/scenes/LOG.old | 14 +- packs/scenes/MANIFEST-000086 | Bin 65 -> 0 bytes packs/scenes/MANIFEST-000094 | Bin 0 -> 65 bytes packs/skills/{000149.log => 000157.log} | 0 packs/skills/CURRENT | 2 +- packs/skills/LOG | 16 +- packs/skills/LOG.old | 16 +- .../{MANIFEST-000147 => MANIFEST-000155} | Bin 172 -> 172 bytes packs/tables/{000148.log => 000156.log} | 0 packs/tables/CURRENT | 2 +- packs/tables/LOG | 16 +- packs/tables/LOG.old | 16 +- .../{MANIFEST-000146 => MANIFEST-000154} | Bin 165 -> 165 bytes packs/tourscharmes/{000057.log => 000065.log} | 0 packs/tourscharmes/CURRENT | 2 +- packs/tourscharmes/LOG | 16 +- packs/tourscharmes/LOG.old | 16 +- .../{MANIFEST-000055 => MANIFEST-000063} | Bin 170 -> 170 bytes system.json | 4 +- template.json | 10 +- templates/creature-sheet.html | 288 ++++++++++++++++++ 64 files changed, 519 insertions(+), 201 deletions(-) create mode 100644 modules/wasteland-creature-sheet.js rename packs/armes/{000088.log => 000096.log} (100%) delete mode 100644 packs/armes/MANIFEST-000086 create mode 100644 packs/armes/MANIFEST-000094 rename packs/equipement/{000042.log => 000050.log} (100%) rename packs/equipement/{MANIFEST-000040 => MANIFEST-000048} (74%) rename packs/heritages/{000112.log => 000120.log} (100%) rename packs/heritages/{MANIFEST-000110 => MANIFEST-000118} (73%) rename packs/metiers/{000112.log => 000120.log} (100%) rename packs/metiers/{MANIFEST-000110 => MANIFEST-000118} (73%) rename packs/origines/{000113.log => 000121.log} (100%) rename packs/origines/{MANIFEST-000111 => MANIFEST-000119} (80%) rename packs/pouvoirs/{000029.log => 000037.log} (100%) rename packs/pouvoirs/{MANIFEST-000027 => MANIFEST-000035} (73%) rename packs/protection/{000149.log => 000157.log} (100%) rename packs/protection/{MANIFEST-000147 => MANIFEST-000155} (76%) rename packs/scenes/{000088.log => 000096.log} (100%) delete mode 100644 packs/scenes/MANIFEST-000086 create mode 100644 packs/scenes/MANIFEST-000094 rename packs/skills/{000149.log => 000157.log} (100%) rename packs/skills/{MANIFEST-000147 => MANIFEST-000155} (74%) rename packs/tables/{000148.log => 000156.log} (100%) rename packs/tables/{MANIFEST-000146 => MANIFEST-000154} (77%) rename packs/tourscharmes/{000057.log => 000065.log} (100%) rename packs/tourscharmes/{MANIFEST-000055 => MANIFEST-000063} (75%) create mode 100644 templates/creature-sheet.html diff --git a/modules/wasteland-actor-sheet.js b/modules/wasteland-actor-sheet.js index 3de505c..b8e0662 100644 --- a/modules/wasteland-actor-sheet.js +++ b/modules/wasteland-actor-sheet.js @@ -54,9 +54,12 @@ export class WastelandActorSheet extends ActorSheet { metier: duplicate(this.actor.getMetier() || {}), combat: this.actor.getCombatValues(), config: duplicate(game.system.wasteland.config), + capacites: duplicate(this.actor.getCapacites()), equipements: duplicate(this.actor.getEquipments()), monnaies: duplicate(this.actor.getMonnaies()), description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}), + comportement: await TextEditor.enrichHTML(this.object.system.biodata.comportement, {async: true}), + habitat: await TextEditor.enrichHTML(this.object.system.biodata.habitat, {async: true}), options: this.options, owner: this.document.isOwner, editScore: this.options.editScore, diff --git a/modules/wasteland-actor.js b/modules/wasteland-actor.js index 2f32994..dee2755 100644 --- a/modules/wasteland-actor.js +++ b/modules/wasteland-actor.js @@ -37,11 +37,12 @@ export class WastelandActor extends Actor { return actor; } + const skills = await WastelandUtility.loadCompendium("fvtt-wasteland.skills") if (data.type == 'personnage') { - const skills = await WastelandUtility.loadCompendium("fvtt-wasteland.skills") data.items = skills.map(i => i.toObject()) } - if (data.type == 'pnj') { + if (data.type == 'creature') { + data.items = skills.filter(i=>i.name.toLowerCase().includes("mêlée")).map(i => i.toObject()) } return super.create(data, options); @@ -119,6 +120,9 @@ export class WastelandActor extends Actor { getArtifex() { return this.getItemSorted(["artifex"]) } + getCapacites() { + return this.getItemSorted(["capacite"]) + } getPouvoirs() { return this.getItemSorted(["pouvoir"]) } diff --git a/modules/wasteland-creature-sheet.js b/modules/wasteland-creature-sheet.js new file mode 100644 index 0000000..cc5c65f --- /dev/null +++ b/modules/wasteland-creature-sheet.js @@ -0,0 +1,26 @@ +/** + * Extend the basic ActorSheet with some very simple modifications + * @extends {ActorSheet} + */ + +import { WastelandUtility } from "./wasteland-utility.js"; +import { WastelandActorSheet } from "./wasteland-actor-sheet.js"; + +/* -------------------------------------------- */ +export class WastelandCreatureSheet extends WastelandActorSheet { + + /** @override */ + static get defaultOptions() { + + return mergeObject(super.defaultOptions, { + classes: ["fvtt-wasteland", "sheet", "creature"], + template: "systems/fvtt-wasteland/templates/creature-sheet.html", + width: 640, + height: 720, + tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }], + dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }], + editScore: false + }); + } + +} diff --git a/modules/wasteland-main.js b/modules/wasteland-main.js index 0f75396..74e4a39 100644 --- a/modules/wasteland-main.js +++ b/modules/wasteland-main.js @@ -11,7 +11,7 @@ import { WastelandActor } from "./wasteland-actor.js"; import { WastelandItemSheet } from "./wasteland-item-sheet.js"; import { WastelandActorSheet } from "./wasteland-actor-sheet.js"; -//import { WastelandNPCSheet } from "./wasteland-npc-sheet.js"; +import { WastelandCreatureSheet } from "./wasteland-creature-sheet.js"; import { WastelandUtility } from "./wasteland-utility.js"; import { WastelandCombat } from "./wasteland-combat.js"; import { WastelandItem } from "./wasteland-item.js"; @@ -54,7 +54,7 @@ Hooks.once("init", async function () { // Register sheet application classes Actors.unregisterSheet("core", ActorSheet); Actors.registerSheet("fvtt-wasteland", WastelandActorSheet, { types: ["personnage"], makeDefault: true }) - //Actors.registerSheet("fvtt-wasteland", WastelandNPCSheet, { types: ["npc"], makeDefault: false }); + Actors.registerSheet("fvtt-wasteland", WastelandCreatureSheet, { types: ["creature"], makeDefault: false }); Items.unregisterSheet("core", ItemSheet); Items.registerSheet("fvtt-wasteland", WastelandItemSheet, { makeDefault: true }) diff --git a/packs/armes/000088.log b/packs/armes/000096.log similarity index 100% rename from packs/armes/000088.log rename to packs/armes/000096.log diff --git a/packs/armes/CURRENT b/packs/armes/CURRENT index a43fb19..0ab25fa 100644 --- a/packs/armes/CURRENT +++ b/packs/armes/CURRENT @@ -1 +1 @@ -MANIFEST-000086 +MANIFEST-000094 diff --git a/packs/armes/LOG b/packs/armes/LOG index 95fe166..6ef3286 100644 --- a/packs/armes/LOG +++ b/packs/armes/LOG @@ -1,8 +1,8 @@ -2023/12/01-14:01:31.663762 7facd3fff6c0 Recovering log #84 -2023/12/01-14:01:31.673391 7facd3fff6c0 Delete type=3 #82 -2023/12/01-14:01:31.673441 7facd3fff6c0 Delete type=0 #84 -2023/12/01-14:02:58.886581 7faa52bff6c0 Level-0 table #89: started -2023/12/01-14:02:58.886605 7faa52bff6c0 Level-0 table #89: 0 bytes OK -2023/12/01-14:02:58.893826 7faa52bff6c0 Delete type=0 #87 -2023/12/01-14:02:58.906642 7faa52bff6c0 Manual compaction at level-0 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) -2023/12/01-14:02:58.906714 7faa52bff6c0 Manual compaction at level-1 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) +2023/12/02-08:51:29.900760 7f78c67fc6c0 Recovering log #92 +2023/12/02-08:51:29.958288 7f78c67fc6c0 Delete type=3 #90 +2023/12/02-08:51:29.958401 7f78c67fc6c0 Delete type=0 #92 +2023/12/02-09:03:37.930194 7f78c57fa6c0 Level-0 table #97: started +2023/12/02-09:03:37.930255 7f78c57fa6c0 Level-0 table #97: 0 bytes OK +2023/12/02-09:03:37.987334 7f78c57fa6c0 Delete type=0 #95 +2023/12/02-09:03:38.062545 7f78c57fa6c0 Manual compaction at level-0 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) +2023/12/02-09:03:38.062604 7f78c57fa6c0 Manual compaction at level-1 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) diff --git a/packs/armes/LOG.old b/packs/armes/LOG.old index 8c966a6..720da8d 100644 --- a/packs/armes/LOG.old +++ b/packs/armes/LOG.old @@ -1,8 +1,8 @@ -2023/12/01-13:53:39.494309 7facd3fff6c0 Recovering log #80 -2023/12/01-13:53:39.504896 7facd3fff6c0 Delete type=3 #78 -2023/12/01-13:53:39.504998 7facd3fff6c0 Delete type=0 #80 -2023/12/01-13:59:53.167281 7faa52bff6c0 Level-0 table #85: started -2023/12/01-13:59:53.167307 7faa52bff6c0 Level-0 table #85: 0 bytes OK -2023/12/01-13:59:53.198187 7faa52bff6c0 Delete type=0 #83 -2023/12/01-13:59:53.317461 7faa52bff6c0 Manual compaction at level-0 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) -2023/12/01-13:59:53.317523 7faa52bff6c0 Manual compaction at level-1 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) +2023/12/02-08:42:44.386344 7f78c77fe6c0 Recovering log #88 +2023/12/02-08:42:44.397486 7f78c77fe6c0 Delete type=3 #86 +2023/12/02-08:42:44.397786 7f78c77fe6c0 Delete type=0 #88 +2023/12/02-08:51:17.782518 7f78c57fa6c0 Level-0 table #93: started +2023/12/02-08:51:17.782561 7f78c57fa6c0 Level-0 table #93: 0 bytes OK +2023/12/02-08:51:17.816144 7f78c57fa6c0 Delete type=0 #91 +2023/12/02-08:51:17.875724 7f78c57fa6c0 Manual compaction at level-0 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) +2023/12/02-08:51:17.875802 7f78c57fa6c0 Manual compaction at level-1 from '!items!0swiE8k5zfUIqmXu' @ 72057594037927935 : 1 .. '!items!wv5EiePmPTpqFutt' @ 0 : 0; will stop at (end) diff --git a/packs/armes/MANIFEST-000086 b/packs/armes/MANIFEST-000086 deleted file mode 100644 index 0897d66e23fa06e77d3e9906e42b1d715630cffc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 134 zcmdn&`6D}#fss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zlfcQ^@OFoVrEHdZn2_4 zae1bzMYd^GTBv7XZbT`gFasFCOBus+9`=IxMnJv^kPiUfRS97L delta 39 qcmZ3(xQ1~;k3#*ARs~K5MkY;824*dmrHnOlJHCPVT0p)IkPiUZu?Z*u diff --git a/packs/heritages/000112.log b/packs/heritages/000120.log similarity index 100% rename from packs/heritages/000112.log rename to packs/heritages/000120.log diff --git a/packs/heritages/CURRENT b/packs/heritages/CURRENT index a451d53..7530019 100644 --- a/packs/heritages/CURRENT +++ b/packs/heritages/CURRENT @@ -1 +1 @@ -MANIFEST-000110 +MANIFEST-000118 diff --git a/packs/heritages/LOG b/packs/heritages/LOG index 7a355b2..9779818 100644 --- a/packs/heritages/LOG +++ b/packs/heritages/LOG @@ -1,8 +1,8 @@ -2023/12/01-14:01:31.626736 7face91fa6c0 Recovering log #108 -2023/12/01-14:01:31.637348 7face91fa6c0 Delete type=3 #106 -2023/12/01-14:01:31.637457 7face91fa6c0 Delete type=0 #108 -2023/12/01-14:02:58.867219 7faa52bff6c0 Level-0 table #113: started -2023/12/01-14:02:58.867259 7faa52bff6c0 Level-0 table #113: 0 bytes OK -2023/12/01-14:02:58.873501 7faa52bff6c0 Delete type=0 #111 -2023/12/01-14:02:58.880237 7faa52bff6c0 Manual compaction at level-0 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) -2023/12/01-14:02:58.880272 7faa52bff6c0 Manual compaction at level-1 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) +2023/12/02-08:51:29.730107 7f78c77fe6c0 Recovering log #116 +2023/12/02-08:51:29.784863 7f78c77fe6c0 Delete type=3 #114 +2023/12/02-08:51:29.784945 7f78c77fe6c0 Delete type=0 #116 +2023/12/02-09:03:37.768298 7f78c57fa6c0 Level-0 table #121: started +2023/12/02-09:03:37.768372 7f78c57fa6c0 Level-0 table #121: 0 bytes OK +2023/12/02-09:03:37.811243 7f78c57fa6c0 Delete type=0 #119 +2023/12/02-09:03:37.849332 7f78c57fa6c0 Manual compaction at level-0 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) +2023/12/02-09:03:37.849402 7f78c57fa6c0 Manual compaction at level-1 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) diff --git a/packs/heritages/LOG.old b/packs/heritages/LOG.old index 61ba0b8..c75357e 100644 --- a/packs/heritages/LOG.old +++ b/packs/heritages/LOG.old @@ -1,8 +1,8 @@ -2023/12/01-13:53:39.455304 7face89f96c0 Recovering log #104 -2023/12/01-13:53:39.465228 7face89f96c0 Delete type=3 #102 -2023/12/01-13:53:39.465278 7face89f96c0 Delete type=0 #104 -2023/12/01-13:59:52.988050 7faa52bff6c0 Level-0 table #109: started -2023/12/01-13:59:52.988087 7faa52bff6c0 Level-0 table #109: 0 bytes OK -2023/12/01-13:59:53.032097 7faa52bff6c0 Delete type=0 #107 -2023/12/01-13:59:53.105940 7faa52bff6c0 Manual compaction at level-0 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) -2023/12/01-13:59:53.167051 7faa52bff6c0 Manual compaction at level-1 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) +2023/12/02-08:42:44.342271 7f78c5ffb6c0 Recovering log #112 +2023/12/02-08:42:44.352667 7f78c5ffb6c0 Delete type=3 #110 +2023/12/02-08:42:44.352759 7f78c5ffb6c0 Delete type=0 #112 +2023/12/02-08:51:17.727952 7f78c57fa6c0 Level-0 table #117: started +2023/12/02-08:51:17.728001 7f78c57fa6c0 Level-0 table #117: 0 bytes OK +2023/12/02-08:51:17.752694 7f78c57fa6c0 Delete type=0 #115 +2023/12/02-08:51:17.752885 7f78c57fa6c0 Manual compaction at level-0 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) +2023/12/02-08:51:17.752927 7f78c57fa6c0 Manual compaction at level-1 from '!items!276PAK1VR5LK4rbE' @ 72057594037927935 : 1 .. '!items!nYYX7rtSMGFO4xVY' @ 0 : 0; will stop at (end) diff --git a/packs/heritages/MANIFEST-000110 b/packs/heritages/MANIFEST-000118 similarity index 73% rename from packs/heritages/MANIFEST-000110 rename to packs/heritages/MANIFEST-000118 index 3862989458b8d23a11861c4b30a196b1998ffa89..4caa658d6a4f579e31abe363924479750ba2a858 100644 GIT binary patch delta 37 pcmZo;Y-5~|AvY~`%@PgAh()D0|47_2{-@% delta 37 pcmZ3 80038 bytes -2023/12/01-13:59:53.166759 7faa52bff6c0 compacted to: files[ 0 0 1 0 0 0 0 ] -2023/12/01-13:59:53.166870 7faa52bff6c0 Delete type=2 #5 -2023/12/01-13:59:53.166982 7faa52bff6c0 Delete type=2 #25 -2023/12/01-13:59:53.167081 7faa52bff6c0 Manual compaction at level-1 from '!items!zew9hPVdne6w1FFv' @ 128 : 1 .. '!items!zew9hPVdne6w1FFv' @ 0 : 0; will stop at (end) +2023/12/02-08:42:44.310445 7f78c6ffd6c0 Recovering log #29 +2023/12/02-08:42:44.321462 7f78c6ffd6c0 Delete type=3 #27 +2023/12/02-08:42:44.321559 7f78c6ffd6c0 Delete type=0 #29 +2023/12/02-08:51:17.673498 7f78c57fa6c0 Level-0 table #34: started +2023/12/02-08:51:17.673593 7f78c57fa6c0 Level-0 table #34: 0 bytes OK +2023/12/02-08:51:17.693433 7f78c57fa6c0 Delete type=0 #32 +2023/12/02-08:51:17.727930 7f78c57fa6c0 Manual compaction at level-0 from '!folders!9W8gPB3T9u9dGfXl' @ 72057594037927935 : 1 .. '!items!zew9hPVdne6w1FFv' @ 0 : 0; will stop at (end) +2023/12/02-08:51:17.752872 7f78c57fa6c0 Manual compaction at level-1 from '!folders!9W8gPB3T9u9dGfXl' @ 72057594037927935 : 1 .. '!items!zew9hPVdne6w1FFv' @ 0 : 0; will stop at (end) diff --git a/packs/pouvoirs/MANIFEST-000027 b/packs/pouvoirs/MANIFEST-000035 similarity index 73% rename from packs/pouvoirs/MANIFEST-000027 rename to packs/pouvoirs/MANIFEST-000035 index e6c8665bc5d80b2e169150932c0bcb1905d28f9e..52c87268f983b38ac1f29a215bb87b9f2275c678 100644 GIT binary patch delta 39 qcmZ3>xR!B3ufmMD;s8ztMkW3MT~x34x2%IRUls-$Oiz$76>r_ delta 39 qcmZ3>xR!B3uYzWR<77?-MkX0f24-27MU4Af%07VjvOvB(kPiUFG6<6Z diff --git a/packs/protection/000149.log b/packs/protection/000157.log similarity index 100% rename from packs/protection/000149.log rename to packs/protection/000157.log diff --git a/packs/protection/CURRENT b/packs/protection/CURRENT index 1021bdc..53dc731 100644 --- a/packs/protection/CURRENT +++ b/packs/protection/CURRENT @@ -1 +1 @@ -MANIFEST-000147 +MANIFEST-000155 diff --git a/packs/protection/LOG b/packs/protection/LOG index 1f8fadf..e95ad4b 100644 --- a/packs/protection/LOG +++ b/packs/protection/LOG @@ -1,8 +1,8 @@ -2023/12/01-14:01:31.675150 7face91fa6c0 Recovering log #145 -2023/12/01-14:01:31.685370 7face91fa6c0 Delete type=3 #143 -2023/12/01-14:01:31.685464 7face91fa6c0 Delete type=0 #145 -2023/12/01-14:02:58.880376 7faa52bff6c0 Level-0 table #150: started -2023/12/01-14:02:58.880453 7faa52bff6c0 Level-0 table #150: 0 bytes OK -2023/12/01-14:02:58.886483 7faa52bff6c0 Delete type=0 #148 -2023/12/01-14:02:58.906621 7faa52bff6c0 Manual compaction at level-0 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) -2023/12/01-14:02:58.906687 7faa52bff6c0 Manual compaction at level-1 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) +2023/12/02-08:51:29.962121 7f78c6ffd6c0 Recovering log #153 +2023/12/02-08:51:30.029029 7f78c6ffd6c0 Delete type=3 #151 +2023/12/02-08:51:30.029178 7f78c6ffd6c0 Delete type=0 #153 +2023/12/02-09:03:37.893808 7f78c57fa6c0 Level-0 table #158: started +2023/12/02-09:03:37.893864 7f78c57fa6c0 Level-0 table #158: 0 bytes OK +2023/12/02-09:03:37.929966 7f78c57fa6c0 Delete type=0 #156 +2023/12/02-09:03:38.062529 7f78c57fa6c0 Manual compaction at level-0 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) +2023/12/02-09:03:38.062592 7f78c57fa6c0 Manual compaction at level-1 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) diff --git a/packs/protection/LOG.old b/packs/protection/LOG.old index 7352e8f..e5759b6 100644 --- a/packs/protection/LOG.old +++ b/packs/protection/LOG.old @@ -1,8 +1,8 @@ -2023/12/01-13:53:39.508151 7face89f96c0 Recovering log #141 -2023/12/01-13:53:39.518413 7face89f96c0 Delete type=3 #139 -2023/12/01-13:53:39.518484 7face89f96c0 Delete type=0 #141 -2023/12/01-13:59:53.237155 7faa52bff6c0 Level-0 table #146: started -2023/12/01-13:59:53.237188 7faa52bff6c0 Level-0 table #146: 0 bytes OK -2023/12/01-13:59:53.280148 7faa52bff6c0 Delete type=0 #144 -2023/12/01-13:59:53.317487 7faa52bff6c0 Manual compaction at level-0 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) -2023/12/01-13:59:53.317541 7faa52bff6c0 Manual compaction at level-1 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) +2023/12/02-08:42:44.401530 7f78c5ffb6c0 Recovering log #149 +2023/12/02-08:42:44.412735 7f78c5ffb6c0 Delete type=3 #147 +2023/12/02-08:42:44.412878 7f78c5ffb6c0 Delete type=0 #149 +2023/12/02-08:51:17.845739 7f78c57fa6c0 Level-0 table #154: started +2023/12/02-08:51:17.845793 7f78c57fa6c0 Level-0 table #154: 0 bytes OK +2023/12/02-08:51:17.875464 7f78c57fa6c0 Delete type=0 #152 +2023/12/02-08:51:17.875767 7f78c57fa6c0 Manual compaction at level-0 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) +2023/12/02-08:51:17.875851 7f78c57fa6c0 Manual compaction at level-1 from '!items!2hD1DQVeCIQIXFU7' @ 72057594037927935 : 1 .. '!items!veoS6Gtzj6Dq087V' @ 0 : 0; will stop at (end) diff --git a/packs/protection/MANIFEST-000147 b/packs/protection/MANIFEST-000155 similarity index 76% rename from packs/protection/MANIFEST-000147 rename to packs/protection/MANIFEST-000155 index c1e057815b78d797736a6fa5124ce171cb11a515..c8fca926689882052efb0dde0f2e2bbd6b688aad 100644 GIT binary patch delta 41 scmZ3(xQ1~;mr^cw3O^SEBhws4P6p<=j4XWr7JSnL3Cslv%m)ep0M@7p4gdfE delta 41 scmZ3(xQ1~;m(r!>Z6CN87@4LpaxySaWn|$~6czCR2}}hEOa}@80P^Gr#{d8T diff --git a/packs/scenes/000088.log b/packs/scenes/000096.log similarity index 100% rename from packs/scenes/000088.log rename to packs/scenes/000096.log diff --git a/packs/scenes/CURRENT b/packs/scenes/CURRENT index a43fb19..0ab25fa 100644 --- a/packs/scenes/CURRENT +++ b/packs/scenes/CURRENT @@ -1 +1 @@ -MANIFEST-000086 +MANIFEST-000094 diff --git a/packs/scenes/LOG b/packs/scenes/LOG index bd0b577..ba7326f 100644 --- a/packs/scenes/LOG +++ b/packs/scenes/LOG @@ -1,7 +1,7 @@ -2023/12/01-14:01:31.712005 7facd3fff6c0 Recovering log #84 -2023/12/01-14:01:31.722434 7facd3fff6c0 Delete type=3 #82 -2023/12/01-14:01:31.722487 7facd3fff6c0 Delete type=0 #84 -2023/12/01-14:02:58.906829 7faa52bff6c0 Level-0 table #89: started -2023/12/01-14:02:58.906889 7faa52bff6c0 Level-0 table #89: 0 bytes OK -2023/12/01-14:02:58.914249 7faa52bff6c0 Delete type=0 #87 -2023/12/01-14:02:58.920445 7faa52bff6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2023/12/02-08:51:30.143235 7f78c67fc6c0 Recovering log #92 +2023/12/02-08:51:30.194801 7f78c67fc6c0 Delete type=3 #90 +2023/12/02-08:51:30.194953 7f78c67fc6c0 Delete type=0 #92 +2023/12/02-09:03:38.062740 7f78c57fa6c0 Level-0 table #97: started +2023/12/02-09:03:38.062788 7f78c57fa6c0 Level-0 table #97: 0 bytes OK +2023/12/02-09:03:38.124529 7f78c57fa6c0 Delete type=0 #95 +2023/12/02-09:03:38.613587 7f78c57fa6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/scenes/LOG.old b/packs/scenes/LOG.old index 7865746..15211a2 100644 --- a/packs/scenes/LOG.old +++ b/packs/scenes/LOG.old @@ -1,7 +1,7 @@ -2023/12/01-13:53:39.595199 7facd3fff6c0 Recovering log #80 -2023/12/01-13:53:39.604901 7facd3fff6c0 Delete type=3 #78 -2023/12/01-13:53:39.604956 7facd3fff6c0 Delete type=0 #80 -2023/12/01-13:59:53.354986 7faa52bff6c0 Level-0 table #85: started -2023/12/01-13:59:53.355010 7faa52bff6c0 Level-0 table #85: 0 bytes OK -2023/12/01-13:59:53.424142 7faa52bff6c0 Delete type=0 #83 -2023/12/01-13:59:53.424248 7faa52bff6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2023/12/02-08:42:44.446230 7f78c77fe6c0 Recovering log #88 +2023/12/02-08:42:44.457608 7f78c77fe6c0 Delete type=3 #86 +2023/12/02-08:42:44.457729 7f78c77fe6c0 Delete type=0 #88 +2023/12/02-08:51:17.947345 7f78c57fa6c0 Level-0 table #93: started +2023/12/02-08:51:17.947408 7f78c57fa6c0 Level-0 table #93: 0 bytes OK +2023/12/02-08:51:17.968940 7f78c57fa6c0 Delete type=0 #91 +2023/12/02-08:51:17.969544 7f78c57fa6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/scenes/MANIFEST-000086 b/packs/scenes/MANIFEST-000086 deleted file mode 100644 index 6ddee8983c9b853d89dbbdaff63d1b30ac06b2b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 65 zcmWIhx#Ncn10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAevu4AuPX-wBU3mh19Jom R!y_?udk{AQ$c`Fi2Pgml delta 37 pcmZ3*xQcN?kKC%VZ?8BQ7?~_M8JI0uG#{<6i2!jefm~}AO#t5C31a{N diff --git a/system.json b/system.json index 7e6c8f0..7c50e1e 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-wasteland", "description": "Wasteland RPG for FoundryVTT", - "version": "11.0.14", + "version": "11.0.15", "authors": [ { "name": "Uberwald/LeRatierBretonnien", @@ -23,7 +23,7 @@ "gridUnits": "m", "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-wasteland/raw/branch/main/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-wasteland/archive/fvtt-wasteland-v11.0.14.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-wasteland/archive/fvtt-wasteland-v11.0.15.zip", "packs": [ { "type": "Item", diff --git a/template.json b/template.json index 479894a..796fa8d 100644 --- a/template.json +++ b/template.json @@ -1,7 +1,8 @@ { "Actor": { "types": [ - "personnage" + "personnage", + "creature" ], "templates": { "biodata": { @@ -15,6 +16,8 @@ "sexe": "", "yeux": "", "description": "", + "habitat": "", + "comportement": "", "psychemultiplier": 1, "notes": "", "gmnotes": "" @@ -95,9 +98,10 @@ "core" ] }, - "pnj": { + "creature": { "templates": [ - "npccore" + "biodata", + "core" ] } }, diff --git a/templates/creature-sheet.html b/templates/creature-sheet.html new file mode 100644 index 0000000..a1abbc5 --- /dev/null +++ b/templates/creature-sheet.html @@ -0,0 +1,288 @@ +
+ + {{!-- Sheet Header --}} +
+
+
+ +
+

+
+
+
+ + {{!-- Sheet Tab Navigation --}} + + + {{!-- Sheet Body --}} +
+ + {{!-- Main Tab --}} +
+ +
+ +
+
    + {{#each data.attributs as |attr key|}} +
  • + + {{attr.label}} + +
  • + {{/each}} +
+
+ +
+

Santé

+
    +
  • + + + + +
  • +
  • + + + + +
  • +
+ +

Combat

+
    +
  • + + + + +
  • +
  • + + + + +
  • +
  • + + + + +
  • +
  • + + + + +
  • +
+
+
+ +
+
    +
  • + +

    +
    + + + + + + + + + +
     
    +
    + +
    +
  • + {{#each armes as |arme key|}} +
  • + + {{arme.name}} + + + {{#if arme.system.equipped}} + + {{else}} + + {{/if}} + + + {{#if arme.system.isdefense}} + + {{else}} + + {{/if}} + + + {{#if arme.system.equipped}} + + {{else}} + + {{/if}} + + +
     
    + +
  • + {{/each}} +
+
+ +
+ +
+
    +
  • + +

    +
    + + + +
     
    +
  • + {{#each skills as |skill key|}} +
  • + +
    + {{skill.name}} + + + + {{#each skill.system.predilections as |pred key|}} + {{pred.name}}, + {{/each}} + +
    + + + {{#if (ne skill.system.attribut1 "none")}} + + + + {{/if}} + {{#if (ne skill.system.attribut2 "none")}} + + + + {{/if}} + {{#if (ne skill.system.attribut3 "none")}} + + + + {{/if}} + +
     
    +
    + + +
    +
  • + {{/each}} +
+
+ +
+ +
+ + {{!-- Dons/Pactes Tab --}} +
+ +
+ +
+
    +
  • + +

    +
    +
     
    +
    +
    +
  • + {{#each capacites as |capacite key|}} +
  • + + {{capacite.name}} +
     
    +
    + + +
    +
  • + {{/each}} +
+
+
+ +
+ + + {{!-- Biography Tab --}} +
+ + +

Description

+
+
+ {{editor description target="system.biodata.description" button=true owner=owner editable=editable}} +
+ + +

Habitat

+
+
+ {{editor habitat target="system.biodata.habitat" button=true owner=owner editable=editable}} +
+ + +

Comportement

+
+
+ {{editor comportement target="system.biodata.comportement" button=true owner=owner editable=editable}} +
+ +
+ +
+
\ No newline at end of file