def stock( self, hoard_rank=3, item_types=items.PREMIUM_TYPES ): self.gold,hoard = items.generate_hoard(hoard_rank,self.HOARD_AMOUNT,item_types) self.contents += hoard if random.randint(1,500) < self.HOARD_AMOUNT: self.trap = traps.choose_trap( hoard_rank )
def stock( self, hoard_rank=3, item_types=items.PREMIUM_TYPES ): self.gold,hoard = items.generate_hoard(hoard_rank,self.HOARD_AMOUNT,item_types) self.contents += hoard
def stock( self, hoard_rank=3 ): self.gold,hoard = items.generate_hoard(hoard_rank,self.HOARD_AMOUNT) self.contents += hoard if random.randint(1,500) < self.HOARD_AMOUNT: self.trap = traps.choose_trap( hoard_rank )