mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 17:56:32 +01:00
Script methods will now take a dictionary with keys rather than hard arguments. This will hopefully allow for a bit more flexibility.
This commit is contained in:
parent
fadf3933af
commit
be05772713
3 changed files with 40 additions and 20 deletions
|
|
@ -164,7 +164,9 @@ def handle(cdat):
|
|||
cdat['uinput'] = parsed_input
|
||||
|
||||
# SCRIPT: See if the player can traverse the exit
|
||||
if not targ_exit.get_scriptlink().default_lock(pobject):
|
||||
if not targ_exit.get_scriptlink().default_lock({
|
||||
"pobject": pobject
|
||||
}):
|
||||
session.msg("You can't traverse that exit.")
|
||||
else:
|
||||
pobject.move_to(targ_exit.get_home())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue