aboutsummaryrefslogtreecommitdiff
path: root/behaviors
diff options
context:
space:
mode:
Diffstat (limited to 'behaviors')
-rw-r--r--behaviors/DecayBehavior.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/behaviors/DecayBehavior.py b/behaviors/DecayBehavior.py
index f9efa3b..7956cbc 100644
--- a/behaviors/DecayBehavior.py
+++ b/behaviors/DecayBehavior.py
@@ -5,11 +5,10 @@ import pdb
class DecayBehavior(Behavior):
def processResponse(self, sensorInputs, recursiveInputs):
ret = []
- #TODO: move into params
for sensory in sensorInputs:
outDict = {}
outDict[Util.location] = sensory[Util.location]
outDict['PixelEvent'] = \
- DecayEvent.generate('Proportional',100, sensory['Color'])
+ DecayEvent.generate(self['DecayType'],self['Coefficient'], sensory['Color'])
ret.append(outDict)
return ret