BibliothecaDAO / eternum

onchain eternal game
https://eternum.realms.world
MIT License
48 stars 37 forks source link

[Client] - Tick to update ressources and time left is not consistent #1669

Closed bal7hazar closed 1 month ago

bal7hazar commented 1 month ago

image

The ressource quantity is updated every second where the remaining time is updated every 10 seconds (block time).

It can be fix to be consistent between the 2 information.

Also, when the resource reaches 0, it optimistically keep decreasing until a new block time is set (every 10 seconds), add a simple condition to check display a positive quantity or zero could fix it.

aymericdelab commented 1 month ago

i think this is because the left one is using date.time() and the right one is using nextblocktimestamp (every 10 sec)

edisontim commented 1 month ago

Closing as we're only displaying days, hours, minutes now