fix: change the randomseed before each battle

Fix #42
This commit is contained in:
Kazhnuz 2020-08-22 23:17:25 +02:00
parent 5d90ead710
commit 9326a5dc91

View file

@ -28,6 +28,9 @@ function TurnController:new(scene, battleData)
self.player = Player(self)
self.ennemies = Ennemy(self, battleData)
-- Change the seed at the start of each battle
math.randomseed( os.time() )
end
function TurnController:startBattle()