Knockoff component

This commit is contained in:
AnturK
2017-12-19 11:43:36 +01:00
parent 40699a8aea
commit 8167cd2f8c
5 changed files with 54 additions and 2 deletions
+2
View File
@@ -412,6 +412,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
if(DROPDEL_1 & flags_1)
qdel(src)
in_inventory = FALSE
SendSignal(COMSIG_ITEM_DROPPED,user)
// called just as an item is picked up (loc is not yet changed)
/obj/item/proc/pickup(mob/user)
@@ -442,6 +443,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
var/datum/action/A = X
if(item_action_slot_check(slot, user)) //some items only give their actions buttons when in a specific slot.
A.Grant(user)
SendSignal(COMSIG_ITEM_EQUIPPED,user,slot)
in_inventory = TRUE
//sometimes we only want to grant the item's action if it's equipped in a specific slot.