PennMUSH Community

Ticket #7510 (closed suggested feature: fixed)

Opened 8 months ago

Last modified 8 months ago

Extend controls() to take an <attribute>

Reported by: Talvo Assigned to:
Priority: minor Milestone: 1.8.3p7
Keywords: Cc:
Visibility: Public

Description

The patch below extends controls(), giving it the syntax controls(object,victim/attribute), which returns 1 if object could set (or edit) victim/attribute, and 0 if they couldn't, for any reason (no perms, safe, locked, too many attrs, etc). That would let softcoded globals for building, desc changers, etc, see if the player can set the attribute without having to try it with objeval() and check the modification time to see if it worked.

Attachments

controls-attr.patch.txt (4.2 kB) - added by Talvo on 12/16/07 15:49:28.

Change History

12/16/07 15:49:28 changed by Talvo

  • attachment controls-attr.patch.txt added.

01/06/08 02:20:16 changed by raevnos

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.8.3p7.