From 761886a477c4d118a455a04ea260a6c3e9c3e250 Mon Sep 17 00:00:00 2001 From: Derek Stobbe Date: Thu, 10 Apr 2025 12:53:07 -0600 Subject: [PATCH] Update Locks.md Include description of tag lockfuncs --- docs/source/Components/Locks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/source/Components/Locks.md b/docs/source/Components/Locks.md index 1683997158..ab414b4be6 100644 --- a/docs/source/Components/Locks.md +++ b/docs/source/Components/Locks.md @@ -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.