mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 16:13:19 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user