mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-10-31 05:24:20 +00:00 
			
		
		
		
	correction de coquilles et prise en compte des bonus de compétences personnalisés pour les monstres (type gobelins blancs)
This commit is contained in:
		
							parent
							
								
									f111c11b21
								
							
						
					
					
						commit
						7e9b61f79c
					
				
					 4 changed files with 28 additions and 21 deletions
				
			
		|  | @ -197,7 +197,7 @@ export default { | |||
|         } else if (this.monsterStats.size) { | ||||
|           hitDieSize = stats.sizes[this.monsterStats.size].hitDie | ||||
|         } | ||||
|         let hitPointsBonus = 1 | ||||
|         let hitPointsBonus = 0 | ||||
|         if (this.monsterStats.hitDiceCount > 1) { | ||||
|           hitPointsBonus = Math.floor(this.monsterStats.hitDiceCount / 2) | ||||
|         } | ||||
|  | @ -251,7 +251,12 @@ export default { | |||
|     }, | ||||
| 
 | ||||
|     displaySkillBonus (skill) { | ||||
|       console.log(skill) | ||||
|       let result = stats.skills[skill.name].label | ||||
|       if (skill.invalid) { | ||||
|         result += ' ' + displayBonus(skill.value) | ||||
|         return result | ||||
|       } | ||||
|       let bonus = getModifier(this.monsterStats.abilityScores[stats.skills[skill.name].ability]) + this.proficiencyBonus | ||||
|       if (skill.isExpert) { | ||||
|         bonus += this.proficiencyBonus // Bonus de maître doublé pour les experts | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maxime Moraine
						Maxime Moraine