Search found 2 matches

by Mr Peanutbutter
Thu Nov 01, 2018 4:56 pm
Forum: Ren'Py Cookbook
Topic: Infinite, Stackable Inventory/Crafting/Vendor - UPDATED v1.5
Replies: 71
Views: 26888

Re: Infinite, Stackable Inventory/Crafting/Vendor - UPDATED v1.5

also I think "check recipe" would be more clearer and faster like this:

Code: Select all

        
        def check_recipe(self, item): # verify all ingredients are in inv
            for i in item.recipe:
                if self.qty(i[0]) < i[1]:
                    return False
            return True
by Mr Peanutbutter
Thu Nov 01, 2018 4:52 pm
Forum: Ren'Py Cookbook
Topic: Infinite, Stackable Inventory/Crafting/Vendor - UPDATED v1.5
Replies: 71
Views: 26888

Re: Infinite, Stackable Inventory/Crafting/Vendor - UPDATED v1.5

Thanks for the great code. I am having an issue and not sure why I am having this issue and not other people. The problem is when I save the inventory, when I reload it the "==" operate gives false for the same item. So for the recipe checks it fails even if I have the right items in the inventory. ...