Fix wrong argument being passed to method

This commit is contained in:
Michał Czekański 2020-05-24 15:51:15 +02:00
parent 7b6a46188b
commit 2c2d865d7f

View File

@ -56,9 +56,10 @@ class SurvivalDT:
dtFoods[0].distanceFromPlayer, dtWaters[0].distanceFromPlayer, dtFoods[0].distanceFromPlayer, dtWaters[0].distanceFromPlayer,
dtRestPlaces[0].distanceFromPlayer) dtRestPlaces[0].distanceFromPlayer)
treeDecision, choice = self.__pickEntityAfterTreeDecision__(currentSituation, self.entityPickingDecisionTree, treeDecision, choice = self.__pickEntityAfterTreeDecision__(currentSituation,
dtFoods, dtFoods,
dtRestPlaces, dtWaters) dtRestPlaces,
dtWaters)
# If the choice happens to be the same as the last one pick something else. # If the choice happens to be the same as the last one pick something else.
if choice == map.getEntityOnCoord(player.getFacingCoord()): if choice == map.getEntityOnCoord(player.getFacingCoord()):