Adds slot_drone_storage macro.

This commit is contained in:
YotaXP
2015-11-12 20:32:00 -05:00
parent e42b1630c5
commit 47c358e8e2
5 changed files with 7 additions and 6 deletions
@@ -71,7 +71,7 @@
if(default_storage)
var/obj/item/I = new default_storage(src)
equip_to_slot_or_del(I, "drone_storage_slot")
equip_to_slot_or_del(I, slot_drone_storage)
if(default_hatmask)
var/obj/item/I = new default_hatmask(src)
equip_to_slot_or_del(I, slot_head)
@@ -64,7 +64,7 @@
if(!((I.slot_flags & SLOT_HEAD) || (I.slot_flags & SLOT_MASK)))
return 0
return 1
if("drone_storage_slot")
if(slot_drone_storage)
if(internal_storage)
return 0
return 1
@@ -75,7 +75,7 @@
switch(slot_id)
if(slot_head)
return head
if("drone_storage_slot")
if(slot_drone_storage)
return internal_storage
..()
@@ -99,7 +99,7 @@
if(slot_head)
head = I
update_inv_head()
if("drone_storage_slot")
if(slot_drone_storage)
internal_storage = I
update_inv_internal_storage()
else