mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: penetration listing
This commit is contained in:
1 parent
a70100c835
commit
efd1a80ee1
1 file changed
+7
-2
@@ -21,6 +21,7 @@ import { debounce } from 'lodash';
|
|||||||
import { Dispatch, SetStateAction, use, useRef, useState } from 'react';
|
import { Dispatch, SetStateAction, use, useRef, useState } from 'react';
|
||||||
import { ModuleButton } from '../../../../../../components/ModuleButton';
|
import { ModuleButton } from '../../../../../../components/ModuleButton';
|
||||||
import { SmallTankIcon } from '../../../../../../components/SmallTankIcon';
|
import { SmallTankIcon } from '../../../../../../components/SmallTankIcon';
|
||||||
|
import { resolveNearPenetration } from '../../../../../../core/blitz/resolveNearPenetration';
|
||||||
import {
|
import {
|
||||||
SHELL_NAMES,
|
SHELL_NAMES,
|
||||||
tankNamesDiacritics,
|
tankNamesDiacritics,
|
||||||
@@ -230,8 +231,12 @@ export function AntagonistBar({
|
|||||||
<ul>
|
<ul>
|
||||||
{antagonist.gun.shells.map((shell) => (
|
{antagonist.gun.shells.map((shell) => (
|
||||||
<li key={shell.id}>
|
<li key={shell.id}>
|
||||||
{SHELL_NAMES[shell.type]}:
|
{SHELL_NAMES[shell.type]}:{' '}
|
||||||
<b>{shell.damage.armor} HP</b>
|
<b>
|
||||||
|
{resolveNearPenetration(shell.penetration)}
|
||||||
|
mm
|
||||||
|
</b>
|
||||||
|
, {shell.damage.armor}HP
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in new issue
Block a user