Final rework

Last part.
This commit is contained in:
keronshb
2021-05-11 16:52:16 -04:00
parent 57dfe8dc09
commit 4749be2ba8
9 changed files with 40 additions and 6 deletions
@@ -7,7 +7,7 @@ import { Window } from '../layouts';
export const ForbiddenLore = (props, context) => {
const { act, data } = useBackend(context);
const {
charges,
charges, total_sacs
} = data;
const to_know = flow([
sortBy(to_know => to_know.state !== "Research",
@@ -21,6 +21,8 @@ export const ForbiddenLore = (props, context) => {
<Window.Content scrollable>
<Section title="Research Eldritch Knowledge">
Charges left : {charges}
<br />
Completed Sacrifices : {total_sacs}
{to_know!== null ? (
to_know.map(knowledge => (
<Section
@@ -39,7 +41,7 @@ export const ForbiddenLore = (props, context) => {
cost: knowledge.cost,
})} />
{' '}
Cost : {knowledge.cost}
Cost : {knowledge.cost} | Sacrifices Required : {knowledge.sacs}
</Box >
<Box italic my={1}>
{knowledge.flavour}