mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
14 lines
526 B
Python
14 lines
526 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 Pickaxe(server.Thing):
|
|
"""This is a pickaxe for heavy digging and quarrying """
|
|
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("delve",op[0],to=to_))
|