Upload files
This commit is contained in:
@@ -88,10 +88,10 @@
|
||||
|
||||
if(default_storage)
|
||||
var/obj/item/I = new default_storage(src)
|
||||
equip_to_slot_or_del(I, SLOT_GENERC_DEXTROUS_STORAGE)
|
||||
equip_to_slot_or_del(I, ITEM_SLOT_DEX_STORAGE)
|
||||
if(default_hatmask)
|
||||
var/obj/item/I = new default_hatmask(src)
|
||||
equip_to_slot_or_del(I, SLOT_HEAD)
|
||||
equip_to_slot_or_del(I, ITEM_SLOT_HEAD)
|
||||
|
||||
ADD_TRAIT(access_card, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT)
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
if(!D.default_hatmask && seasonal_hats && possible_seasonal_hats.len)
|
||||
var/hat_type = pick(possible_seasonal_hats)
|
||||
var/obj/item/new_hat = new hat_type(D)
|
||||
D.equip_to_slot_or_del(new_hat, SLOT_HEAD)
|
||||
D.equip_to_slot_or_del(new_hat, ITEM_SLOT_HEAD)
|
||||
D.flags_1 |= (flags_1 & ADMIN_SPAWNED_1)
|
||||
user.transfer_ckey(D, FALSE)
|
||||
qdel(src)
|
||||
|
||||
@@ -21,13 +21,13 @@
|
||||
|
||||
/mob/living/simple_animal/drone/can_equip(obj/item/I, slot, disable_warning = FALSE, bypass_equip_delay_self = FALSE, clothing_check = FALSE, list/return_warning)
|
||||
switch(slot)
|
||||
if(SLOT_HEAD)
|
||||
if(ITEM_SLOT_HEAD)
|
||||
if(head)
|
||||
return 0
|
||||
if(!((I.slot_flags & ITEM_SLOT_HEAD) || (I.slot_flags & ITEM_SLOT_MASK)))
|
||||
return 0
|
||||
return 1
|
||||
if(SLOT_GENERC_DEXTROUS_STORAGE)
|
||||
if(ITEM_SLOT_DEX_STORAGE)
|
||||
if(internal_storage)
|
||||
return 0
|
||||
return 1
|
||||
@@ -36,9 +36,9 @@
|
||||
|
||||
/mob/living/simple_animal/drone/get_item_by_slot(slot_id)
|
||||
switch(slot_id)
|
||||
if(SLOT_HEAD)
|
||||
if(ITEM_SLOT_HEAD)
|
||||
return head
|
||||
if(SLOT_GENERC_DEXTROUS_STORAGE)
|
||||
if(ITEM_SLOT_DEX_STORAGE)
|
||||
return internal_storage
|
||||
return ..()
|
||||
|
||||
@@ -63,10 +63,10 @@
|
||||
I.plane = ABOVE_HUD_PLANE
|
||||
|
||||
switch(slot)
|
||||
if(SLOT_HEAD)
|
||||
if(ITEM_SLOT_HEAD)
|
||||
head = I
|
||||
update_inv_head()
|
||||
if(SLOT_GENERC_DEXTROUS_STORAGE)
|
||||
if(ITEM_SLOT_DEX_STORAGE)
|
||||
internal_storage = I
|
||||
update_inv_internal_storage()
|
||||
else
|
||||
@@ -77,7 +77,7 @@
|
||||
I.equipped(src, slot)
|
||||
|
||||
/mob/living/simple_animal/drone/getBackSlot()
|
||||
return SLOT_GENERC_DEXTROUS_STORAGE
|
||||
return ITEM_SLOT_DEX_STORAGE
|
||||
|
||||
/mob/living/simple_animal/drone/getBeltSlot()
|
||||
return SLOT_GENERC_DEXTROUS_STORAGE
|
||||
return ITEM_SLOT_DEX_STORAGE
|
||||
|
||||
Reference in New Issue
Block a user