cyphesis/rulesets/mason/world/objects/tools/Axe.py
2018-05-07 11:15:26 +02:00

13 lines
565 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 *
class Axe(server.Thing):
"""This is base class for axes, this one just ordinary axe"""
def cut_operation(self, op):
print("Axe.cut_operation() Don't call this.")
ent=Entity(self.id,status=self.status-0.01)
to_ = op[0].id
return Oplist(Operation("set",ent,to=self),Operation("chop",op[0],to=to_))