Add DPS calculations and columns to WeaponTable

Introduced new methods in `EntityWeaponModel` to calculate DPS for normal, light, medium, and heavy damage types. Updated `WeaponTable.razor` to display these new DPS values as additional columns for better weapon performance insights. Also fixed missing initialization of the base `Damage` property in test data.
This commit is contained in:
Jonathan
2025-04-27 20:57:01 -04:00
parent b653a00238
commit 764192891c
3 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -1376,7 +1376,7 @@ public class DATA
.AddPart(new EntityMovementModel { Speed = 532, Movement = MovementType.Air })
.AddPart(new EntityWeaponModel
{
LightDamage = 100, MediumDamage = 130, HeavyDamage = 160, Range = 20, AttacksPerSecond = 1,
Damage = 100, LightDamage = 100, MediumDamage = 130, HeavyDamage = 160, Range = 20, AttacksPerSecond = 1,
Targets =
TargetType.Air
})