3 Commits

Author SHA1 Message Date
99bc7a319f Merge feature/api
* Added backend capabilities with SQLite3
* Added routes for Next.js backend
2023-03-19 10:21:19 +07:00
Emil Nielsen
7098346b51 Fix some legacy issues in the resourceStore 2023-03-19 10:13:40 +07:00
Emil Andreas Nielsen
801532759d
Feature/resource yields (#3)
* Add  handleSetUpgrade function and other related stuff

* Fix select drill to upgrade

* Small refactor - apply drill on upgrade

* Refactor types - WIP

* Add handleBuy function, sort storeItems by owned

* Add tiers to storeItems

* Show equipment on moon, add radiobutton to select

* Modify types

* Cleanup some code and comments  etc.

* Add claim function to increment user balance and decrement well

* Add API to get data

* Set inventoryItem and activeTier in state

* Update stakingSource whenever inventoryItems are updated

* Disable upgrade button when mining is active

* Add initial implementation of lightbox

---------

Co-authored-by: Nico Li <nilindenau@gmail.com>
2023-02-24 13:37:07 +07:00