mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 19:14:15 +01:00
Adds slot_drone_storage macro.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user