Merge pull request #3786 from Problematic/patch-1

Update Locks.md
This commit is contained in:
Griatch 2025-04-26 13:02:06 +02:00 committed by GitHub
commit a00a7503fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,6 +182,9 @@ Some useful default lockfuncs (see `src/locks/lockfuncs.py` for more):
- `attr(attrname, value)` - checks so an attribute exists on accessing_object *and* has the given value.
- `attr_gt(attrname, value)` - checks so accessing_object has a value larger (`>`) than the given value.
- `attr_ge, attr_lt, attr_le, attr_ne` - corresponding for `>=`, `<`, `<=` and `!=`.
- `tag(tagkey[, category])` - checks if the accessing_object has the specified tag and optional category.
- `objtag(tagkey[, category])` - checks if the *accessed_object* has the specified tag and optional category.
- `objloctag(tagkey[, category])` - checks if the *accessed_obj*'s location has the specified tag and optional category.
- `holds(objid)` - checks so the accessing objects contains an object of given name or dbref.
- `inside()` - checks so the accessing object is inside the accessed object (the inverse of `holds()`).
- `pperm(perm)`, `pid(num)/pdbref(num)` - same as `perm`, `id/dbref` but always looks for permissions and dbrefs of *Accounts*, not on Characters.