fix formatting of sleeve task description

This commit is contained in:
Olivier Gagnon 2021-09-10 12:20:24 -04:00
parent dc890a908b
commit 9df926427b
3 changed files with 23 additions and 12 deletions

File diff suppressed because one or more lines are too long

14
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

@ -26,6 +26,7 @@ import { StatsElement } from "../ui/StatsElement";
import { MoreStatsContent } from "../ui/MoreStatsContent";
import { MoreEarningsContent } from "../ui/MoreEarningsContent";
import { TaskSelector } from "../ui/TaskSelector";
import { FactionWorkType } from "../../../Faction/FactionWorkTypeEnum";
interface IProps {
player: IPlayer;
@ -100,15 +101,25 @@ export function SleeveElem(props: IProps): React.ReactElement {
desc = <>This sleeve is currently idle</>;
break;
case SleeveTaskType.Company:
desc = <>This sleeve is currently working your job at ${props.sleeve.currentTaskLocation}.</>;
desc = <>This sleeve is currently working your job at {props.sleeve.currentTaskLocation}.</>;
break;
case SleeveTaskType.Faction:
case SleeveTaskType.Faction: {
let doing = "nothing";
switch (props.sleeve.factionWorkType) {
case FactionWorkType.Field:
doing = "Field work";
case FactionWorkType.Hacking:
doing = "Hacking contracts";
case FactionWorkType.Security:
doing = "Security work";
}
desc = (
<>
This sleeve is currently doing ${props.sleeve.factionWorkType} for ${props.sleeve.currentTaskLocation}.
This sleeve is currently doing {doing} for {props.sleeve.currentTaskLocation}.
</>
);
break;
}
case SleeveTaskType.Crime:
desc = (
<>