Changes slot number defines from lowercase to all uppercase (#22297)

* undo all of it

* flags

* back

* head/mask

* left

* right

* Cuffs

* other name changes

* ID and PDA

* idk about calling them SLOT_HUD now

* glasses, gloves, and shoes, oh my!

* the rest

* comment
This commit is contained in:
Contrabang
2023-10-03 13:27:51 -04:00
committed by GitHub
parent a6a34c2592
commit f3f9bd442a
219 changed files with 1114 additions and 1113 deletions
+3 -3
View File
@@ -13,7 +13,7 @@
item_state = "mod_control"
base_icon_state = "control"
w_class = WEIGHT_CLASS_BULKY
slot_flags = SLOT_BACK
slot_flags = SLOT_FLAG_BACK
strip_delay = 10 SECONDS
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, RAD = 0, FIRE = 0, ACID = 0)
actions_types = list(
@@ -206,14 +206,14 @@
/obj/item/mod/control/equipped(mob/user, slot)
..()
if(slot == slot_back)
if(slot == SLOT_HUD_BACK)
set_wearer(user)
else if(wearer)
unset_wearer()
/obj/item/mod/control/item_action_slot_check(slot)
if(slot == slot_back)
if(slot == SLOT_HUD_BACK)
return TRUE
/obj/item/mod/control/on_mob_move(direction, mob/user)
+1 -1
View File
@@ -20,7 +20,7 @@
/// Default skin of the MOD.
var/default_skin = "standard"
/// The slot this mod theme fits on
var/slot_flags = SLOT_BACK
var/slot_flags = SLOT_FLAG_BACK
/// Armor shared across the MOD parts.
var/obj/item/mod/armor/armor_type_1 = /obj/item/mod/armor/mod_theme
/// the actual armor object placed in a datum as I am tired and I just want this to work
@@ -51,9 +51,9 @@
if(!ishuman(user))
return
var/mob/living/carbon/human/human_user = user
if(human_user.get_item_by_slot(slot_back) && !human_user.unEquip(human_user.get_item_by_slot(slot_back)))
if(human_user.get_item_by_slot(SLOT_HUD_BACK) && !human_user.unEquip(human_user.get_item_by_slot(SLOT_HUD_BACK)))
return
if(!human_user.equip_to_slot_if_possible(mod, slot_back, disable_warning = TRUE))
if(!human_user.equip_to_slot_if_possible(mod, SLOT_HUD_BACK, disable_warning = TRUE))
return
mod.quick_deploy(user)
human_user.update_action_buttons(TRUE)