mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 21:17:17 +02:00
Migrate. Added the "view" access restriction (to make objects invisible). Also changed the input of ObjectDB.objects.object_search() to not require a caller as an argument (this makes it consistent with other search methods). All default systems should have updated to the new call, but if you have custom calls, you need to change them to fit the new syntax (this is only important if explicitly use ObjectDB.objects.object_search; if you just use caller.search you should be fine)
This commit is contained in:
parent
28fe2ad3f4
commit
27809694d7
13 changed files with 267 additions and 34 deletions
|
|
@ -115,8 +115,8 @@ def get_and_merge_cmdsets(caller):
|
|||
location = caller.location
|
||||
if location and not caller_cmdset.no_objs:
|
||||
# Gather all cmdsets stored on objects in the room and
|
||||
# also in the caller's inventory
|
||||
local_objlist = location.contents + caller.contents
|
||||
# also in the caller's inventory and the location itself
|
||||
local_objlist = location.contents + caller.contents + [location]
|
||||
local_objects_cmdsets = [obj.cmdset.current
|
||||
for obj in local_objlist
|
||||
if obj.locks.check(caller, 'call', no_superuser_bypass=True)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue