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:
@@ -6,6 +6,12 @@
|
||||
<PropertyColumn Property="x => x.Range" Title="Range"/>
|
||||
<PropertyColumn Property="x => x.Damage" Title="Damage"/>
|
||||
<PropertyColumn Property="x => x.AttacksPerSecond" Title="Attacks Per Second"/>
|
||||
<PropertyColumn Property="x => x.DamagePerSecond()" Title="DPS"/>
|
||||
<PropertyColumn Property="x => x.DamagePerSecondLight()" Title="DPS (Light)"/>
|
||||
<PropertyColumn Property="x => x.DamagePerSecondMedium()" Title="DPS (Medium)"/>
|
||||
<PropertyColumn Property="x => x.DamagePerSecondHeavy()" Title="DPS (Heavy)"/>
|
||||
|
||||
|
||||
<PropertyColumn Property="x => x.Parent.GetName()" Title="Owner Name"/>
|
||||
|
||||
<PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/>
|
||||
|
||||
Reference in New Issue
Block a user