mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 17:56:32 +01:00
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(
|
||||
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.interval if script.interval > 0 else "--",
|
||||
nextrep,
|
||||
|
|
|
|||
|
|
@ -1123,7 +1123,7 @@ class TestBuilding(CommandTest):
|
|||
"= Obj",
|
||||
"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(
|
||||
building.CmdScript(), "/start Obj", "0 scripts started on Obj"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue