Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Traceback (most recent call last):
- File "d:\muddev\evennia\evennia\commands\cmdhandler.py", line 644, in _run_command
- ret = cmd.func()
- File ".\commands\command.py", line 942, in func
- if i.tags.has('merchant'):
- AttributeError: 'TagHandler' object has no attribute 'has'
- An untrapped error occurred.
- (Traceback was logged 20-11-30 04:03:59-05).
- """
- # https://www.evennia.com/docs/latest/api/evennia.typeclasses.tags.html?highlight=taghandler#evennia.typeclasses.tags.TagHandler.has
- class CmdStock(Command):
- key = 'stock'
- def func(self):
- room_contents = self.caller.location.contents
- for i in room_contents:
- if i.tags.has('merchant'):
- self.caller.msg(i.return_stock())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement