-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account for Burger Master reward in inventory upgrade cost #395
Comments
This is the root of the logic that would need to be revisited to achieve this: Lines 1141 to 1153 in 0763ad8
This would need to account for the whether the "Burger Master" achievement has been completed: farmhand/src/data/achievements.js Lines 257 to 267 in 0763ad8
Here's where farmhand/src/components/Shop/Shop.js Line 73 in 0763ad8
The farmhand/src/components/Item/Item.js Lines 86 to 87 in 0763ad8
|
an alternate solution to checking for the achievement in this method could be to switch from calculating the cost based on storage size to actually tracking the number of storage upgrades that have been purchased and using that number to calculate the cost of the next one. this would keep us from having to update this method for any future inventory space rewards we add. one complication to this approach is that something would need added to initialize this value in existing game saves based on inventory size and if they had completed the burger achievement already or not. i think it would be worth the effort though to do this. |
From @M8theone on Discord:
Further clarification from @lstebner:
The text was updated successfully, but these errors were encountered: