Skip to content

Store transactions#39

Merged
JadlionHD merged 11 commits intoStileDevs:mainfrom
ZTance1:store-transactions
Mar 6, 2025
Merged

Store transactions#39
JadlionHD merged 11 commits intoStileDevs:mainfrom
ZTance1:store-transactions

Conversation

@ZTance1
Copy link
Copy Markdown
Contributor

@ZTance1 ZTance1 commented Mar 5, 2025

This PR adds ability to buy items from the store.

  • For some items that are not having their own ids (like inventory expansion) needs different purchase implementation
  • Need to calculate if there's a room left to buy an item
  • Add more items into the store
  • Add item description after purchasing it
2025-03-05.04-22-29.mp4

ZTance1 and others added 9 commits March 2, 2025 12:03
Add block and seed randomization. Misses rgt drop randomization
calculations depending on rarity and something else
This commit adds seed splicing. Some bugs need to be fixed:
- Can splice with an already grown tree
- When placing seed on the foreground block (not trees), it removes from the inventory
It fixes blank collecting from the ground, but I guess blank will lie and fill the database. If i will try to drop -1 id instead of 0 it will throw an error. returning nothing or undefined not helping unless you can fix it
Gems are now drop depending on rarity + bonus to the gems.
Thanks to Kukuri for the code. Also took some from here 91efb07
Now chandeliers can be placed (it doesn't toggle on punch, needs to be fixed)
This commit adds ability to buy items from the store.
- For some items that are not  having their own ids (like inventory expansion) needs different purchase implementation
- Need to calculate if there's a room left to buy an item
@JadlionHD
Copy link
Copy Markdown
Member

Well done!

@JadlionHD JadlionHD merged commit 9d67dd8 into StileDevs:main Mar 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants