mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 18:47:16 +01:00
Clean up some of the methods on the script parent system. I have no idea why I was being silly and passing things around through dictionaries. Yick. Also added a at_player_creation method to basicplayer.py that is triggered after player objects are created and ready to go, but before they are logged in.
This commit is contained in:
parent
4af854271a
commit
b3c386a2c3
5 changed files with 43 additions and 42 deletions
|
|
@ -180,9 +180,7 @@ def match_exits(command):
|
|||
# it's not traversible.
|
||||
if targ_exit.get_home():
|
||||
# SCRIPT: See if the player can traverse the exit
|
||||
if not targ_exit.scriptlink.default_lock({
|
||||
"pobject": source_object
|
||||
}):
|
||||
if not targ_exit.scriptlink.default_lock(source_object):
|
||||
source_object.emit_to("You can't traverse that exit.")
|
||||
else:
|
||||
source_object.move_to(targ_exit.get_home())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue