Android build v1.1.15
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import type { Iwt2BossEntityState } from '../sim'
|
||||
import { ArenaBar } from './ArenaBars'
|
||||
import { IWT2_BOSS_METADATA } from '../content/bosses'
|
||||
|
||||
export function BossHud({ boss }: { boss: Iwt2BossEntityState }) {
|
||||
const metadata = IWT2_BOSS_METADATA[boss.bossId]
|
||||
return (
|
||||
<div className="iwt2-boss-hud">
|
||||
<div>
|
||||
<strong>{metadata.name}</strong>
|
||||
<small>{Math.ceil(boss.health)} / {boss.maxHealth} HP</small>
|
||||
</div>
|
||||
<small className="iwt2-boss-phase">{boss.attackPhase}</small>
|
||||
<ArenaBar className="boss" current={boss.health} max={boss.maxHealth} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user