fixed guns counting as 10 capacity instead of 5

This commit is contained in:
Rudis Muiznieks 2022-06-19 22:29:44 -05:00
parent b36a4af4ef
commit b9bba1447f
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
3 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 744 B

After

Width:  |  Height:  |  Size: 950 B

View File

@ -151,8 +151,8 @@ void loop() {
Sprites::drawOverwrite(98, 0, spriteWeed, 0); Sprites::drawOverwrite(98, 0, spriteWeed, 0);
arduboy.setCursor(42, 15); arduboy.setCursor(42, 15);
arduboy.print(F("Slangin'")); arduboy.print(F("Slangin'"));
font3x5.setCursor(113, 58); font3x5.setCursor(103, 58);
font3x5.print(F("v1.0")); font3x5.print(F("v1.0.1"));
menu[0] = F("Hit the Streets!!"); menu[0] = F("Hit the Streets!!");
menuLength = 1; menuLength = 1;
menuSmall = false; menuSmall = false;

View File

@ -429,7 +429,7 @@ int playerCapacityRemaining() {
for (int i = 0; i < 6; i++) { for (int i = 0; i < 6; i++) {
qty += pInventory[i]; qty += pInventory[i];
} }
qty += pGuns * 5; //qty += pGuns * 5; // already accounted for
return pCapacity - qty; return pCapacity - qty;
} }