manny405 / sapai

Super auto pets engine built with reinforment learning training in mind
MIT License
67 stars 21 forks source link

Prices in shop doesn't get overridden on re-roll #54

Closed HungryZerg closed 2 years ago

HungryZerg commented 2 years ago

Second assert fails :

def test_squirrel(self):
        player = Player(team=Team([Pet("squirrel")]))
        player.start_turn()
        self.assertEqual(player.shop[3].cost,2)
        player.roll()
        self.assertEqual(player.shop[3].cost,3)

same with the sleeping pill, new item in the same slot after roll is 1 gold cost