sextoy 
Vars | |
| current_equipped_slot | This is to keep track of where we are stored, because sometimes we might want to know that |
|---|---|
| lewd_slot_flags | This is used to decide what lewd slot a toy should be able to be inserted into. The currently accepted defines are all prefixes with LEWD_SLOT_, and there is one for each lewd organ. See code/__DEFINES/~nova_defines/inventory.dm for the full list. |
Procs | |
| can_lewd_attach | Whether this toy can go into slot on target, checked before and after the fitting wait.
Say why to user when refusing. |
| can_lewd_remove | Whether user can take this toy back out of its lewd slot. Say why when refusing. |
| check_menu | A check to confirm if you can open the toy's color/design radial menu |
| is_inside_lewd_slot | Returns if the item is inside a lewd slot. |
| lewd_equipped | Called after an item is placed in a lewd slot via the interaction menu. This gets called after equipped() does. |
Var Details
current_equipped_slot 
This is to keep track of where we are stored, because sometimes we might want to know that
lewd_slot_flags 
This is used to decide what lewd slot a toy should be able to be inserted into. The currently accepted defines are all prefixes with LEWD_SLOT_, and there is one for each lewd organ. See code/__DEFINES/~nova_defines/inventory.dm for the full list.
Proc Details
can_lewd_attach
Whether this toy can go into slot on target, checked before and after the fitting wait.
Say why to user when refusing.
can_lewd_remove
Whether user can take this toy back out of its lewd slot. Say why when refusing.
check_menu
A check to confirm if you can open the toy's color/design radial menu
is_inside_lewd_slot
Returns if the item is inside a lewd slot.
lewd_equipped
Called after an item is placed in a lewd slot via the interaction menu. This gets called after equipped() does.
Use this instead of equipped() when dealing with lewd slots. We really should hook this better into the upstream equip chain but for now this will have to do.
Arguments:
- user is mob that equipped it
- slot(s) that item is equipped to
- initial is used to indicate whether or not this is the initial equipment (job datums etc) or just a player doing it