Implement resident shop

This commit is contained in:
Melledy
2025-11-07 21:06:16 -08:00
parent 5e8b2cb9cf
commit 7a49282cef
7 changed files with 145 additions and 2 deletions
@@ -594,6 +594,11 @@ public class Inventory extends PlayerManager implements GameDatabaseObject {
change = new PlayerChangeInfo();
}
// Sanity check
if (buyCount <= 0) {
return change;
}
// Make sure we have the currency
int cost = buyCount * currencyCount;