mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
[REFACTOR] Consolidates SLOT_FLAG and SLOT_HUD into one ITEM_SLOT flag (#26743)
* IT WORKS UP UNTIL THIS POINT * Consolidates SLOT_FLAG and SLOT_HUD into one * Remove cover_both_ears * SLOT_HUD to ITEM_SLOT * Remove clothing_trait changes for the time being * Remove accidental copy-paste * Re-add no-slip var * More failure to copy-paste correctly * Leftover flag * Combine left and right slot flags where possible * UNGOOF MY DEFINES, PHAND IS NOT A THING * Minor spacing changes * Some more fixes from merge * Seperates ITEM SLOT AMOUNT into two defines * ON SECOND THOUGHT LETS NOT DO THAT. * Addresses Contra's review * Thank you GREP * Rename ITEM_SLOT_FEET to ITEM_SLOT_SHOES * Added a comment to the bitmasks in clothing defines * Rename ITEM_SLOT_TIE to ITEM_SLOT_ACCESSORY * These are for a seperate PR. * Magboot fixes * Requested changes * Re-add accidental removal * Wrong flags * Update code/__DEFINES/clothing_defines.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Signed-off-by: Chap <erwin@lombok.demon.nl> * Requested changes * Merge fixes * Fix double headset * Fixes multiple accessories --------- Signed-off-by: Chap <erwin@lombok.demon.nl> Co-authored-by: Adrer <adrermail@gmail.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
+12
-12
@@ -1178,8 +1178,8 @@
|
||||
M.loc = prison_cell
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/prisoner = M
|
||||
prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(prisoner), SLOT_HUD_JUMPSUIT)
|
||||
prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), SLOT_HUD_SHOES)
|
||||
prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(prisoner), ITEM_SLOT_JUMPSUIT)
|
||||
prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), ITEM_SLOT_SHOES)
|
||||
|
||||
to_chat(M, "<span class='warning'>You have been sent to the prison station!</span>")
|
||||
log_admin("[key_name(usr)] sent [key_name(M)] to the prison station.")
|
||||
@@ -1399,8 +1399,8 @@
|
||||
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/observer = M
|
||||
observer.equip_to_slot_or_del(new /obj/item/clothing/under/suit(observer), SLOT_HUD_JUMPSUIT)
|
||||
observer.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(observer), SLOT_HUD_SHOES)
|
||||
observer.equip_to_slot_or_del(new /obj/item/clothing/under/suit(observer), ITEM_SLOT_JUMPSUIT)
|
||||
observer.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(observer), ITEM_SLOT_SHOES)
|
||||
if(isliving(M))
|
||||
var/mob/living/L = M
|
||||
L.Paralyse(10 SECONDS)
|
||||
@@ -1812,9 +1812,9 @@
|
||||
to_chat(usr, "<span class='warning'>This can only be used on instances of type /mob/living/carbon/human</span>")
|
||||
return
|
||||
|
||||
H.equip_to_slot_or_del( new /obj/item/food/cookie(H), SLOT_HUD_LEFT_HAND )
|
||||
H.equip_to_slot_or_del( new /obj/item/food/cookie(H), ITEM_SLOT_LEFT_HAND )
|
||||
if(!(istype(H.l_hand,/obj/item/food/cookie)))
|
||||
H.equip_to_slot_or_del( new /obj/item/food/cookie(H), SLOT_HUD_RIGHT_HAND )
|
||||
H.equip_to_slot_or_del( new /obj/item/food/cookie(H), ITEM_SLOT_RIGHT_HAND )
|
||||
if(!(istype(H.r_hand,/obj/item/food/cookie)))
|
||||
log_admin("[key_name(H)] has their hands full, so they did not receive their cookie, spawned by [key_name(src.owner)].")
|
||||
message_admins("[key_name_admin(H)] has [H.p_their()] hands full, so [H.p_they()] did not receive [H.p_their()] cookie, spawned by [key_name_admin(src.owner)].")
|
||||
@@ -2153,7 +2153,7 @@
|
||||
evilcookie.bitesize = 100
|
||||
evilcookie.flags = NODROP | DROPDEL
|
||||
H.drop_l_hand()
|
||||
H.equip_to_slot_or_del(evilcookie, SLOT_HUD_LEFT_HAND)
|
||||
H.equip_to_slot_or_del(evilcookie, ITEM_SLOT_LEFT_HAND)
|
||||
logmsg = "a mutagen cookie."
|
||||
if("Hellwater Cookie")
|
||||
var/obj/item/food/cookie/evilcookie = new /obj/item/food/cookie
|
||||
@@ -2162,7 +2162,7 @@
|
||||
evilcookie.bitesize = 100
|
||||
evilcookie.flags = NODROP | DROPDEL
|
||||
H.drop_l_hand()
|
||||
H.equip_to_slot_or_del(evilcookie, SLOT_HUD_LEFT_HAND)
|
||||
H.equip_to_slot_or_del(evilcookie, ITEM_SLOT_LEFT_HAND)
|
||||
logmsg = "a hellwater cookie."
|
||||
if("Hunter")
|
||||
ADD_TRAIT(H, TRAIT_BADDNA, "smiting")
|
||||
@@ -2211,7 +2211,7 @@
|
||||
if(H.head)
|
||||
H.unEquip(H.head, TRUE)
|
||||
var/obj/item/clothing/head/sombrero/shamebrero/S = new(H.loc)
|
||||
H.equip_to_slot_or_del(S, SLOT_HUD_HEAD)
|
||||
H.equip_to_slot_or_del(S, ITEM_SLOT_HEAD)
|
||||
logmsg = "shamebrero"
|
||||
if("Nugget")
|
||||
H.Weaken(12 SECONDS, TRUE)
|
||||
@@ -2969,8 +2969,8 @@
|
||||
W.plane = initial(W.plane)
|
||||
//teleport person to cell
|
||||
H.loc = pick(GLOB.prisonwarp)
|
||||
H.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(H), SLOT_HUD_JUMPSUIT)
|
||||
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(H), SLOT_HUD_SHOES)
|
||||
H.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(H), ITEM_SLOT_JUMPSUIT)
|
||||
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(H), ITEM_SLOT_SHOES)
|
||||
else
|
||||
//teleport security person
|
||||
H.loc = pick(GLOB.prisonsecuritywarp)
|
||||
@@ -3572,7 +3572,7 @@
|
||||
dust_if_respawnable(C)
|
||||
hunter_mob.equipOutfit(O, FALSE)
|
||||
var/obj/item/pinpointer/advpinpointer/N = new /obj/item/pinpointer/advpinpointer(hunter_mob)
|
||||
hunter_mob.equip_to_slot_or_del(N, SLOT_HUD_IN_BACKPACK)
|
||||
hunter_mob.equip_to_slot_or_del(N, ITEM_SLOT_IN_BACKPACK)
|
||||
N.mode = 3 //MODE_ADV, not defined here
|
||||
N.setting = 2 //SETTING_OBJECT, not defined here
|
||||
N.target = H
|
||||
|
||||
Reference in New Issue
Block a user