moss-n-puddles/commands/take.py
Howard Abrams 245a1bb389 Refactored code
Cleaned up flake8 warnings
2025-03-05 21:54:41 -08:00

23 lines
580 B
Python
Executable file

#!/usr/bin/env python
from commands.command import Command
class CmdTake(Command):
"""
Steals an object from another.
Added to the default_cmdsets.
"""
key = "take"
aliases = ["steal"]
# only allow this command if command.obj is carried by caller.
# locks = "cmd:holds()"
def func(self):
"""
Implements the take command. Since this command is designed
to work on the object, we operate only on self.obj.
"""
# logger.log_info(f"Dealing with {self.caller.key}")
self.caller.do_take(self.args)