mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Adds slot_drone_storage macro.
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#define slot_s_store 17
|
||||
#define slot_in_backpack 18
|
||||
#define slot_legcuffed 19
|
||||
#define slot_drone_storage 20
|
||||
|
||||
//Cant seem to find a mob bitflags area other than the powers one
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
inv_box.icon = ui_style
|
||||
inv_box.icon_state = "suit_storage"
|
||||
inv_box.screen_loc = ui_drone_storage
|
||||
inv_box.slot_id = "drone_storage_slot"
|
||||
inv_box.slot_id = slot_drone_storage
|
||||
inv_box.layer = 19
|
||||
adding += inv_box
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
/obj/item/weapon/watertank/verb/toggle_mister()
|
||||
set name = "Toggle Mister"
|
||||
set category = "Object"
|
||||
if (usr.get_item_by_slot(slot_back) != src && usr.get_item_by_slot("drone_storage_slot") != src)
|
||||
if (usr.get_item_by_slot(slot_back) != src && usr.get_item_by_slot(slot_drone_storage) != src)
|
||||
usr << "<span class='warning'>The watertank needs to be on your back to use!</span>"
|
||||
return
|
||||
if(usr.incapacitated())
|
||||
|
||||
@@ -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