From e2e6e18a134f80ab79e1be70dd7336bdaf75404c Mon Sep 17 00:00:00 2001 From: Vlyan Date: Fri, 29 Oct 2021 19:37:26 +0200 Subject: [PATCH] Added Mantra technique type --- CHANGELOG.md | 3 ++- .../l5r5e.core-journal-school-curriculum.json | 2 +- .../fr-fr/l5r5e.core-techniques-mantra.json | 21 +++++++++++++++++++ system/babele/fr-fr/l5r5e.core-titles.json | 2 +- system/lang/en-en.json | 1 + system/lang/es-es.json | 1 + system/lang/fr-fr.json | 1 + .../packs/core-journal-school-curriculum.db | 2 +- system/packs/core-techniques-mantra.db | 2 ++ system/packs/core-titles.db | 2 +- system/scripts/actors/twenty-questions.js | 3 +++ system/scripts/config.js | 1 + system/scripts/helpers.js | 1 + system/system.json | 7 +++++++ system/template.json | 1 + 15 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 system/babele/fr-fr/l5r5e.core-techniques-mantra.json create mode 100644 system/packs/core-techniques-mantra.db diff --git a/CHANGELOG.md b/CHANGELOG.md index e685d4c..62f97f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## 1.4.0 - Armies & French PoW - Added Army, Cohort and Fortification sheets. -- Added real icon for Inversion and Mantra. +- Added real icons for Inversion and Mantra. +- Added Mantra technique type. - Standardization of "great-clans-presentation" pack name to "core-journal-great-clans-presentation". - SendToChat now check links validity before adding them. - Compendiums : diff --git a/system/babele/fr-fr/l5r5e.core-journal-school-curriculum.json b/system/babele/fr-fr/l5r5e.core-journal-school-curriculum.json index eb0dbb1..a776a2a 100644 --- a/system/babele/fr-fr/l5r5e.core-journal-school-curriculum.json +++ b/system/babele/fr-fr/l5r5e.core-journal-school-curriculum.json @@ -472,7 +472,7 @@ { "id": "Ivory Kingdoms Dancing Blades Tradition", "name": "Tradition de lames dansantes des royaumes d’Ivoire", - "content": "
La Voie des Vagues p.59

Rang 1

Compétences MartialesGrp. de comp.
CommandementCompétence
CultureCompétence
ReprésentationsCompétence
Kata de rang 1Tech. Grp.
Là-haut !Technique
La précipitation du cavalier Technique

Rang 2

Compétences MartialesGrp. de comp.
CommandementCompétence
GouvernementCompétence
NavigationCompétence
Kata de rang 1-2Tech. Grp.
Style de la charge du taureau Technique
Mantra d'invocation (Un instrument) Technique

Rang 3

Compétences MartialesGrp. de comp.
CommandementCompétence
CultureCompétence
NavigationCompétence
Shuji de la Terre ou du Feu de rang 1-3Tech. Grp.
Balancement hardi Technique
BravadeTechnique

Rang 4

Compétences MartialesGrp. de comp.
CultureCompétence
GouvernementCompétence
ReprésentationsCompétence
Kata de rang 1-4Tech. Grp.
Style de la tempête tournoyante Technique
Hurlement d’encouragement Technique

Rang 5

Compétences MartialesGrp. de comp.
CommandementCompétence
CultureCompétence
NavigationCompétence
Kata de rang 1-5Tech. Grp.
Le couteau dans la plaie Technique
L’immuable main de la paixTechnique
" + "content": "
La Voie des Vagues p.59

Rang 1

Compétences MartialesGrp. de comp.
CommandementCompétence
CultureCompétence
ReprésentationsCompétence
Kata de rang 1Tech. Grp.
Là-haut !Technique
La précipitation du cavalier Technique

Rang 2

Compétences MartialesGrp. de comp.
CommandementCompétence
GouvernementCompétence
NavigationCompétence
Kata de rang 1-2Tech. Grp.
Style de la charge du taureau Technique
Mantra de conjuration : [Nom de l’instrument] Technique

Rang 3

Compétences MartialesGrp. de comp.
CommandementCompétence
CultureCompétence
NavigationCompétence
Shuji de la Terre ou du Feu de rang 1-3Tech. Grp.
Balancement hardi Technique
BravadeTechnique

Rang 4

Compétences MartialesGrp. de comp.
CultureCompétence
GouvernementCompétence
ReprésentationsCompétence
Kata de rang 1-4Tech. Grp.
Style de la tempête tournoyante Technique
Hurlement d’encouragement Technique

Rang 5

Compétences MartialesGrp. de comp.
CommandementCompétence
CultureCompétence
NavigationCompétence
Kata de rang 1-5Tech. Grp.
Le couteau dans la plaie Technique
L’immuable main de la paixTechnique
" } ] } diff --git a/system/babele/fr-fr/l5r5e.core-techniques-mantra.json b/system/babele/fr-fr/l5r5e.core-techniques-mantra.json new file mode 100644 index 0000000..f13d764 --- /dev/null +++ b/system/babele/fr-fr/l5r5e.core-techniques-mantra.json @@ -0,0 +1,21 @@ +{ + "label": "Techniques Mantra", + "mapping": { + "description": "data.description", + "book_reference": "data.book_reference" + }, + "entries": [ + { + "id": "Summon Mantra : [One Implement]", + "name": "Mantra de conjuration : [Nom de l’instrument]", + "description": "", + "book_reference": "La Voie des Vagues p.99" + }, + { + "id": "Countering Mantra", + "name": "Mantra de contre", + "description": "", + "book_reference": "La Voie des Vagues p.99" + } + ] +} diff --git a/system/babele/fr-fr/l5r5e.core-titles.json b/system/babele/fr-fr/l5r5e.core-titles.json index b11ffe5..db50a43 100644 --- a/system/babele/fr-fr/l5r5e.core-titles.json +++ b/system/babele/fr-fr/l5r5e.core-titles.json @@ -248,7 +248,7 @@ { "id": "Astradhari", "name": "Astradhari", - "description": "

Cursus

Compétences SavantesGrp. de comp.
Compétences MartialesGrp. de comp.
CommandementCompétence
CourtoisieCompétence
Rituels de rang 1-3 Tech. Grp.
Mantra d'invocation (Un instrument) Technique
Courage exemplaire Technique
", + "description": "

Cursus

Compétences SavantesGrp. de comp.
Compétences MartialesGrp. de comp.
CommandementCompétence
CourtoisieCompétence
Rituels de rang 1-3 Tech. Grp.
Mantra de conjuration : [Nom de l’instrument] Technique
Courage exemplaire Technique
", "book_reference": "La Voie des Vagues p.187" } ] diff --git a/system/lang/en-en.json b/system/lang/en-en.json index 771f1bb..b3c1b3a 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -190,6 +190,7 @@ "shuji": "Shuji", "maho": "Mahõ", "ninjutsu": "Ninjutsu", + "mantra": "Mantra", "school_ability": "School Ability", "mastery_ability": "Mastery Ability", "title_ability": "Title Ability", diff --git a/system/lang/es-es.json b/system/lang/es-es.json index 313075f..42110b9 100644 --- a/system/lang/es-es.json +++ b/system/lang/es-es.json @@ -190,6 +190,7 @@ "shuji": "Shuji", "maho": "Mahõ", "ninjutsu": "Ninjutsu", + "mantra": "Mantra", "school_ability": "Capacidad de escuela", "mastery_ability": "Habilidad de maestría", "title_ability": "Title Ability", diff --git a/system/lang/fr-fr.json b/system/lang/fr-fr.json index bbee24a..c49126a 100644 --- a/system/lang/fr-fr.json +++ b/system/lang/fr-fr.json @@ -190,6 +190,7 @@ "shuji": "Shuji", "maho": "Mahõ", "ninjutsu": "Ninjutsu", + "mantra": "Mantra", "school_ability": "Capacité d'école", "mastery_ability": "Capacité de maîtrise", "title_ability": "Capacité de Titre", diff --git a/system/packs/core-journal-school-curriculum.db b/system/packs/core-journal-school-curriculum.db index 6459500..24276a7 100644 --- a/system/packs/core-journal-school-curriculum.db +++ b/system/packs/core-journal-school-curriculum.db @@ -91,4 +91,4 @@ {"_id":"L5RCoreCsc000091","name":"Qamarist Shield Bearer Tradition","content":"
Path of Waves p.56

Rank 1

Martial SkillsSkill Group
CommandSkill
GovernmentSkill
TheologySkill
Rank 1-2 Kata Tech. Grp.
DivinationTechnique
Wanderer's ResolveTechnique

Rank 2

Martial SkillsSkill Group
CommandSkill
GovernmentSkill
SmithingSkill
Rank 1-2 Rituals Tech. Grp.
Goading Taunt Technique
Iron Shell Style Technique

Rank 3

Scholar SkillsSkill Group
MeditationSkill
SmithingSkill
TacticsSkill
Rank 1-3 Kata Tech. Grp.
Deflective DefenseTechnique
Iron in the Mountains Style Technique

Rank 4

Martial SkillsSkill Group
CommandSkill
SmithingSkill
TheologySkill
Rank 1-4 Kata Tech. Grp.
Bonebreaker Style Technique
Mentor's Guidance Technique

Rank 5

Scholar SkillsSkill Group
Martial Arts [Melee]Skill
MeditationSkill
TheologySkill
Rank 1-5 Kata Tech. Grp.
Fortitude Draught (Qamarist Region) Technique
Bond of HeroesTechnique
","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}} {"_id":"L5RCoreCsc000092","name":"Qamarist Alchemist Tradition","content":"
Path of Waves p.57

Rank 1

Scholar SkillsSkill Group
CourtesySkill
Martial Arts [Ranged]Skill
MeditationSkill
Rank 1-2 Rituals Tech. Grp.
Weight of DutyTechnique
Wanderer's ResolveTechnique

Rank 2

Scholar SkillsSkill Group
CommandSkill
LaborSkill
Martial Arts [Ranged]Skill
Rank 1-2 ShujiTech. Grp.
Fortitude Draught (Qamarist Region) Technique
Boar's Wrath Style Technique

Rank 3

Scholar SkillsSkill Group
CourtesySkill
Martial Arts [Ranged]Skill
SentimentSkill
Rank 1-3 RitualsTech. Grp.
Breath of Wind Style Technique
Look OutTechnique

Rank 4

Social SkillsSkill Group
GovernmentSkill
MedicineSkill
TheologySkill
Rank 1-4 RitualsTech. Grp.
Restorative Transmutation (Qamarist Region) Technique
Pillar of CalmTechnique

Rank 5

Social SkillsSkill Group
CultureSkill
MedicineSkill
TheologySkill
Rank 1-5 ShujiTech. Grp.
Mentor's GuidanceTechnique
Void Embrace StyleTechnique
","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}} {"_id":"L5RCoreCsc000093","name":"Ivory Kingdoms Sage Tradition","content":"
Path of Waves p.58

Rank 1

Scholar SkillsSkill Group
CommandSkill
CourtesySkill
FitnessSkill
Rank 1 KihoTech. Grp.
Landslide StrikeTechnique
Bellow of ResolveTechnique

Rank 2

Martial SkillsSkill Group
CompositionSkill
GovernmentSkill
SentimentSkill
Rank 1-2 KihoTech. Grp.
Rider's HasteTechnique
Lord Hida’s Grip (Crab) Technique

Rank 3

Martial SkillsSkill Group
CourtesySkill
SentimentSkill
TheologySkill
Rank 1-3 KataTech. Grp.
Thunderous Hooves Style Technique
Cleansing of Coral and Gold (Ivory Kingdoms Region) Technique

Rank 4

Social SkillsSkill Group
FitnessSkill
Martial Arts [Melee]Skill
Martial Arts [Unarmed]Skill
Rank 1-4 KihoTech. Grp.
Striking as Void Technique
Mentor's Guidance Technique

Rank 5

Social SkillsSkill Group
Martial Arts [Melee]Skill
Martial Arts [Unarmed]Skill
MeditationSkill
Rank 1-5 KataTech. Grp.
Touch the Void DragonTechnique
Buoyant Arrival Technique
","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}} -{"_id":"L5RCoreCsc000094","name":"Ivory Kingdoms Dancing Blades Tradition","content":"
Path of Waves p.59

Rank 1

Martial SkillsSkill Group
CommandSkill
CultureSkill
PerformanceSkill
Rank 1 KataTech. Grp.
Eyes Up!Technique
Rider's Haste Technique

Rank 2

Martial SkillsSkill Group
CommandSkill
GovernmentSkill
SeafaringSkill
Rank 1-2 KataTech. Grp.
Rushing Ox Style Technique
Summon Mantra : One Implement Technique

Rank 3

Martial SkillsSkill Group
CommandSkill
CultureSkill
SeafaringSkill
Rank 1-3 Earth & Fire ShujiTech. Grp.
Daring Swing Technique
BravadoTechnique

Rank 4

Martial SkillsSkill Group
CultureSkill
GovernmentSkill
PerformanceSkill
Rank 1-4 KataTech. Grp.
Swirling Tempest Style Technique
Roar of Encouragement Technique

Rank 5

Martial SkillsSkill Group
CommandSkill
CultureSkill
SeafaringSkill
Rank 1-5 KataTech. Grp.
Sear the Wound Technique
The Immovable Hand of PeaceTechnique
","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}} +{"_id":"L5RCoreCsc000094","name":"Ivory Kingdoms Dancing Blades Tradition","content":"
Path of Waves p.59

Rank 1

Martial SkillsSkill Group
CommandSkill
CultureSkill
PerformanceSkill
Rank 1 KataTech. Grp.
Eyes Up!Technique
Rider's Haste Technique

Rank 2

Martial SkillsSkill Group
CommandSkill
GovernmentSkill
SeafaringSkill
Rank 1-2 KataTech. Grp.
Rushing Ox Style Technique
Summon Mantra : [One Implement] Technique

Rank 3

Martial SkillsSkill Group
CommandSkill
CultureSkill
SeafaringSkill
Rank 1-3 Earth & Fire ShujiTech. Grp.
Daring Swing Technique
BravadoTechnique

Rank 4

Martial SkillsSkill Group
CultureSkill
GovernmentSkill
PerformanceSkill
Rank 1-4 KataTech. Grp.
Swirling Tempest Style Technique
Roar of Encouragement Technique

Rank 5

Martial SkillsSkill Group
CommandSkill
CultureSkill
SeafaringSkill
Rank 1-5 KataTech. Grp.
Sear the Wound Technique
The Immovable Hand of PeaceTechnique
","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}} diff --git a/system/packs/core-techniques-mantra.db b/system/packs/core-techniques-mantra.db new file mode 100644 index 0000000..9e864df --- /dev/null +++ b/system/packs/core-techniques-mantra.db @@ -0,0 +1,2 @@ +{"_id":"L5RCoreMan000001","name":"Summon Mantra : [One Implement]","permission":{"default":0},"type":"technique","data":{"in_curriculum":false,"xp_used":0,"rank":"1","bought_at_rank":0,"ring":"void","technique_type":"mantra","xp_cost":"3","description":"","book_reference":"Path of Waves p.99"},"sort":100001,"flags":{},"img":"systems/l5r5e/assets/icons/techs/mantra.svg","effects":[]} +{"_id":"L5RCoreMan000002","name":"Countering Mantra","permission":{"default":0},"type":"technique","data":{"in_curriculum":false,"xp_used":0,"rank":"4","bought_at_rank":0,"ring":"void","technique_type":"mantra","xp_cost":"3","description":"","book_reference":"Path of Waves p.99"},"sort":100001,"flags":{},"img":"systems/l5r5e/assets/icons/techs/mantra.svg","effects":[]} diff --git a/system/packs/core-titles.db b/system/packs/core-titles.db index 9f73db6..e0f6fff 100644 --- a/system/packs/core-titles.db +++ b/system/packs/core-titles.db @@ -38,4 +38,4 @@ {"_id":"L5RCoreTit000038","name":"In Service to a Lord","permission":{"default":0},"type":"title","data":{"in_curriculum":false,"xp_used":0,"rank":1,"bought_at_rank":0,"ring":"void","xp_cost":"24","description":"

Curriculum

Martial SkillsSkill Group
Social SkillsSkill Group
CultureSkill
GovernmentSkill
Rank 1-2 Kata Tech. Grp.
Wolf’s Proposal Technique
Fluent Bargaining Technique
","book_reference":"Path of Waves p.185"},"sort":100001,"flags":{},"img":"systems/l5r5e/assets/icons/items/title.svg","effects":[]} {"_id":"L5RCoreTit000039","name":"Perfect Land Sect Member","permission":{"default":0},"type":"title","data":{"in_curriculum":false,"xp_used":0,"rank":1,"bought_at_rank":0,"ring":"void","xp_cost":"24","description":"

Curriculum

Scholar SkillsSkill Group
CourtesySkill
FitnessSkill
LaborSkill
Rank 1-2 Water Shuji Tech. Grp.
Roar of Encouragement Technique
Rallying Cry Technique
","book_reference":"Path of Waves p.186"},"sort":100001,"flags":{},"img":"systems/l5r5e/assets/icons/items/title.svg","effects":[]} {"_id":"L5RCoreTit000040","name":"Ghostlands Warrior","permission":{"default":0},"type":"title","data":{"in_curriculum":false,"xp_used":0,"rank":1,"bought_at_rank":0,"ring":"void","xp_cost":"36","description":"

Curriculum

Martial SkillsSkill Group
CommandSkill
MedicineSkill
SurvivalSkill
Earth Needs No Eyes Technique
Soaring Slice Technique
Cleansing of Coral and Gold (Ivory Kingdoms Region) Technique
","book_reference":"Path of Waves p.186"},"sort":100001,"flags":{},"img":"systems/l5r5e/assets/icons/items/title.svg","effects":[]} -{"_id":"L5RCoreTit000041","name":"Astradhari","permission":{"default":0},"type":"title","data":{"in_curriculum":false,"xp_used":0,"rank":1,"bought_at_rank":0,"ring":"void","xp_cost":"36","description":"

Curriculum

Scholar SkillsSkill Group
Martial SkillsSkill Group
CommandSkill
CourtesySkill
Rank 1-3 Rituals Tech. Grp.
Summon Mantra : One Implement Technique
Touchstone of Courage Technique
","book_reference":"Path of Waves p.187"},"sort":100001,"flags":{},"img":"systems/l5r5e/assets/icons/items/title.svg","effects":[]} +{"_id":"L5RCoreTit000041","name":"Astradhari","permission":{"default":0},"type":"title","data":{"in_curriculum":false,"xp_used":0,"rank":1,"bought_at_rank":0,"ring":"void","xp_cost":"36","description":"

Curriculum

Scholar SkillsSkill Group
Martial SkillsSkill Group
CommandSkill
CourtesySkill
Rank 1-3 Rituals Tech. Grp.
Summon Mantra : [One Implement] Technique
Touchstone of Courage Technique
","book_reference":"Path of Waves p.187"},"sort":100001,"flags":{},"img":"systems/l5r5e/assets/icons/items/title.svg","effects":[]} diff --git a/system/scripts/actors/twenty-questions.js b/system/scripts/actors/twenty-questions.js index 7a781f3..c490361 100644 --- a/system/scripts/actors/twenty-questions.js +++ b/system/scripts/actors/twenty-questions.js @@ -85,6 +85,7 @@ export class TwentyQuestions { shuji: false, maho: false, ninjutsu: false, + mantra: false, specificity: true, }, techniques: [], @@ -214,6 +215,7 @@ export class TwentyQuestions { this.data.step3.allowed_techniques.shuji = actorDatas.techniques.shuji; this.data.step3.allowed_techniques.maho = actorDatas.techniques.maho; this.data.step3.allowed_techniques.ninjutsu = actorDatas.techniques.ninjutsu; + this.data.step3.allowed_techniques.mantra = actorDatas.techniques.mantra; this.data.step5.social_giri = actorDatas.social.giri; this.data.step6.social_ninjo = actorDatas.social.ninjo; this.data.step8.tenet_paramount = actorDatas.social.bushido_tenets.paramount; @@ -276,6 +278,7 @@ export class TwentyQuestions { shuji: !!formData.step3.allowed_techniques.shuji, maho: !!formData.step3.allowed_techniques.maho, ninjutsu: !!formData.step3.allowed_techniques.ninjutsu, + mantra: !!formData.step3.allowed_techniques.mantra, }; // Rings - Reset to 1, and apply modifiers diff --git a/system/scripts/config.js b/system/scripts/config.js index 113910f..e24621f 100644 --- a/system/scripts/config.js +++ b/system/scripts/config.js @@ -34,6 +34,7 @@ L5R5E.techniques.set("ritual", { type: "core", displayInTypes: true }); L5R5E.techniques.set("shuji", { type: "core", displayInTypes: true }); L5R5E.techniques.set("maho", { type: "core", displayInTypes: true }); L5R5E.techniques.set("ninjutsu", { type: "core", displayInTypes: true }); +L5R5E.techniques.set("mantra", { type: "core", displayInTypes: true }); // School L5R5E.techniques.set("school_ability", { type: "school", displayInTypes: false }); L5R5E.techniques.set("mastery_ability", { type: "school", displayInTypes: false }); diff --git a/system/scripts/helpers.js b/system/scripts/helpers.js index 792012d..dde5408 100644 --- a/system/scripts/helpers.js +++ b/system/scripts/helpers.js @@ -267,6 +267,7 @@ export class HelpersL5r5e { core.set("Kat", "l5r5e.core-techniques-kata"); core.set("Kih", "l5r5e.core-techniques-kiho"); core.set("Mah", "l5r5e.core-techniques-maho"); + core.set("Man", "l5r5e.core-techniques-mantra"); core.set("Mas", "l5r5e.core-techniques-mastery"); core.set("Nin", "l5r5e.core-techniques-ninjutsu"); core.set("Rit", "l5r5e.core-techniques-rituals"); diff --git a/system/system.json b/system/system.json index dd074a6..5703323 100644 --- a/system/system.json +++ b/system/system.json @@ -92,6 +92,13 @@ "entity": "Item", "system": "l5r5e" }, + { + "name": "core-techniques-mantra", + "label": "Techniques Mantra", + "path": "packs/core-techniques-mantra.db", + "entity": "Item", + "system": "l5r5e" + }, { "name": "core-techniques-school", "label": "School Abilities", diff --git a/system/template.json b/system/template.json index 28a899c..78af9a3 100644 --- a/system/template.json +++ b/system/template.json @@ -109,6 +109,7 @@ "shuji": false, "maho": false, "ninjutsu": false, + "mantra": false, "specificity": true } }