Action buttons will now only update when needed instead of every Life().

The action buttons now update their icon instantly.
Fixes versions of pickup(),equipped() and dropped not calling the parent.
Fixes drone not being able to remove a defib from their storage.
You can now cycle the mime mask by clicking it in your hand.
The action buttons for hardsuit and hooded suits now only appears when you're wearing the suit.
Created two mob helper procs getBeltSlot() and getBackSlot().
Created /datum/species/proc/on_species_loss() to handle stuff when our race change, currently only used by jelly and slime race to remove their exotic blood from our reagents and to remove slime people's action buttons.
This commit is contained in:
phil235
2016-02-22 00:34:59 +01:00
parent 24d17307a3
commit 91839f5f70
75 changed files with 428 additions and 386 deletions

View File

@@ -263,4 +263,11 @@
var/obj/item/I = get_active_hand()
if (I)
I.equip_to_best_slot(src)
I.equip_to_best_slot(src)
//used in code for items usable by both carbon and drones, this gives the proper back slot for each mob.(defibrillator, backpack watertank, ...)
/mob/proc/getBackSlot()
return slot_back
/mob/proc/getBeltSlot()
return slot_belt