import type { Playbill, Species } from "@proscenium/playbill"; import { Section } from "./base/section"; import { AbilityCard } from "./ability"; import { HTML } from "./base/html"; interface SpeciesSectionProps { species: Species; playbill: Playbill; } export function SpeciesSection({ species, playbill }: SpeciesSectionProps) { const hpString = species.hp >= 0 ? `+${species.hp}` : `-${species.hp}`; const apString = species.ap >= 0 ? `+${species.ap}` : `-${species.ap}`; const epString = species.ep >= 0 ? `+${species.ep}` : `-${species.ep}`; const hasAbilities = species.abilities.length > 0; const abilitySection = hasAbilities ? (
{hpString}
{apString}
{epString}
{species.muscle}
{species.focus}
{species.knowledge}
{species.charm}
{species.cunning}
{species.spark}