Uppercases slot defines.
This commit is contained in:
committed by
CitadelStationBot
parent
ab3c55ab23
commit
7d45e045a3
@@ -115,7 +115,7 @@
|
||||
|
||||
teleport_now.UpdateButtonIcon()
|
||||
|
||||
var/list/nonsafe_slots = list(slot_belt, slot_back)
|
||||
var/list/nonsafe_slots = list(SLOT_BELT, SLOT_BACK)
|
||||
var/list/exposed = list()
|
||||
for(var/slot in nonsafe_slots)
|
||||
var/obj/item/slot_item = user.get_item_by_slot(slot)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
actions_types = list(/datum/action/item_action/flightpack/toggle_flight, /datum/action/item_action/flightpack/engage_boosters, /datum/action/item_action/flightpack/toggle_stabilizers, /datum/action/item_action/flightpack/change_power, /datum/action/item_action/flightpack/toggle_airbrake)
|
||||
armor = list("melee" = 20, "bullet" = 20, "laser" = 20, "energy" = 10, "bomb" = 30, "bio" = 100, "rad" = 75, "fire" = 100, "acid" = 75)
|
||||
w_class = WEIGHT_CLASS_BULKY
|
||||
slot_flags = SLOT_BACK
|
||||
slot_flags = ITEM_SLOT_BACK
|
||||
resistance_flags = FIRE_PROOF
|
||||
|
||||
var/processing_mode = FLIGHTSUIT_PROCESSING_FULL
|
||||
@@ -544,8 +544,13 @@
|
||||
changeWearer()
|
||||
..()
|
||||
|
||||
<<<<<<< HEAD
|
||||
/obj/item/device/flightpack/item_action_slot_check(slot)
|
||||
if(slot == SLOT_BACK)
|
||||
=======
|
||||
/obj/item/flightpack/item_action_slot_check(slot)
|
||||
if(slot == ITEM_SLOT_BACK)
|
||||
>>>>>>> ecd0d8b... Merge pull request #37476 from AnturK/thisalwaysbuggedme
|
||||
return TRUE
|
||||
|
||||
/obj/item/device/flightpack/equipped(mob/user, slot)
|
||||
@@ -571,8 +576,13 @@
|
||||
momentum_speed_y = 0
|
||||
momentum_speed = max(momentum_speed_x, momentum_speed_y)
|
||||
|
||||
<<<<<<< HEAD
|
||||
/obj/item/device/flightpack/item_action_slot_check(slot)
|
||||
return slot == slot_back
|
||||
=======
|
||||
/obj/item/flightpack/item_action_slot_check(slot)
|
||||
return slot == SLOT_BACK
|
||||
>>>>>>> ecd0d8b... Merge pull request #37476 from AnturK/thisalwaysbuggedme
|
||||
|
||||
/obj/item/device/flightpack/proc/enable_stabilizers()
|
||||
if(requires_suit && suit && !suit.deployedshoes)
|
||||
@@ -728,7 +738,7 @@
|
||||
src.flags_1 &= ~NOSLIP_1
|
||||
|
||||
/obj/item/clothing/shoes/flightshoes/item_action_slot_check(slot)
|
||||
return slot == slot_shoes
|
||||
return slot == SLOT_SHOES
|
||||
|
||||
/obj/item/clothing/shoes/flightshoes/proc/delink_suit()
|
||||
if(suit)
|
||||
@@ -893,7 +903,7 @@
|
||||
if(user.back)
|
||||
usermessage("You're already wearing something on your back!", "boldwarning")
|
||||
return FALSE
|
||||
user.equip_to_slot_if_possible(pack,slot_back,0,0,1)
|
||||
user.equip_to_slot_if_possible(pack,SLOT_BACK,0,0,1)
|
||||
pack.flags_1 |= NODROP_1
|
||||
resync()
|
||||
user.visible_message("<span class='notice'>A [pack.name] extends from [user]'s [name] and clamps to their back!</span>")
|
||||
@@ -931,7 +941,7 @@
|
||||
if(user.shoes)
|
||||
usermessage("You're already wearing something on your feet!", "boldwarning")
|
||||
return FALSE
|
||||
user.equip_to_slot_if_possible(shoes,slot_shoes,0,0,1)
|
||||
user.equip_to_slot_if_possible(shoes,SLOT_SHOES,0,0,1)
|
||||
shoes.flags_1 |= NODROP_1
|
||||
user.visible_message("<span class='notice'>[user]'s [name] extends a pair of [shoes.name] over their feet!</span>")
|
||||
user.update_inv_wear_suit()
|
||||
@@ -962,7 +972,7 @@
|
||||
/obj/item/clothing/suit/space/hardsuit/flightsuit/equipped(mob/M, slot)
|
||||
if(ishuman(M))
|
||||
user = M
|
||||
if(slot != slot_wear_suit)
|
||||
if(slot != SLOT_WEAR_SUIT)
|
||||
if(deployedpack)
|
||||
retract_flightpack(TRUE)
|
||||
if(deployedshoes)
|
||||
@@ -997,7 +1007,7 @@
|
||||
|
||||
/obj/item/clothing/suit/space/hardsuit/flightsuit/attackby(obj/item/I, mob/wearer, params)
|
||||
user = wearer
|
||||
if(src == user.get_item_by_slot(slot_wear_suit))
|
||||
if(src == user.get_item_by_slot(SLOT_WEAR_SUIT))
|
||||
usermessage("You can not perform any service without taking the suit off!", "boldwarning")
|
||||
return FALSE
|
||||
else if(locked)
|
||||
|
||||
@@ -48,12 +48,12 @@
|
||||
soundloop.stop(user)
|
||||
|
||||
/obj/item/clothing/head/helmet/space/hardsuit/item_action_slot_check(slot)
|
||||
if(slot == slot_head)
|
||||
if(slot == SLOT_HEAD)
|
||||
return 1
|
||||
|
||||
/obj/item/clothing/head/helmet/space/hardsuit/equipped(mob/user, slot)
|
||||
..()
|
||||
if(slot != slot_head)
|
||||
if(slot != SLOT_HEAD)
|
||||
if(suit)
|
||||
suit.RemoveHelmet()
|
||||
soundloop.stop(user)
|
||||
@@ -119,7 +119,7 @@
|
||||
if(jetpack)
|
||||
to_chat(user, "<span class='warning'>[src] already has a jetpack installed.</span>")
|
||||
return
|
||||
if(src == user.get_item_by_slot(slot_wear_suit)) //Make sure the player is not wearing the suit before applying the upgrade.
|
||||
if(src == user.get_item_by_slot(SLOT_WEAR_SUIT)) //Make sure the player is not wearing the suit before applying the upgrade.
|
||||
to_chat(user, "<span class='warning'>You cannot install the upgrade to [src] while wearing it.</span>")
|
||||
return
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
if(!jetpack)
|
||||
to_chat(user, "<span class='warning'>[src] has no jetpack installed.</span>")
|
||||
return
|
||||
if(src == user.get_item_by_slot(slot_wear_suit))
|
||||
if(src == user.get_item_by_slot(SLOT_WEAR_SUIT))
|
||||
to_chat(user, "<span class='warning'>You cannot remove the jetpack from [src] while wearing it.</span>")
|
||||
return
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
/obj/item/clothing/suit/space/hardsuit/equipped(mob/user, slot)
|
||||
..()
|
||||
if(jetpack)
|
||||
if(slot == slot_wear_suit)
|
||||
if(slot == SLOT_WEAR_SUIT)
|
||||
for(var/X in jetpack.actions)
|
||||
var/datum/action/A = X
|
||||
A.Grant(user)
|
||||
@@ -157,7 +157,7 @@
|
||||
A.Remove(user)
|
||||
|
||||
/obj/item/clothing/suit/space/hardsuit/item_action_slot_check(slot)
|
||||
if(slot == slot_wear_suit) //we only give the mob the ability to toggle the helmet if he's wearing the hardsuit.
|
||||
if(slot == SLOT_WEAR_SUIT) //we only give the mob the ability to toggle the helmet if he's wearing the hardsuit.
|
||||
return 1
|
||||
|
||||
//Engineering
|
||||
@@ -460,7 +460,7 @@
|
||||
|
||||
/obj/item/clothing/head/helmet/space/hardsuit/rd/equipped(mob/living/carbon/human/user, slot)
|
||||
..()
|
||||
if (slot == slot_head)
|
||||
if (slot == SLOT_HEAD)
|
||||
var/datum/atom_hud/DHUD = GLOB.huds[DATA_HUD_DIAGNOSTIC_BASIC]
|
||||
DHUD.add_hud_to(user)
|
||||
|
||||
@@ -615,7 +615,7 @@
|
||||
|
||||
/obj/item/clothing/suit/space/hardsuit/ancient/equipped(mob/user, slot)
|
||||
. = ..()
|
||||
if (slot == slot_wear_suit)
|
||||
if (slot == SLOT_WEAR_SUIT)
|
||||
if (mobhook && mobhook.parent != user)
|
||||
QDEL_NULL(mobhook)
|
||||
if (!mobhook)
|
||||
|
||||
Reference in New Issue
Block a user