feat(statistics): show alpha strike damage and with(out)-reload DPS (#73)

This commit is contained in:
Patric Stout
2024-03-05 22:45:18 +01:00
committed by GitHub
parent 0e519bd03a
commit 9bb14f5a2f
4 changed files with 29 additions and 5 deletions

View File

@@ -63,7 +63,7 @@
"typescript-plugin-css-modules": "^5.0.2"
},
"peerDependencies": {
"@eveshipfit/dogma-engine": "^2.6.0",
"@eveshipfit/dogma-engine": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},

View File

@@ -7,6 +7,8 @@ const iconMapping = {
"armor-hp": "texture/classes/fitting/statsicons/armorhp.png",
"armor-repair-rate": "texture/classes/fitting/statsicons/armorrepairrate.png",
"cargo-hold": "texture/windowicons/ships.png",
"damage-alpha": "texture/classes/fitting/statsicons/alphastrike.png",
"damage-dps": "texture/classes/fitting/statsicons/turretdps.png",
"drone-bay": "texture/windowicons/dronebay.png",
"em-resistance": "texture/classes/fitting/statsicons/emresistance.png",
"explosive-resistance": "texture/classes/fitting/statsicons/explosiveresistance.png",

View File

@@ -67,10 +67,32 @@ export const ShipStatistics = () => {
</CategoryLine>
</Category>
<Category headerLabel="Offense" headerContent={<span>? dps</span>}>
<Category
headerLabel="Offense"
headerContent={
<span>
<ShipAttribute name="damageWithoutReloadDps" fixed={1} /> dps
</span>
}
>
<CategoryLine>
<span>? dps</span>
<span>? HP</span>
<span title="Damage Per Second" className={styles.statistic}>
<span>
<Icon name="damage-dps" size={24} />
</span>
<span>
<ShipAttribute name="damageWithoutReloadDps" fixed={1} /> dps (
<ShipAttribute name="damageWithReloadDps" fixed={1} /> dps)
</span>
</span>
<span title="Alpha Strike" className={styles.statistic}>
<span>
<Icon name="damage-alpha" size={24} />
</span>
<span>
<ShipAttribute name="damageAlphaHp" fixed={0} /> HP
</span>
</span>
</CategoryLine>
</Category>

View File

@@ -1 +1 @@
export const defaultDataUrl = "https://data.eveship.fit/v7.2-20240227/";
export const defaultDataUrl = "https://data.eveship.fit/v8.0-20240227/";