From 5491598dfc6a653144b766f4a826ef5add013e5b Mon Sep 17 00:00:00 2001 From: Mitja Belak Date: Sat, 26 Oct 2024 15:21:27 +0200 Subject: [PATCH] Prices in client now reflect those in contract, per second only shows on hover --- app/src/components/Army.tsx | 12 ++++++------ app/src/styles/Army.module.css | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/src/components/Army.tsx b/app/src/components/Army.tsx index cc12d55..5d3106f 100644 --- a/app/src/components/Army.tsx +++ b/app/src/components/Army.tsx @@ -62,15 +62,15 @@ const defaultAvailabilityMap: Record = { const unitDiscoveredAt: Record = { 0: BigInt(0), - 1: BigInt(2_000_0000), - 2: BigInt(2_000_000_0000), - 3: BigInt(200_000_000_0000) + 1: BigInt(300_0000), + 2: BigInt(2800_0000), + 3: BigInt(24000_0000) } const unitAvailableToDiscoverAt: Record = { 0: BigInt(0), - 1: BigInt(1_000_0000), - 2: BigInt(1_000_000_0000), - 3: BigInt(100_000_000_0000), + 1: BigInt(200_0000), + 2: BigInt(2000_0000), + 3: BigInt(25000_0000), } interface UnitProps { diff --git a/app/src/styles/Army.module.css b/app/src/styles/Army.module.css index 8e97598..0bfddc5 100644 --- a/app/src/styles/Army.module.css +++ b/app/src/styles/Army.module.css @@ -145,6 +145,11 @@ filter: sepia(1); pointer-events: none; } + &:hover { + .unitProfit { + display: block; + } + } } .uiElement { position: absolute; @@ -173,6 +178,7 @@ left: 0; right: 0; bottom: 5px; + display: none; } .static { width: 110px;