diff options
Diffstat (limited to 'behaviors')
-rw-r--r-- | behaviors/ColorChangerBehavior.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/behaviors/ColorChangerBehavior.py b/behaviors/ColorChangerBehavior.py index ca80eb4..12ef6f4 100644 --- a/behaviors/ColorChangerBehavior.py +++ b/behaviors/ColorChangerBehavior.py @@ -7,8 +7,8 @@ class ColorChangerBehavior(Behavior): for sensory in sensorInputs: newDict = dict(sensory) #don't run into shallow copy issues if self['ColorList'] != None: - newDict['Color'] = Util.randomColor(self['ColorList']) + newDict['Color'] = Util.chooseRandomColor(self['ColorList']) else: - newDict['Color'] = Util.chooseRandomColor() + newDict['Color'] = Util.randomColor() ret.append(newDict) return ret |