Merge branch 'master' into 'master'

Ajout aspects pour pouvoirs

See merge request sasmira/swade-fr!9
This commit is contained in:
Sasmira 2021-03-28 16:35:57 +00:00
commit 3b5de2cac3
3 changed files with 107 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"items": [ "items": [
{ {
"_id": "yu8mQgz9LsE64YCd", "_id": "yu8mQgz9LsE64YCd",
"name": "Armor +2", "name": "Armure +2",
"type": "armor", "type": "armor",
"data": { "data": {
"description": "<div class=\"swade-core\">\n<p>Thick skin.</p>\n</div>", "description": "<div class=\"swade-core\">\n<p>Thick skin.</p>\n</div>",
@ -81,7 +81,7 @@
}, },
{ {
"_id": "LtIsTTVxdFc34ZYG", "_id": "LtIsTTVxdFc34ZYG",
"name": "Fighting", "name": "Combat",
"type": "skill", "type": "skill",
"data": { "data": {
"description": "<div class=\"swade-core\">\n<p>Fighting covers all hand-to-hand (melee) attacks, whether it&rsquo;s with fists, axes, laser swords, or martial arts. See @Compendium[swade-core-rules.swade-rules.Combat]{Chapter Three} for the combat rules and the various maneuvers a warrior might attempt.</p>\n</div>", "description": "<div class=\"swade-core\">\n<p>Fighting covers all hand-to-hand (melee) attacks, whether it&rsquo;s with fists, axes, laser swords, or martial arts. See @Compendium[swade-core-rules.swade-rules.Combat]{Chapter Three} for the combat rules and the various maneuvers a warrior might attempt.</p>\n</div>",

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,7 @@
/************************************************************************************/ /************************************************************************************/
Hooks.once('init', () => { Hooks.once('init', () => {
if(typeof Babele !== 'undefined') { if(typeof Babele !== 'undefined') {
console.log("BABELE LOADED !!!"); console.log("BABELE LOADED !!!");
@ -9,6 +10,42 @@ Hooks.once('init', () => {
lang: 'fr', lang: 'fr',
dir: 'compendiums' dir: 'compendiums'
}); });
Babele.get().registerConverters({
"powers_duration": (duration) => {
if ( duration == 'One hour') return 'Une heure';
if ( duration == 'Instant (slot); 5 (speed)') return 'Instantané (apathie); 5 (vitesse)';
if ( duration == '(boost); Instant (lower)') return '5 (augmentation); Instantané (diminution)';
if ( duration == 'Instant') return 'Instantanné';
if ( duration == 'Until the end of the victim\'s next turn') return 'Jusqu`à la fin du prochain tour de la cible';
if ( duration == 'A brief conversation of about five minutes') return 'Une brève conversation d\'environ 5 minutes';
if ( duration == '5 (detect), one hour (conceal)') return '5 (détection); une heure (dissimulation)';
if ( duration == 'Instant (Sound); 5 (Silence)') return 'Instantané (Son); 5 (Silence)';
return duration;
},
"powers_range": (range) => {
if ( range == 'Smarts x5 (Sound); Smarts (Silence)')
return 'Intellect x5 (Son); Intellect (Silence)';
if ( range == "Cone Template")
return "Cône"
if ( range == "Touch")
return "Toucher"
if ( range == "Sm")
return "Ame mètres"
if ( range == "Sm x 2" || range == "Sm x2")
return "Ame mètres x 2"
if ( range == "Self")
return "Soi-même"
return range;
},
"powers_rank": (rank) => {
if ( rank == 'Novice') return 'Novice';
if ( rank == 'Seasoned') return 'Aguerri';
if ( rank == 'Veteran') return 'Vétéran';
if ( rank == 'Heroic') return 'Héroïque';
return rank;
}
} );
} }
}); });