Add script.obj.dbref to scripts output. Resolves #2167
This commit is contained in:
parent
e58147a7e5
commit
54e70a40b7
2 changed files with 2 additions and 2 deletions
|
|
@ -446,7 +446,7 @@ def format_script_list(scripts):
|
||||||
|
|
||||||
table.add_row(
|
table.add_row(
|
||||||
script.id,
|
script.id,
|
||||||
script.obj.key if (hasattr(script, "obj") and script.obj) else "<Global>",
|
f"{script.obj.key}({script.obj.dbref})" if (hasattr(script, "obj") and script.obj) else "<Global>",
|
||||||
script.key,
|
script.key,
|
||||||
script.interval if script.interval > 0 else "--",
|
script.interval if script.interval > 0 else "--",
|
||||||
nextrep,
|
nextrep,
|
||||||
|
|
|
||||||
|
|
@ -1123,7 +1123,7 @@ class TestBuilding(CommandTest):
|
||||||
"= Obj",
|
"= Obj",
|
||||||
"To create a global script you need scripts/add <typeclass>.",
|
"To create a global script you need scripts/add <typeclass>.",
|
||||||
)
|
)
|
||||||
self.call(building.CmdScript(), "Obj = ", "dbref obj")
|
self.call(building.CmdScript(), "Obj = ", "dbref obj")
|
||||||
|
|
||||||
self.call(
|
self.call(
|
||||||
building.CmdScript(), "/start Obj", "0 scripts started on Obj"
|
building.CmdScript(), "/start Obj", "0 scripts started on Obj"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue