1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-31 05:24:20 +00:00

correction vitesses à valeurs décimales + corrections diverses

This commit is contained in:
Maxime Moraine 2020-04-24 18:03:17 +02:00
parent c82032e499
commit bde66fed9f
20 changed files with 161 additions and 138 deletions

View file

@ -80,11 +80,14 @@
</div> </div>
</div> </div>
<div class="break-avoid"> <div class="break-avoid">
<div class="monster-saving-throws" v-if="monsterStats.savingThrows && monsterStats.savingThrows.length > 0"> <div class="monster-saving-throws" v-if="monsterStats.customSavingThrows || (monsterStats.savingThrows && monsterStats.savingThrows.length > 0)">
<strong>Jets de sauvegarde</strong> <strong>Jets de sauvegarde</strong>
<span class="monster-saving-throw" v-for="(savingThrow, idx) in monsterStats.savingThrows"> <template v-if="monsterStats.customSavingThrows">{{monsterStats.customSavingThrows}}</template>
<template v-else>
<template v-for="(savingThrow, idx) in monsterStats.savingThrows">
<template>{{displaySavingThrowBonus(savingThrow)}}</template><template v-if="idx < monsterStats.savingThrows.length - 1">, </template> <template>{{displaySavingThrowBonus(savingThrow)}}</template><template v-if="idx < monsterStats.savingThrows.length - 1">, </template>
</span> </template>
</template>
</div> </div>
<div class="monster-skills" v-if="monsterStats.skills && monsterStats.skills.length > 0"> <div class="monster-skills" v-if="monsterStats.skills && monsterStats.skills.length > 0">
<strong>Compétences</strong> <strong>Compétences</strong>
@ -105,12 +108,13 @@
<span v-html="displayDamageTypes(monsterStats.damageTypeImmunities)"></span> <span v-html="displayDamageTypes(monsterStats.damageTypeImmunities)"></span>
</div> </div>
<div class="monster-condition-immunities" v-if="monsterStats.conditionImmunities && monsterStats.conditionImmunities.length > 0"> <div class="monster-condition-immunities" v-if="monsterStats.conditionImmunities && monsterStats.conditionImmunities.length > 0">
<strong>Immunité contre les états</strong> <strong>Immunité contre <template v-if="monsterStats.conditionImmunities.length == 1">l'état</template><template v-else>les états</template></strong>
<span v-for="(condition, idx) in monsterStats.conditionImmunities"> <span v-html="displayConditionImmunities()"></span>
<!-- <span v-for="(condition, idx) in monsterStats.conditionImmunities">
<template v-if="idx < monsterStats.conditionImmunities.length - 2 && idx > 1">,</template> <template v-if="idx < monsterStats.conditionImmunities.length - 2 && idx > 1">,</template>
<template v-if="idx == monsterStats.conditionImmunities.length - 1">et</template> <template v-if="idx == monsterStats.conditionImmunities.length - 1">et</template>
<em><router-link :to="{ path: conditionPath(condition) }">{{displayCondition(condition)}}</router-link></em> <em><router-link :to="{ path: conditionPath(condition) }">{{displayCondition(condition)}}</router-link></em>
</span> </span> -->
</div> </div>
<div class="monster-senses"> <div class="monster-senses">
<strong>Sens</strong> <strong>Sens</strong>
@ -402,30 +406,45 @@ export default {
if (this.monsterStats.senses.tremorsense) { if (this.monsterStats.senses.tremorsense) {
result += 'perception des vibrations ' + this.monsterStats.senses.tremorsense + ' m' result += 'perception des vibrations ' + this.monsterStats.senses.tremorsense + ' m'
} }
if (this.monsterStats.senses.blindsight) { if (this.monsterStats.senses.blindsight || this.monsterStats.senses.customBlindSight) {
if (result != '') { if (result != '') {
result += ', ' result += ', '
} }
if (this.monsterStats.senses.customBlindSight) {
result += 'vision aveugle ' + this.monsterStats.senses.customBlindSight
} else {
result += 'vision aveugle ' + this.monsterStats.senses.blindsight + ' m' result += 'vision aveugle ' + this.monsterStats.senses.blindsight + ' m'
} }
if (this.monsterStats.senses.darkvision) { }
if (this.monsterStats.senses.darkvision || this.monsterStats.senses.customDarkvision) {
if (result != '') { if (result != '') {
result += ', ' result += ', '
} }
if (this.monsterStats.senses.customDarkvision) {
result += 'vision dans le noir ' + this.monsterStats.senses.customDarkvision
} else {
result += 'vision dans le noir ' + this.monsterStats.senses.darkvision + ' m' result += 'vision dans le noir ' + this.monsterStats.senses.darkvision + ' m'
} }
if (this.monsterStats.senses.truesight) { }
if (this.monsterStats.senses.truesight || this.monsterStats.senses.customTrueSight) {
if (result != '') { if (result != '') {
result += ', ' result += ', '
} }
if (this.monsterStats.senses.customTrueSight) {
result += 'vision parfaite ' + this.monsterStats.senses.customTrueSight
} else {
result += 'vision parfaite ' + this.monsterStats.senses.truesight + ' m' result += 'vision parfaite ' + this.monsterStats.senses.truesight + ' m'
} }
}
if (result != '') { if (result != '') {
result += ', ' result += ', '
} }
} }
if (this.monsterStats.senses && this.monsterStats.senses.customPassivePerception) {
result += 'Perception passive ' + this.monsterStats.senses.customPassivePerception
} else {
result += 'Perception passive ' + this.passivePerception result += 'Perception passive ' + this.passivePerception
}
return result return result
}, },

View file

@ -16,7 +16,7 @@ ac:
armorType: "armure naturelle" armorType: "armure naturelle"
value: 8 value: 8
movement: movement:
walk: 7 walk: 7,50
senses: senses:
blindsight: 18 blindsight: 18
conditionImmunities: conditionImmunities:

View file

@ -16,7 +16,7 @@ ac:
armorType: null armorType: null
movement: movement:
walk: 6 walk: 6
burrow: 1 burrow: 1,50
senses: senses:
darkvision: 9 darkvision: 9
languages: languages:

View file

@ -15,7 +15,7 @@ abilityScores:
ac: ac:
armorType: null armorType: null
movement: movement:
walk: 1 walk: 1,50
fly: 9 fly: 9
senses: senses:
blindsight: 18 blindsight: 18

View file

@ -16,6 +16,7 @@ savingThrows:
- "for" - "for"
- "sag" - "sag"
- "cha" - "cha"
customSavingThrows: "For +7, Sag +5, Cha +3"
ac: ac:
armorType: "custom" armorType: "custom"
value: "13" value: "13"

View file

@ -19,7 +19,7 @@ skills:
- name: "perception" - name: "perception"
isExpert: true isExpert: true
movement: movement:
walk: 1 walk: 1,50
fly: 18 fly: 18
senses: senses:
darkvision: 36 darkvision: 36

View file

@ -20,7 +20,7 @@ skills:
- name: "perception" - name: "perception"
isExpert: true isExpert: true
movement: movement:
walk: 1 walk: 1,50
fly: 18 fly: 18
senses: senses:
darkvision: 36 darkvision: 36

View file

@ -15,7 +15,7 @@ abilityScores:
ac: ac:
armorType: null armorType: null
movement: movement:
walk: 4 walk: 4,50
senses: senses:
blindsight: 18 blindsight: 18
conditionImmunities: conditionImmunities:

View file

@ -20,7 +20,8 @@ skills:
invalid: true invalid: true
value: 4 value: 4
movement: movement:
fly: 1 walk: 1,50
fly: 9
senses: senses:
blindsight: 18 blindsight: 18
conditionImmunities: conditionImmunities:

View file

@ -26,7 +26,7 @@ skills:
isExpert: true isExpert: true
movement: movement:
walk: 9 walk: 9
burrow: 4 burrow: 4,50
swim: 9 swim: 9
fly: 18 fly: 18
senses: senses:

View file

@ -26,7 +26,7 @@ skills:
isExpert: true isExpert: true
movement: movement:
walk: 9 walk: 9
burrow: 4 burrow: 4,50
fly: 18 fly: 18
senses: senses:
blindsight: 3 blindsight: 3

View file

@ -26,7 +26,7 @@ skills:
isExpert: true isExpert: true
movement: movement:
walk: 9 walk: 9
burrow: 4 burrow: 4,50
fly: 18 fly: 18
senses: senses:
blindsight: 3 blindsight: 3

View file

@ -17,7 +17,7 @@ ac:
armorType: "armure d'écailles" armorType: "armure d'écailles"
hasShield: true hasShield: true
movement: movement:
walk: 7,5 walk: 7,50
senses: senses:
darkvision: 36 darkvision: 36
damageTypeResistances: damageTypeResistances:

View file

@ -23,7 +23,7 @@ skills:
invalid: true invalid: true
value: 4 value: 4
movement: movement:
walk: 7 walk: 7,50
senses: senses:
languages: languages:
- "deux langues au choix" - "deux langues au choix"

View file

@ -16,7 +16,7 @@ abilityScores:
ac: ac:
armorType: null armorType: null
movement: movement:
walk: 4 walk: 4,50
senses: senses:
darkvision: 36 darkvision: 36
conditionImmunities: conditionImmunities:

View file

@ -20,7 +20,7 @@ skills:
- name: "discretion" - name: "discretion"
isExpert: true isExpert: true
movement: movement:
walk: 4 walk: 4,50
senses: senses:
darkvision: 18 darkvision: 18
conditionImmunities: conditionImmunities:

View file

@ -16,7 +16,7 @@ abilityScores:
ac: ac:
armorType: null armorType: null
movement: movement:
walk: 1 walk: 1,50
senses: senses:
blindsight: 9 blindsight: 9
conditionImmunities: conditionImmunities:

View file

@ -20,7 +20,7 @@ skills:
- name: "perception" - name: "perception"
isExpert: true isExpert: true
movement: movement:
walk: 1 walk: 1,50
swim: 9 swim: 9
senses: senses:
darkvision: 9 darkvision: 9

View file

@ -19,7 +19,7 @@ skills:
- name: "discretion" - name: "discretion"
- name: "perception" - name: "perception"
movement: movement:
walk: 4 walk: 4,50
fly: 18 fly: 18
senses: senses:
blindsight: 3 blindsight: 3

View file

@ -24,6 +24,8 @@ movement:
walk: 9 walk: 9
senses: senses:
blindsight: 9 blindsight: 9
customBlindSight: "9 m ou 3 m s'il est assourdi (aveugle au-delà de cette distance)"
customPassivePerception: 12
conditionImmunities: conditionImmunities:
- "aveugle" - "aveugle"
languages: languages: