diff --git a/modules/__pycache__/bake.cpython-36.pyc b/modules/__pycache__/bake.cpython-36.pyc index 7679c6a..40a79cc 100644 Binary files a/modules/__pycache__/bake.cpython-36.pyc and b/modules/__pycache__/bake.cpython-36.pyc differ diff --git a/modules/bake.py b/modules/bake.py index b8b2e6f..a399ba3 100644 --- a/modules/bake.py +++ b/modules/bake.py @@ -34,13 +34,14 @@ async def bake(self, c, n, m): inv.delete(id=its['id']) # oooo randomize what will pop out - value += random.uniform(-15, 15) + value += random.uniform(-20, 20) # choose the output while value not in list(self.bakedPrice.keys()): value = int(value - 1) if value < 0: - value = 0 + await self.message(c, 'you notice some smoke, shouldint have put that {} in the oven!'.format(m)) + return newitem = self.bakedPrice[value] @@ -56,7 +57,7 @@ async def invsee(self, c, n, m): if len(it) < 1: await self.message(c, 'you look through your kitchen and see nothing') else: - await self.message(c, 'you look through your kitchen and see {}'.format(' '.join(it))) + await self.message(c, 'you look through your kitchen and see {}, with a combined value of ${}'.format(' '.join(it), sum([self.bakedGoods[i] for i in it])/10)) async def init(self): self.db = dataset.connect('sqlite:///database.db')