cyphesis/rulesets/deeds/world/objects/tools/Scythe.py
Erik Ogenvik 2dca4949ed Created "deeds" ruleset and made it default.
It's currently a copy of the Mason ruleset.
Where Mason focuses on letting the users create the world themselves,
Deeds instead focuses on allowing world authors to set up enticing
worlds with gameplay and stories. In contrast to Mason there are more
features available to the world authors which allow for automatic
creation of entities and so on.
2013-11-15 21:14:47 +01:00

14 lines
518 B
Python

#This file is distributed under the terms of the GNU General Public license.
#Copyright (C) 1999 Aloril (See the file COPYING for details).
#Copyright (C) 2004 Al Riddoch (See the file COPYING for details).
from atlas import *
import server
class Scythe(server.Thing):
"""This is a scythe for light cutting vegetation"""
def cut_operation(self, op):
ent=Entity(self.id,status=self.status-0.01)
to_ = op[0].id
return Oplist(Operation("set",ent,to=self),Operation("mow",op[0],to=to_))