1
0
forked from mico/idle_moloch

Prices in client now reflect those in contract, per second only shows on hover

This commit is contained in:
mic0 2024-10-26 15:21:27 +02:00
parent 5bb2b5f97b
commit 5491598dfc
Signed by: mico
GPG Key ID: A3F8023524CF1C8D
2 changed files with 12 additions and 6 deletions

View File

@ -62,15 +62,15 @@ const defaultAvailabilityMap: Record<UnitType, boolean> = {
const unitDiscoveredAt: Record<UnitType, bigint> = {
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<UnitType, bigint> = {
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 {

View File

@ -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;