// Root React Component for the Corporation UI import React from "react"; import { IPlayer } from "../../PersonObjects/IPlayer"; import { numeralWrapper } from "../../ui/numeralFormat"; import { Reputation } from "./Reputation"; interface IProps { player: IPlayer; } export function CharacterOverview(props: IProps): React.ReactElement { const intelligence = (
HP: | {numeralWrapper.formatHp(props.player.hp) + " / " + numeralWrapper.formatHp(props.player.max_hp)} |
Money: | {numeralWrapper.formatMoney(props.player.money.toNumber())} |
Hack: | {numeralWrapper.formatSkill(props.player.hacking_skill)} |
Str: | {numeralWrapper.formatSkill(props.player.strength)} |
Def: | {numeralWrapper.formatSkill(props.player.defense)} |
Dex: | {numeralWrapper.formatSkill(props.player.dexterity)} |
Agi: | {numeralWrapper.formatSkill(props.player.agility)} |
Cha: | {numeralWrapper.formatSkill(props.player.charisma)} |