cyphesis/rulesets/basic/world/objects/Pile.py
Hagen Moebius 91f6c59708 2005-06-28 Hagen Moebius <hagen.moebius@starschiffchen.de>
* data/basic.xml: Added operations "disperse" and "extinguish".
   Set up "disperse" as the default operation for the pile.
 * rulesets/basic/world/objects/Pile.py: The operation "disperse"
   will call the "extinguish" operation on the target. Maybe it is
   advisable to add an assertion if the target is indeed a fire.
2005-06-28 22:51:49 +00:00

13 lines
415 B
Python

#This file is distributed under the terms of the GNU General Public license.
#Copyright (C) 2005 Al Riddoch (See the file COPYING for details).
from atlas import *
from world.objects.Thing import Thing
class Pile(Thing):
"""Using a pile to extinguish the fire"""
def disperse_operation(self, op):
to_ = op[0].id
# print "someoperation"
return Operation("extinguish",op[0],to=to_)