v9 - fix Journal sheet registration and some localisation

This commit is contained in:
Vlyan
2021-12-21 10:04:03 +01:00
parent 5d41e7a1a3
commit 28da4d1810
6 changed files with 101 additions and 22 deletions

View File

@@ -1,5 +1,8 @@
# Changelog # Changelog
## 1.5.0 - FoundryVTT v9 Compatibility
- Updated the System to FoundryVTT v9
## 1.4.0 - Armies & French PoW ## 1.4.0 - Armies & French PoW
- Added Army (Actor), Cohort (Item) and Fortification (Item) sheets. - Added Army (Actor), Cohort (Item) and Fortification (Item) sheets.
- Actor Sheet (PC, NPC, Army) : Added the ability to Drag n Drop an actor's image. - Actor Sheet (PC, NPC, Army) : Added the ability to Drag n Drop an actor's image.

View File

@@ -39,6 +39,9 @@
"TypeArmy_fortification": "Fortification", "TypeArmy_fortification": "Fortification",
"TypeArmy_cohort": "Cohort" "TypeArmy_cohort": "Cohort"
}, },
"JOURNAL": {
"TypeJournal": "Journal"
},
"l5r5e": { "l5r5e": {
"global": { "global": {
"add": "Add", "add": "Add",

View File

@@ -39,6 +39,9 @@
"TypeArmy_fortification": "Fortification", "TypeArmy_fortification": "Fortification",
"TypeArmy_cohort": "Cohort" "TypeArmy_cohort": "Cohort"
}, },
"JOURNAL": {
"TypeJournal": "Journal"
},
"l5r5e": { "l5r5e": {
"global": { "global": {
"add": "Añadir", "add": "Añadir",

View File

@@ -39,6 +39,9 @@
"TypeArmy_fortification": "Fortification", "TypeArmy_fortification": "Fortification",
"TypeArmy_cohort": "Régiment" "TypeArmy_cohort": "Régiment"
}, },
"JOURNAL": {
"TypeJournal": "Journal"
},
"l5r5e": { "l5r5e": {
"global": { "global": {
"add": "Ajouter", "add": "Ajouter",

View File

@@ -107,29 +107,96 @@ Hooks.once("init", async () => {
// ***** Register custom sheets ***** // ***** Register custom sheets *****
// Actors // Actors
Actors.unregisterSheet("core", ActorSheet); Actors.unregisterSheet("core", ActorSheet);
Actors.registerSheet("l5r5e", CharacterSheetL5r5e, { types: ["character"], makeDefault: true }); Actors.registerSheet("l5r5e", CharacterSheetL5r5e, {
Actors.registerSheet("l5r5e", NpcSheetL5r5e, { types: ["npc"], makeDefault: true }); types: ["character"],
Actors.registerSheet("l5r5e", ArmySheetL5r5e, { types: ["army"], makeDefault: true }); label: "ACTOR.TypeCharacter",
makeDefault: true,
});
Actors.registerSheet("l5r5e", NpcSheetL5r5e, {
types: ["npc"],
label: "ACTOR.TypeNpc",
makeDefault: true,
});
Actors.registerSheet("l5r5e", ArmySheetL5r5e, {
types: ["army"],
label: "ACTOR.TypeArmy",
makeDefault: true,
});
// Items // Items
Items.unregisterSheet("core", ItemSheet); Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("l5r5e", ItemSheetL5r5e, { types: ["item"], makeDefault: true }); Items.registerSheet("l5r5e", ItemSheetL5r5e, {
Items.registerSheet("l5r5e", ArmorSheetL5r5e, { types: ["armor"], makeDefault: true }); types: ["item"],
Items.registerSheet("l5r5e", WeaponSheetL5r5e, { types: ["weapon"], makeDefault: true }); label: "ITEM.TypeItem",
Items.registerSheet("l5r5e", TechniqueSheetL5r5e, { types: ["technique"], makeDefault: true }); makeDefault: true,
Items.registerSheet("l5r5e", PropertySheetL5r5e, { types: ["property"], makeDefault: true }); });
Items.registerSheet("l5r5e", PeculiaritySheetL5r5e, { types: ["peculiarity"], makeDefault: true }); Items.registerSheet("l5r5e", ArmorSheetL5r5e, {
Items.registerSheet("l5r5e", AdvancementSheetL5r5e, { types: ["advancement"], makeDefault: true }); types: ["armor"],
Items.registerSheet("l5r5e", TitleSheetL5r5e, { types: ["title"], makeDefault: true }); label: "ITEM.TypeArmor",
Items.registerSheet("l5r5e", BondSheetL5r5e, { types: ["bond"], makeDefault: true }); makeDefault: true,
Items.registerSheet("l5r5e", SignatureScrollSheetL5r5e, { types: ["signature_scroll"], makeDefault: true }); });
Items.registerSheet("l5r5e", ItemPatternSheetL5r5e, { types: ["item_pattern"], makeDefault: true }); Items.registerSheet("l5r5e", WeaponSheetL5r5e, {
Items.registerSheet("l5r5e", ArmyCohortSheetL5r5e, { types: ["army_cohort"], makeDefault: true }); types: ["weapon"],
Items.registerSheet("l5r5e", ArmyFortificationSheetL5r5e, { types: ["army_fortification"], makeDefault: true }); label: "ITEM.TypeWeapon",
makeDefault: true,
});
Items.registerSheet("l5r5e", TechniqueSheetL5r5e, {
types: ["technique"],
label: "ITEM.TypeTechnique",
makeDefault: true,
});
Items.registerSheet("l5r5e", PropertySheetL5r5e, {
types: ["property"],
label: "ITEM.TypeProperty",
makeDefault: true,
});
Items.registerSheet("l5r5e", PeculiaritySheetL5r5e, {
types: ["peculiarity"],
label: "ITEM.TypePeculiarity",
makeDefault: true,
});
Items.registerSheet("l5r5e", AdvancementSheetL5r5e, {
types: ["advancement"],
label: "ITEM.TypeAdvancement",
makeDefault: true,
});
Items.registerSheet("l5r5e", TitleSheetL5r5e, {
types: ["title"],
label: "ITEM.TypeTitle",
makeDefault: true,
});
Items.registerSheet("l5r5e", BondSheetL5r5e, {
types: ["bond"],
label: "ITEM.TypeBond",
makeDefault: true,
});
Items.registerSheet("l5r5e", SignatureScrollSheetL5r5e, {
types: ["signature_scroll"],
label: "ITEM.TypeSignature_scroll",
makeDefault: true,
});
Items.registerSheet("l5r5e", ItemPatternSheetL5r5e, {
types: ["item_pattern"],
label: "ITEM.TypeItem_pattern",
makeDefault: true,
});
Items.registerSheet("l5r5e", ArmyCohortSheetL5r5e, {
types: ["army_cohort"],
label: "ITEM.TypeArmy_cohort",
makeDefault: true,
});
Items.registerSheet("l5r5e", ArmyFortificationSheetL5r5e, {
types: ["army_fortification"],
label: "ITEM.TypeArmy_fortification",
makeDefault: true,
});
// Journal // Journal
Items.unregisterSheet("core", JournalSheet); Journal.unregisterSheet("core", JournalSheet);
Items.registerSheet("l5r5e", BaseJournalSheetL5r5e, { makeDefault: true }); Journal.registerSheet("l5r5e", BaseJournalSheetL5r5e, {
label: "JOURNAL.TypeJournal",
makeDefault: true,
});
// Override the default Token _drawBar function to allow fatigue bar reversing. // Override the default Token _drawBar function to allow fatigue bar reversing.
Token.prototype._drawBar = function (number, bar, data) { Token.prototype._drawBar = function (number, bar, data) {

View File

@@ -4,10 +4,10 @@
"description": "This is an authorised multilingual game system En|Fr|Es, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>", "description": "This is an authorised multilingual game system En|Fr|Es, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>",
"url": "https://gitlab.com/teaml5r/l5r5e", "url": "https://gitlab.com/teaml5r/l5r5e",
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json", "manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.4.0/raw/l5r5e.zip?job=build", "download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.5.0/raw/l5r5e.zip?job=build",
"version": "1.4.0", "version": "1.5.0",
"minimumCoreVersion": "0.8.5", "minimumCoreVersion": "9",
"compatibleCoreVersion": "0.8.9", "compatibleCoreVersion": "9",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"socket": true, "socket": true,
"author": "Team L5R", "author": "Team L5R",