IronWillGames / Dransik

4 stars 0 forks source link

Crafting allows you to exceed maximum inventory #570

Closed hgesler closed 1 year ago

hgesler commented 1 year ago

Testing VIP/Megabackpack limits

  1. Fill player char's containers with max number of objects, including a stack of "Plank" and "Carpenters Tools"
  2. Use the tools on the plank to create a club. At this point I'd expect a warning message about capacity.
  3. Notice that when you succeed the item is placed in backpack and allows you to exceed the limit of items.
hgesler commented 1 year ago

Use CanHold to determine prior to craft and if can't craft, fail before crafting/do not consume, or destroy the output.

davidjreese commented 1 year ago

The design will have to deal with this one... do a CanHold check and if it returns false dont allow the crafting.. It's not pretty as it can probably be held in some edge cases but will cover the 90% calse and prevent over stuffing

Dev-Tyrant commented 1 year ago

Updated Crafting with CanHold checks