mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* 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.
13 lines
415 B
Python
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_)
|