Fix the seer stone
This commit is contained in:
parent
b1a9f69275
commit
5eac299d4c
1 changed files with 9 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ from evennia.scripts.scripts import DefaultScript
|
|||
from evennia.prototypes.spawner import spawn
|
||||
from evennia.utils import logger
|
||||
|
||||
from .characters import Character
|
||||
|
||||
class Script(DefaultScript):
|
||||
"""
|
||||
|
|
@ -115,10 +116,17 @@ class KnockScript(Script):
|
|||
if room:
|
||||
room.msg_contents("Someone is knocking on the door...")
|
||||
|
||||
god = knocker.global_search("#1")
|
||||
god = knocker.search("#1", quiet=True, global_search=True)
|
||||
if god:
|
||||
god.msg(f"With your seer stone, you see the knocker is {knocker.key}.")
|
||||
|
||||
gnome = knocker.search("Dabbler", quiet=True,
|
||||
global_search=True)
|
||||
if isinstance(gnome, list):
|
||||
gnome = gnome[0]
|
||||
if gnome:
|
||||
gnome.msg(f"With your seer stone, you see the knocker is {knocker.key}, {knocker.db._sdesc}.")
|
||||
|
||||
def at_repeat(self, **kwargs):
|
||||
waker = self.attributes.get("waker")
|
||||
if waker:
|
||||
|
|
|
|||
Loading…
Reference in a new issue