mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-04 22:03:56 +01:00
Fix weapons attack : add level to modifier
This commit is contained in:
parent
b6a01fe895
commit
0b2d0e002b
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -36,3 +36,4 @@ test_reports/
|
|||
dashboard_templates/backup_*.zip
|
||||
|
||||
.hypothesis
|
||||
.idea/sonarlint/
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue