Update armes + espèces

This commit is contained in:
2021-11-16 14:53:31 +01:00
parent 2d82e9b1a6
commit 2d0cb2c006
5 changed files with 133 additions and 20 deletions

View File

@ -12,6 +12,33 @@ Hooks.once('init', () => {
});
Babele.get().registerConverters({
"gear_skill": (skill) => {
if (skill) {
if (skill == 'Fighting') return 'Combat';
if (skill == 'Shooting') return 'Tir';
console.log("UNKOWN SKILL", skill);
}
return skill;
},
"gear_range": (range) => {
if (range) {
if (range== 'Cone Template') return 'Gabarit de cone';
}
return range;
},
"gear_ammo": (ammo) => {
if (ammo) {
if (ammo== 'Arrows/Bolts') return 'Flèches/Carreaux';
if (ammo== 'Canister Shot (Cannon)') return 'Cartouches (Canon)';
if (ammo== 'Shrapnel Shot (Cannon)') return 'Shrapnel (Canon)';
if (ammo== 'Solid Shot (Cannon)') return 'Solide (Canon)';
if (ammo== 'Bullets, Medium') return 'Balles, Moyenne';
if (ammo== 'Shotgun Shells') return 'Cartouche de Shotgun';
if (ammo== 'Laser Battery, Pistol') return 'Batterie pour laser, Pistolet';
if (ammo== 'Laser Battery, Rifle / SMG') return 'Batterie pour laser, Fusil';
}
return ammo;
},
"powers_duration": (duration) => {
if ( duration == 'One hour') return '1 heure';
if ( duration == 'Instant (slot); 5 (speed)') return 'Instantanée (apathie), 5 (vitesse)';