Fix weapons attack : add level to modifier

This commit is contained in:
Gabriel Augendre 2022-11-02 12:57:03 +01:00
parent b6a01fe895
commit 0b2d0e002b
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -36,3 +36,4 @@ test_reports/
dashboard_templates/backup_*.zip
.hypothesis
.idea/sonarlint/

View file

@ -283,7 +283,7 @@ class Character(models.Model):
Weapon.Category.MELEE: self.modifier_strength,
Weapon.Category.NONE: 0,
}
return modifier_map.get(Weapon.Category(weapon.category), 0)
return modifier_map.get(Weapon.Category(weapon.category), 0) + self.level
def get_capabilities_by_path(self) -> dict[Path, list[Capability]]:
capabilities_by_path = collections.defaultdict(list)