Show right values for Weapons

This commit is contained in:
2025-12-19 17:29:12 +01:00
parent fbaa8e2dcc
commit 165f55f891
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ func mapAttributes(char *models.Char) AttributeValues {
func mapDerivedValues(char *models.Char) DerivedValueSet {
// Get attributes for bonus calculations
attrs := mapAttributes(char)
return DerivedValueSet{
LPMax: char.Lp.Max,
LPAktuell: char.Lp.Value,
@@ -151,7 +151,7 @@ func mapWeapons(char *models.Char) []WeaponViewModel {
if equippedWeapon, exists := equippedWeapons[weaponSkill.Name]; exists {
// EW = skill + character attack bonus + weapon attack bonus
vm.Value += angriffsBonus + equippedWeapon.Anb
// TODO: Calculate damage including weapon and character bonuses
// TODO: Add range information for ranged weapons
} else {