Decided that a Fireplace that is both a Pet and a Lightsource doesn't get saved into the database. Might be a bug, but in the meantime, Dabbler's house will softly be lit.
24 lines
456 B
Python
Executable file
24 lines
456 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
from commands.command import Command
|
|
from evennia import CmdSet
|
|
|
|
class CmdFeed(Command):
|
|
"""
|
|
Feed or give.
|
|
"""
|
|
key = "feed"
|
|
aliases = ["give"]
|
|
|
|
def func(self):
|
|
args = self.args.strip()
|
|
if not args:
|
|
self.caller.msg("Feed what?")
|
|
return
|
|
|
|
self.obj.feed(self.caller, self.args)
|
|
|
|
class CmdFeedSet(CmdSet):
|
|
def at_cmdset_creation(self):
|
|
self.add(CmdFeed)
|