bitburner-src/src/PersonObjects/Sleeve/ui/MoreEarningsContent.tsx

56 lines
2.5 KiB
TypeScript
Raw Normal View History

2021-03-16 10:42:12 +01:00
import { Sleeve } from "../Sleeve";
import { numeralWrapper } from "../../../ui/numeralFormat";
import { Money } from "../../../ui/React/Money";
2021-03-16 10:42:12 +01:00
import * as React from "react";
import { StatsTable } from "../../../ui/React/StatsTable";
2021-09-09 22:04:36 +02:00
interface IProps {
sleeve: Sleeve;
}
export function MoreEarningsContent(props: IProps): React.ReactElement {
2021-09-05 01:09:30 +02:00
return (
<>
2021-09-18 19:29:01 +02:00
<StatsTable
rows={[
2021-09-09 22:04:36 +02:00
["Money ", <Money money={props.sleeve.earningsForTask.money} />],
["Hacking Exp ", numeralWrapper.formatExp(props.sleeve.earningsForTask.hack)],
["Strength Exp ", numeralWrapper.formatExp(props.sleeve.earningsForTask.str)],
["Defense Exp ", numeralWrapper.formatExp(props.sleeve.earningsForTask.def)],
["Dexterity Exp ", numeralWrapper.formatExp(props.sleeve.earningsForTask.dex)],
["Agility Exp ", numeralWrapper.formatExp(props.sleeve.earningsForTask.agi)],
["Charisma Exp ", numeralWrapper.formatExp(props.sleeve.earningsForTask.cha)],
2021-09-18 19:29:01 +02:00
]}
title="Earnings for Current Task:"
/>
2021-09-05 01:09:30 +02:00
<br />
2021-09-18 19:29:01 +02:00
<StatsTable
rows={[
2021-09-09 22:04:36 +02:00
["Money: ", <Money money={props.sleeve.earningsForPlayer.money} />],
["Hacking Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForPlayer.hack)],
["Strength Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForPlayer.str)],
["Defense Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForPlayer.def)],
["Dexterity Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForPlayer.dex)],
["Agility Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForPlayer.agi)],
["Charisma Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForPlayer.cha)],
2021-09-18 19:29:01 +02:00
]}
title="Total Earnings for Host Consciousness:"
/>
2021-09-05 01:09:30 +02:00
<br />
2021-09-18 19:29:01 +02:00
<StatsTable
rows={[
2021-09-09 22:04:36 +02:00
["Money: ", <Money money={props.sleeve.earningsForSleeves.money} />],
["Hacking Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForSleeves.hack)],
["Strength Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForSleeves.str)],
["Defense Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForSleeves.def)],
["Dexterity Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForSleeves.dex)],
["Agility Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForSleeves.agi)],
["Charisma Exp: ", numeralWrapper.formatExp(props.sleeve.earningsForSleeves.cha)],
2021-09-18 19:29:01 +02:00
]}
title="Total Earnings for Other Sleeves:"
/>
2021-09-05 01:09:30 +02:00
<br />
</>
);
}