SS1984 - Modules - TypesProc Details

internal

A storage item intended to be used by other items to provide storage functionality. Types that use this should consider overriding emp_act() and hear_talk(), unless they shield their contents somehow.

Procs

handle_attack_handItems that use internal storage have the option of calling this to emulate default storage attack_hand behaviour. Returns FALSE if the master item's parent's attack_hand() should be called, TRUE otherwise. It's strange, but no other way of doing it without the ability to call another proc's parent, really.
handle_mousedropHelper procs to cleanly implement internal storages - storage items that provide inventory slots for other items. These procs are completely optional, it is up to the master item to decide when it's storage get's opened by calling open() However they are helpful for allowing the master item to pretend it is a storage item itself. If you are using these you will probably want to override attackby() as well. See /obj/item/clothing/suit/storage for an example. Items that use internal storage have the option of calling this to emulate default storage MouseDrop behaviour. Returns FALSE if the master item's parent's MouseDrop() should be called, TRUE otherwise. It's strange, but no other way of doing it without the ability to call another proc's parent, really.

Proc Details

handle_attack_hand

Items that use internal storage have the option of calling this to emulate default storage attack_hand behaviour. Returns FALSE if the master item's parent's attack_hand() should be called, TRUE otherwise. It's strange, but no other way of doing it without the ability to call another proc's parent, really.

handle_mousedrop

Helper procs to cleanly implement internal storages - storage items that provide inventory slots for other items. These procs are completely optional, it is up to the master item to decide when it's storage get's opened by calling open() However they are helpful for allowing the master item to pretend it is a storage item itself. If you are using these you will probably want to override attackby() as well. See /obj/item/clothing/suit/storage for an example. Items that use internal storage have the option of calling this to emulate default storage MouseDrop behaviour. Returns FALSE if the master item's parent's MouseDrop() should be called, TRUE otherwise. It's strange, but no other way of doing it without the ability to call another proc's parent, really.