mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-01-08 08:03:09 +00:00
Moves several clothing-specific flags from /atom to their proper type
This commit is contained in:
committed by
CitadelStationBot
parent
811cc06188
commit
3f6167d08e
@@ -11,12 +11,15 @@ GLOBAL_LIST_INIT(bitflags, list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 204
|
|||||||
#define DF_VAR_EDITED (1<<1)
|
#define DF_VAR_EDITED (1<<1)
|
||||||
|
|
||||||
//FLAGS BITMASK
|
//FLAGS BITMASK
|
||||||
|
<<<<<<< HEAD
|
||||||
#define STOPSPRESSUREDMAGE_1 (1<<0) //This flag is used on the flags_1 variable for SUIT and HEAD items which stop pressure damage. Note that the flag 1 was previous used as ONBACK, so it is possible for some code to use (flags & 1) when checking if something can be put on your back. Replace this code with (inv_flags & SLOT_BACK) if you see it anywhere
|
#define STOPSPRESSUREDMAGE_1 (1<<0) //This flag is used on the flags_1 variable for SUIT and HEAD items which stop pressure damage. Note that the flag 1 was previous used as ONBACK, so it is possible for some code to use (flags & 1) when checking if something can be put on your back. Replace this code with (inv_flags & SLOT_BACK) if you see it anywhere
|
||||||
//To successfully stop you taking all pressure damage you must have both a suit and head item with this flag.
|
//To successfully stop you taking all pressure damage you must have both a suit and head item with this flag.
|
||||||
|
=======
|
||||||
|
>>>>>>> 98f8ca7... Moves several clothing-specific flags from /atom to their proper type (#37486)
|
||||||
|
|
||||||
#define NODROP_1 (1<<1) // This flag makes it so that an item literally cannot be removed at all, or at least that's how it should be. Only deleted.
|
#define NODROP_1 (1<<1) // This flag makes it so that an item literally cannot be removed at all, or at least that's how it should be. Only deleted.
|
||||||
#define NOBLUDGEON_1 (1<<2) // when an item has this it produces no "X has been hit by Y with Z" message in the default attackby()
|
#define NOBLUDGEON_1 (1<<2) // when an item has this it produces no "X has been hit by Y with Z" message in the default attackby()
|
||||||
#define MASKINTERNALS_1 (1<<3) // mask allows internals
|
|
||||||
#define HEAR_1 (1<<4) // This flag is what recursive_hear_check() uses to determine wether to add an item to the hearer list or not.
|
#define HEAR_1 (1<<4) // This flag is what recursive_hear_check() uses to determine wether to add an item to the hearer list or not.
|
||||||
#define CHECK_RICOCHET_1 (1<<5) // Projectiels will check ricochet on things impacted that have this.
|
#define CHECK_RICOCHET_1 (1<<5) // Projectiels will check ricochet on things impacted that have this.
|
||||||
#define CONDUCT_1 (1<<6) // conducts electricity (metal etc.)
|
#define CONDUCT_1 (1<<6) // conducts electricity (metal etc.)
|
||||||
@@ -25,11 +28,6 @@ GLOBAL_LIST_INIT(bitflags, list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 204
|
|||||||
#define OVERLAY_QUEUED_1 (1<<8) // atom queued to SSoverlay
|
#define OVERLAY_QUEUED_1 (1<<8) // atom queued to SSoverlay
|
||||||
#define ON_BORDER_1 (1<<9) // item has priority to check when entering or leaving
|
#define ON_BORDER_1 (1<<9) // item has priority to check when entering or leaving
|
||||||
|
|
||||||
#define NOSLIP_1 (1<<10) //prevents from slipping on wet floors, in space etc
|
|
||||||
|
|
||||||
// BLOCK_GAS_SMOKE_EFFECT_1 only used in masks at the moment.
|
|
||||||
#define BLOCK_GAS_SMOKE_EFFECT_1 (1<<12) // blocks the effect that chemical clouds would have on a mob --glasses, mask and helmets ONLY!
|
|
||||||
#define THICKMATERIAL_1 (1<<13) //prevents syringes, parapens and hypos if the external suit or helmet (if targeting head) has this flag. Example: space suits, biosuit, bombsuits, thick suits that cover your body.
|
|
||||||
#define DROPDEL_1 (1<<14) // When dropped, it calls qdel on itself
|
#define DROPDEL_1 (1<<14) // When dropped, it calls qdel on itself
|
||||||
#define PREVENT_CLICK_UNDER_1 (1<<15) //Prevent clicking things below it on the same turf eg. doors/ fulltile windows
|
#define PREVENT_CLICK_UNDER_1 (1<<15) //Prevent clicking things below it on the same turf eg. doors/ fulltile windows
|
||||||
|
|
||||||
@@ -57,9 +55,6 @@ GLOBAL_LIST_INIT(bitflags, list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 204
|
|||||||
// Stops you from putting things like an RCD or other items into an ORM or protolathe for materials.
|
// Stops you from putting things like an RCD or other items into an ORM or protolathe for materials.
|
||||||
#define NO_MAT_REDEMPTION_2 (1<<10)
|
#define NO_MAT_REDEMPTION_2 (1<<10)
|
||||||
|
|
||||||
// LAVA_PROTECT used on the flags_2 variable for both SUIT and HEAD items, and stops lava damage. Must be present in both to stop lava damage.
|
|
||||||
#define LAVA_PROTECT_2 (1<<11)
|
|
||||||
|
|
||||||
//turf-only flags
|
//turf-only flags
|
||||||
#define NOJAUNT_1 (1<<0)
|
#define NOJAUNT_1 (1<<0)
|
||||||
#define UNUSED_TRANSIT_TURF_1 (1<<1)
|
#define UNUSED_TRANSIT_TURF_1 (1<<1)
|
||||||
|
|||||||
@@ -18,3 +18,12 @@
|
|||||||
#define IN_INVENTORY (1<<1) //is this item equipped into an inventory slot or hand of a mob? used for tooltips
|
#define IN_INVENTORY (1<<1) //is this item equipped into an inventory slot or hand of a mob? used for tooltips
|
||||||
#define FORCE_STRING_OVERRIDE (1<<2) // used for tooltips
|
#define FORCE_STRING_OVERRIDE (1<<2) // used for tooltips
|
||||||
#define NEEDS_PERMIT (1<<3) //Used by security bots to determine if this item is safe for public use.
|
#define NEEDS_PERMIT (1<<3) //Used by security bots to determine if this item is safe for public use.
|
||||||
|
|
||||||
|
// Flags for the clothing_flags var on /obj/item/clothing
|
||||||
|
|
||||||
|
#define LAVAPROTECT (1<<0)
|
||||||
|
#define STOPSPRESSUREDAMAGE (1<<1) //SUIT and HEAD items which stop pressure damage. To stop you taking all pressure damage you must have both a suit and head item with this flag.
|
||||||
|
#define BLOCK_GAS_SMOKE_EFFECT (1<<2) // blocks the effect that chemical clouds would have on a mob --glasses, mask and helmets ONLY!
|
||||||
|
#define MASKINTERNALS (1<<3) // mask allows internals
|
||||||
|
#define NOSLIP (1<<4) //prevents from slipping on wet floors, in space etc
|
||||||
|
#define THICKMATERIAL (1<<5) //prevents syringes, parapens and hypos if the external suit or helmet (if targeting head) has this flag. Example: space suits, biosuit, bombsuits, thick suits that cover your body.
|
||||||
|
|||||||
@@ -106,17 +106,15 @@ GLOBAL_LIST_INIT(bitfields, list(
|
|||||||
"REAGENT_NOREACT" = REAGENT_NOREACT
|
"REAGENT_NOREACT" = REAGENT_NOREACT
|
||||||
),
|
),
|
||||||
"flags_1" = list(
|
"flags_1" = list(
|
||||||
"STOPSPRESSUREDMAGE_1 / NOJAUNT_1 (turfs)" = STOPSPRESSUREDMAGE_1,
|
"NOJAUNT_1" = NOJAUNT_1,
|
||||||
"NODROP_1 / UNUSED_TRANSIT_TURF_1 (turfs)" = NODROP_1,
|
"NODROP_1 / UNUSED_TRANSIT_TURF_1 (turfs)" = NODROP_1,
|
||||||
"NOBLUDGEON_1 / CAN_BE_DIRTY_1 (turfs)" = NOBLUDGEON_1,
|
"NOBLUDGEON_1 / CAN_BE_DIRTY_1 (turfs)" = NOBLUDGEON_1,
|
||||||
"MASKINTERNALS_1" = MASKINTERNALS_1,
|
|
||||||
"HEAR_1 / NO_DEATHRATTLE_1 (turfs)" = HEAR_1,
|
"HEAR_1 / NO_DEATHRATTLE_1 (turfs)" = HEAR_1,
|
||||||
"CHECK_RICOCHET_1 / NO_RUINS_1 (turfs)" = CHECK_RICOCHET_1,
|
"CHECK_RICOCHET_1 / NO_RUINS_1 (turfs)" = CHECK_RICOCHET_1,
|
||||||
"CONDUCT_1 / NO_LAVA_GEN_1" = CONDUCT_1,
|
"CONDUCT_1 / NO_LAVA_GEN_1" = CONDUCT_1,
|
||||||
"ABSTRACT_1" = ABSTRACT_1,
|
"ABSTRACT_1" = ABSTRACT_1,
|
||||||
"NODECONSTRUCT_1" = NODECONSTRUCT_1,
|
"NODECONSTRUCT_1" = NODECONSTRUCT_1,
|
||||||
"OVERLAY_QUEUED_1" = OVERLAY_QUEUED_1,
|
"OVERLAY_QUEUED_1" = OVERLAY_QUEUED_1,
|
||||||
"NOSLIP_1" = NOSLIP_1
|
|
||||||
),
|
),
|
||||||
"flags_2" = list(
|
"flags_2" = list(
|
||||||
"SLOWS_WHILE_IN_HAND_2" = SLOWS_WHILE_IN_HAND_2,
|
"SLOWS_WHILE_IN_HAND_2" = SLOWS_WHILE_IN_HAND_2,
|
||||||
@@ -127,7 +125,14 @@ GLOBAL_LIST_INIT(bitfields, list(
|
|||||||
"HEALS_EARS_2" = HEALS_EARS_2,
|
"HEALS_EARS_2" = HEALS_EARS_2,
|
||||||
"OMNITONGUE_2" = OMNITONGUE_2,
|
"OMNITONGUE_2" = OMNITONGUE_2,
|
||||||
"TESLA_IGNORE_2" = TESLA_IGNORE_2,
|
"TESLA_IGNORE_2" = TESLA_IGNORE_2,
|
||||||
"NO_MAT_REDEMPTION_2" = NO_MAT_REDEMPTION_2,
|
"NO_MAT_REDEMPTION_2" = NO_MAT_REDEMPTION_2
|
||||||
"LAVA_PROTECT_2" = LAVA_PROTECT_2
|
),
|
||||||
)
|
"clothing_flags" = list(
|
||||||
|
"LAVAPROTECT" = LAVAPROTECT,
|
||||||
|
"STOPSPRESSUREDAMAGE" = STOPSPRESSUREDAMAGE,
|
||||||
|
"BLOCK_GAS_SMOKE_EFFECT" = BLOCK_GAS_SMOKE_EFFECT,
|
||||||
|
"MASKINTERNALS" = MASKINTERNALS,
|
||||||
|
"NOSLIP" = NOSLIP,
|
||||||
|
"THICKMATERIAL" = THICKMATERIAL,
|
||||||
|
)
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -10,3 +10,5 @@ GLOBAL_LIST_INIT(typecache_living, typecacheof(/mob/living))
|
|||||||
GLOBAL_LIST_INIT(typecache_machine_or_structure, typecacheof(list(/obj/machinery, /obj/structure)))
|
GLOBAL_LIST_INIT(typecache_machine_or_structure, typecacheof(list(/obj/machinery, /obj/structure)))
|
||||||
|
|
||||||
GLOBAL_LIST_INIT(typecache_shuttle_area, typecacheof(/area/shuttle))
|
GLOBAL_LIST_INIT(typecache_shuttle_area, typecacheof(/area/shuttle))
|
||||||
|
|
||||||
|
GLOBAL_LIST_INIT(typecache_clothing, typecacheof(/obj/item/clothing))
|
||||||
|
|||||||
@@ -264,7 +264,7 @@
|
|||||||
var/obj/item/clothing/mask/M = C.wear_mask
|
var/obj/item/clothing/mask/M = C.wear_mask
|
||||||
if(M.mask_adjusted) // if mask on face but pushed down
|
if(M.mask_adjusted) // if mask on face but pushed down
|
||||||
M.adjustmask(C) // adjust it back
|
M.adjustmask(C) // adjust it back
|
||||||
if( !(M.flags_1 & MASKINTERNALS_1) )
|
if( !(M.clothing_flags & MASKINTERNALS) )
|
||||||
to_chat(C, "<span class='warning'>You are not wearing an internals mask!</span>")
|
to_chat(C, "<span class='warning'>You are not wearing an internals mask!</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
/obj/item/clothing/shoes/clown_shoes/combat
|
/obj/item/clothing/shoes/clown_shoes/combat
|
||||||
name = "combat clown shoes"
|
name = "combat clown shoes"
|
||||||
desc = "advanced clown shoes that protect the wearer and render them nearly immune to slipping on their own peels. They also squeek at 100% capacity."
|
desc = "advanced clown shoes that protect the wearer and render them nearly immune to slipping on their own peels. They also squeek at 100% capacity."
|
||||||
flags_1 = NOSLIP_1
|
clothing_flags = NOSLIP
|
||||||
slowdown = SHOES_SLOWDOWN
|
slowdown = SHOES_SLOWDOWN
|
||||||
armor = list("melee" = 25, "bullet" = 25, "laser" = 25, "energy" = 25, "bomb" = 50, "bio" = 10, "rad" = 0, "fire" = 70, "acid" = 50)
|
armor = list("melee" = 25, "bullet" = 25, "laser" = 25, "energy" = 25, "bomb" = 50, "bio" = 10, "rad" = 0, "fire" = 70, "acid" = 50)
|
||||||
strip_delay = 70
|
strip_delay = 70
|
||||||
|
|||||||
@@ -325,7 +325,7 @@
|
|||||||
icon_state = "crusader"
|
icon_state = "crusader"
|
||||||
w_class = WEIGHT_CLASS_NORMAL
|
w_class = WEIGHT_CLASS_NORMAL
|
||||||
armor = list("melee" = 50, "bullet" = 50, "laser" = 50, "energy" = 40, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 60, "acid" = 60) //does this even do anything on boots?
|
armor = list("melee" = 50, "bullet" = 50, "laser" = 50, "energy" = 40, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 60, "acid" = 60) //does this even do anything on boots?
|
||||||
flags_1 = NOSLIP_1
|
clothing_flags = NOSLIP
|
||||||
cold_protection = FEET
|
cold_protection = FEET
|
||||||
min_cold_protection_temperature = SHOES_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SHOES_MIN_TEMP_PROTECT
|
||||||
heat_protection = FEET
|
heat_protection = FEET
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
return
|
return
|
||||||
if(H.wear_mask.mask_adjusted)
|
if(H.wear_mask.mask_adjusted)
|
||||||
H.wear_mask.adjustmask(H)
|
H.wear_mask.adjustmask(H)
|
||||||
if(!(H.wear_mask.flags_1 & MASKINTERNALS_1))
|
if(!(H.wear_mask.clothing_flags & MASKINTERNALS))
|
||||||
to_chat(H, "<span class='warning'>[H.wear_mask] can't use [src]!</span>")
|
to_chat(H, "<span class='warning'>[H.wear_mask] can't use [src]!</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@
|
|||||||
var/obj/item/clothing/S = C.get_item_by_slot(slot_wear_suit)
|
var/obj/item/clothing/S = C.get_item_by_slot(slot_wear_suit)
|
||||||
var/obj/item/clothing/H = C.get_item_by_slot(slot_head)
|
var/obj/item/clothing/H = C.get_item_by_slot(slot_head)
|
||||||
|
|
||||||
if(S && H && S.flags_2 & LAVA_PROTECT_2 && H.flags_2 & LAVA_PROTECT_2)
|
if(S && H && S.clothing_flags & LAVAPROTECT && H.clothing_flags & LAVAPROTECT)
|
||||||
return
|
return
|
||||||
|
|
||||||
L.adjustFireLoss(20)
|
L.adjustFireLoss(20)
|
||||||
|
|||||||
@@ -445,8 +445,14 @@
|
|||||||
name = "flesh mass"
|
name = "flesh mass"
|
||||||
icon_state = "lingspacesuit"
|
icon_state = "lingspacesuit"
|
||||||
desc = "A huge, bulky mass of pressure and temperature-resistant organic tissue, evolved to facilitate space travel."
|
desc = "A huge, bulky mass of pressure and temperature-resistant organic tissue, evolved to facilitate space travel."
|
||||||
|
<<<<<<< HEAD
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | NODROP_1 | DROPDEL_1 //Not THICKMATERIAL_1 because it's organic tissue, so if somebody tries to inject something into it, it still ends up in your blood. (also balance but muh fluff)
|
flags_1 = STOPSPRESSUREDMAGE_1 | NODROP_1 | DROPDEL_1 //Not THICKMATERIAL_1 because it's organic tissue, so if somebody tries to inject something into it, it still ends up in your blood. (also balance but muh fluff)
|
||||||
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/oxygen)
|
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/oxygen)
|
||||||
|
=======
|
||||||
|
flags_1 = NODROP_1 | DROPDEL_1
|
||||||
|
clothing_flags = STOPSPRESSUREDAMAGE //Not THICKMATERIAL because it's organic tissue, so if somebody tries to inject something into it, it still ends up in your blood. (also balance but muh fluff)
|
||||||
|
allowed = list(/obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/oxygen)
|
||||||
|
>>>>>>> 98f8ca7... Moves several clothing-specific flags from /atom to their proper type (#37486)
|
||||||
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 90, "acid" = 90) //No armor at all.
|
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 90, "acid" = 90) //No armor at all.
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/changeling/Initialize()
|
/obj/item/clothing/suit/space/changeling/Initialize()
|
||||||
@@ -464,7 +470,8 @@
|
|||||||
name = "flesh mass"
|
name = "flesh mass"
|
||||||
icon_state = "lingspacehelmet"
|
icon_state = "lingspacehelmet"
|
||||||
desc = "A covering of pressure and temperature-resistant organic tissue with a glass-like chitin front."
|
desc = "A covering of pressure and temperature-resistant organic tissue with a glass-like chitin front."
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | NODROP_1 | DROPDEL_1 //Again, no THICKMATERIAL_1.
|
flags_1 = NODROP_1 | DROPDEL_1
|
||||||
|
clothing_flags = STOPSPRESSUREDAMAGE
|
||||||
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 90, "acid" = 90)
|
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 90, "acid" = 90)
|
||||||
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
|
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
|
||||||
|
|
||||||
|
|||||||
@@ -21,17 +21,17 @@
|
|||||||
/obj/item/clothing/head/helmet/clockwork/ratvar_act()
|
/obj/item/clothing/head/helmet/clockwork/ratvar_act()
|
||||||
if(GLOB.ratvar_awakens)
|
if(GLOB.ratvar_awakens)
|
||||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
||||||
flags_1 |= STOPSPRESSUREDMAGE_1
|
clothing_flags |= STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
||||||
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
||||||
else if(GLOB.ratvar_approaches)
|
else if(GLOB.ratvar_approaches)
|
||||||
armor = list("melee" = 70, "bullet" = 80, "laser" = -15, "energy" = 25, "bomb" = 70, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 70, "bullet" = 80, "laser" = -15, "energy" = 25, "bomb" = 70, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
||||||
flags_1 |= STOPSPRESSUREDMAGE_1
|
clothing_flags |= STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
||||||
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
||||||
else
|
else
|
||||||
armor = list("melee" = 60, "bullet" = 70, "laser" = -25, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 60, "bullet" = 70, "laser" = -25, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
||||||
flags_1 &= ~STOPSPRESSUREDMAGE_1
|
clothing_flags &= ~STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = initial(max_heat_protection_temperature)
|
max_heat_protection_temperature = initial(max_heat_protection_temperature)
|
||||||
min_cold_protection_temperature = initial(min_cold_protection_temperature)
|
min_cold_protection_temperature = initial(min_cold_protection_temperature)
|
||||||
|
|
||||||
@@ -82,17 +82,17 @@
|
|||||||
/obj/item/clothing/suit/armor/clockwork/ratvar_act()
|
/obj/item/clothing/suit/armor/clockwork/ratvar_act()
|
||||||
if(GLOB.ratvar_awakens)
|
if(GLOB.ratvar_awakens)
|
||||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
||||||
flags_1 |= STOPSPRESSUREDMAGE_1
|
clothing_flags |= STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
||||||
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
||||||
else if(GLOB.ratvar_approaches)
|
else if(GLOB.ratvar_approaches)
|
||||||
armor = list("melee" = 70, "bullet" = 80, "laser" = -15, "energy" = 25, "bomb" = 70, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 70, "bullet" = 80, "laser" = -15, "energy" = 25, "bomb" = 70, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
||||||
flags_1 |= STOPSPRESSUREDMAGE_1
|
clothing_flags |= STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
||||||
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
||||||
else
|
else
|
||||||
armor = list("melee" = 60, "bullet" = 70, "laser" = -25, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 60, "bullet" = 70, "laser" = -25, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
||||||
flags_1 &= ~STOPSPRESSUREDMAGE_1
|
clothing_flags &= ~STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = initial(max_heat_protection_temperature)
|
max_heat_protection_temperature = initial(max_heat_protection_temperature)
|
||||||
min_cold_protection_temperature = initial(min_cold_protection_temperature)
|
min_cold_protection_temperature = initial(min_cold_protection_temperature)
|
||||||
|
|
||||||
@@ -148,12 +148,12 @@
|
|||||||
/obj/item/clothing/gloves/clockwork/ratvar_act()
|
/obj/item/clothing/gloves/clockwork/ratvar_act()
|
||||||
if(GLOB.ratvar_awakens)
|
if(GLOB.ratvar_awakens)
|
||||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
||||||
flags_1 |= STOPSPRESSUREDMAGE_1
|
clothing_flags |= STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
||||||
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
||||||
else
|
else
|
||||||
armor = list("melee" = 80, "bullet" = 70, "laser" = -25, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 80, "bullet" = 70, "laser" = -25, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
|
||||||
flags_1 &= ~STOPSPRESSUREDMAGE_1
|
clothing_flags &= ~STOPSPRESSUREDAMAGE
|
||||||
max_heat_protection_temperature = initial(max_heat_protection_temperature)
|
max_heat_protection_temperature = initial(max_heat_protection_temperature)
|
||||||
min_cold_protection_temperature = initial(min_cold_protection_temperature)
|
min_cold_protection_temperature = initial(min_cold_protection_temperature)
|
||||||
|
|
||||||
@@ -203,9 +203,9 @@
|
|||||||
|
|
||||||
/obj/item/clothing/shoes/clockwork/ratvar_act()
|
/obj/item/clothing/shoes/clockwork/ratvar_act()
|
||||||
if(GLOB.ratvar_awakens)
|
if(GLOB.ratvar_awakens)
|
||||||
flags_1 |= NOSLIP_1
|
clothing_flags |= NOSLIP
|
||||||
else
|
else
|
||||||
flags_1 &= ~NOSLIP_1
|
clothing_flags &= ~NOSLIP
|
||||||
|
|
||||||
/obj/item/clothing/shoes/clockwork/mob_can_equip(mob/M, mob/equipper, slot, disable_warning = 0)
|
/obj/item/clothing/shoes/clockwork/mob_can_equip(mob/M, mob/equipper, slot, disable_warning = 0)
|
||||||
if(equipper && !is_servant_of_ratvar(equipper))
|
if(equipper && !is_servant_of_ratvar(equipper))
|
||||||
|
|||||||
@@ -331,8 +331,7 @@
|
|||||||
item_state = "gas_alt"
|
item_state = "gas_alt"
|
||||||
resistance_flags = NONE
|
resistance_flags = NONE
|
||||||
armor = list("melee" = 5, "bullet" = 5, "laser" = 5, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 50)
|
armor = list("melee" = 5, "bullet" = 5, "laser" = 5, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 50)
|
||||||
|
clothing_flags = BLOCK_GAS_SMOKE_EFFECT | MASKINTERNALS
|
||||||
flags_1 = BLOCK_GAS_SMOKE_EFFECT_1 | MASKINTERNALS_1
|
|
||||||
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR
|
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR
|
||||||
gas_transfer_coefficient = 0.01
|
gas_transfer_coefficient = 0.01
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
@@ -408,7 +407,7 @@
|
|||||||
icon_state = "black"
|
icon_state = "black"
|
||||||
item_color = "black"
|
item_color = "black"
|
||||||
desc = "A pair of black shoes."
|
desc = "A pair of black shoes."
|
||||||
flags_1 = NOSLIP_1
|
clothing_flags = NOSLIP
|
||||||
|
|
||||||
/obj/item/clothing/shoes/chameleon/noslip/broken/Initialize()
|
/obj/item/clothing/shoes/chameleon/noslip/broken/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -637,4 +636,3 @@
|
|||||||
/obj/item/device/pda/chameleon/broken/Initialize()
|
/obj/item/device/pda/chameleon/broken/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
chameleon_action.emp_randomise(INFINITY)
|
chameleon_action.emp_randomise(INFINITY)
|
||||||
|
|
||||||
|
|||||||
@@ -24,9 +24,11 @@
|
|||||||
var/can_flashlight = 0
|
var/can_flashlight = 0
|
||||||
var/scan_reagents = 0 //Can the wearer see reagents while it's equipped?
|
var/scan_reagents = 0 //Can the wearer see reagents while it's equipped?
|
||||||
|
|
||||||
|
var/clothing_flags = NONE
|
||||||
|
|
||||||
//Var modification - PLEASE be careful with this I know who you are and where you live
|
//Var modification - PLEASE be careful with this I know who you are and where you live
|
||||||
var/list/user_vars_to_edit = list() //VARNAME = VARVALUE eg: "name" = "butts"
|
var/list/user_vars_to_edit //VARNAME = VARVALUE eg: "name" = "butts"
|
||||||
var/list/user_vars_remembered = list() //Auto built by the above + dropped() + equipped()
|
var/list/user_vars_remembered //Auto built by the above + dropped() + equipped()
|
||||||
|
|
||||||
var/pocket_storage_component_path
|
var/pocket_storage_component_path
|
||||||
|
|
||||||
@@ -72,21 +74,22 @@
|
|||||||
..()
|
..()
|
||||||
if(!istype(user))
|
if(!istype(user))
|
||||||
return
|
return
|
||||||
if(user_vars_remembered && user_vars_remembered.len)
|
if(LAZYLEN(user_vars_remembered))
|
||||||
for(var/variable in user_vars_remembered)
|
for(var/variable in user_vars_remembered)
|
||||||
if(variable in user.vars)
|
if(variable in user.vars)
|
||||||
if(user.vars[variable] == user_vars_to_edit[variable]) //Is it still what we set it to? (if not we best not change it)
|
if(user.vars[variable] == user_vars_to_edit[variable]) //Is it still what we set it to? (if not we best not change it)
|
||||||
user.vars[variable] = user_vars_remembered[variable]
|
user.vars[variable] = user_vars_remembered[variable]
|
||||||
user_vars_remembered = list()
|
user_vars_remembered = initial(user_vars_remembered) // Effectively this sets it to null.
|
||||||
|
|
||||||
/obj/item/clothing/equipped(mob/user, slot)
|
/obj/item/clothing/equipped(mob/user, slot)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
if(slot_flags & slotdefine2slotbit(slot)) //Was equipped to a valid slot for this item?
|
if(slot_flags & slotdefine2slotbit(slot)) //Was equipped to a valid slot for this item?
|
||||||
for(var/variable in user_vars_to_edit)
|
if (LAZYLEN(user_vars_to_edit))
|
||||||
if(variable in user.vars)
|
for(var/variable in user_vars_to_edit)
|
||||||
user_vars_remembered[variable] = user.vars[variable]
|
if(variable in user.vars)
|
||||||
user.vars[variable] = user_vars_to_edit[variable]
|
LAZYSET(user_vars_remembered, variable, user.vars[variable])
|
||||||
|
user.vars[variable] = user_vars_to_edit[variable]
|
||||||
|
|
||||||
/obj/item/clothing/examine(mob/user)
|
/obj/item/clothing/examine(mob/user)
|
||||||
..()
|
..()
|
||||||
@@ -260,7 +263,7 @@ BLIND // can't see anything
|
|||||||
|
|
||||||
/obj/item/clothing/proc/visor_toggling() //handles all the actual toggling of flags
|
/obj/item/clothing/proc/visor_toggling() //handles all the actual toggling of flags
|
||||||
up = !up
|
up = !up
|
||||||
flags_1 ^= visor_flags
|
clothing_flags ^= visor_flags
|
||||||
flags_inv ^= visor_flags_inv
|
flags_inv ^= visor_flags_inv
|
||||||
flags_cover ^= initial(flags_cover)
|
flags_cover ^= initial(flags_cover)
|
||||||
icon_state = "[initial(icon_state)][up ? "up" : ""]"
|
icon_state = "[initial(icon_state)][up ? "up" : ""]"
|
||||||
@@ -285,4 +288,4 @@ BLIND // can't see anything
|
|||||||
Shreds.desc = "The sad remains of what used to be [name]."
|
Shreds.desc = "The sad remains of what used to be [name]."
|
||||||
deconstruct(FALSE)
|
deconstruct(FALSE)
|
||||||
else
|
else
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
item_color = "red"
|
item_color = "red"
|
||||||
dog_fashion = null
|
dog_fashion = null
|
||||||
name = "firefighter helmet"
|
name = "firefighter helmet"
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1
|
clothing_flags = STOPSPRESSUREDAMAGE
|
||||||
heat_protection = HEAD
|
heat_protection = HEAD
|
||||||
max_heat_protection_temperature = FIRE_HELM_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_HELM_MAX_TEMP_PROTECT
|
||||||
cold_protection = HEAD
|
cold_protection = HEAD
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
icon_state = "hardhat0_white"
|
icon_state = "hardhat0_white"
|
||||||
item_state = "hardhat0_white"
|
item_state = "hardhat0_white"
|
||||||
item_color = "white"
|
item_color = "white"
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1
|
clothing_flags = STOPSPRESSUREDAMAGE
|
||||||
heat_protection = HEAD
|
heat_protection = HEAD
|
||||||
max_heat_protection_temperature = FIRE_HELM_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_HELM_MAX_TEMP_PROTECT
|
||||||
cold_protection = HEAD
|
cold_protection = HEAD
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
dog_fashion = null
|
dog_fashion = null
|
||||||
name = "atmospheric technician's firefighting helmet"
|
name = "atmospheric technician's firefighting helmet"
|
||||||
desc = "A firefighter's helmet, able to keep the user cool in any situation."
|
desc = "A firefighter's helmet, able to keep the user cool in any situation."
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | THICKMATERIAL_1
|
clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL | BLOCK_GAS_SMOKE_EFFECT
|
||||||
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDEHAIR|HIDEFACIALHAIR
|
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDEHAIR|HIDEFACIALHAIR
|
||||||
heat_protection = HEAD
|
heat_protection = HEAD
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_HELM_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_HELM_MAX_TEMP_PROTECT
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
|
||||||
heat_protection = HEAD
|
heat_protection = HEAD
|
||||||
max_heat_protection_temperature = SPACE_HELM_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = SPACE_HELM_MAX_TEMP_PROTECT
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1
|
clothing_flags = STOPSPRESSUREDAMAGE
|
||||||
strip_delay = 80
|
strip_delay = 80
|
||||||
dog_fashion = null
|
dog_fashion = null
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
src.icon_state = initial(icon_state)
|
src.icon_state = initial(icon_state)
|
||||||
gas_transfer_coefficient = initial(gas_transfer_coefficient)
|
gas_transfer_coefficient = initial(gas_transfer_coefficient)
|
||||||
permeability_coefficient = initial(permeability_coefficient)
|
permeability_coefficient = initial(permeability_coefficient)
|
||||||
flags_1 |= visor_flags
|
clothing_flags |= visor_flags
|
||||||
flags_inv |= visor_flags_inv
|
flags_inv |= visor_flags_inv
|
||||||
flags_cover |= visor_flags_cover
|
flags_cover |= visor_flags_cover
|
||||||
to_chat(user, "<span class='notice'>You push \the [src] back into place.</span>")
|
to_chat(user, "<span class='notice'>You push \the [src] back into place.</span>")
|
||||||
@@ -43,11 +43,11 @@
|
|||||||
to_chat(user, "<span class='notice'>You push \the [src] out of the way.</span>")
|
to_chat(user, "<span class='notice'>You push \the [src] out of the way.</span>")
|
||||||
gas_transfer_coefficient = null
|
gas_transfer_coefficient = null
|
||||||
permeability_coefficient = null
|
permeability_coefficient = null
|
||||||
flags_1 &= ~visor_flags
|
clothing_flags &= ~visor_flags
|
||||||
flags_inv &= ~visor_flags_inv
|
flags_inv &= ~visor_flags_inv
|
||||||
flags_cover &= ~visor_flags_cover
|
flags_cover &= ~visor_flags_cover
|
||||||
if(adjusted_flags)
|
if(adjusted_flags)
|
||||||
slot_flags = adjusted_flags
|
slot_flags = adjusted_flags
|
||||||
if(user)
|
if(user)
|
||||||
user.wear_mask_update(src, toggle_off = mask_adjusted)
|
user.wear_mask_update(src, toggle_off = mask_adjusted)
|
||||||
user.update_action_buttons_icon() //when mask is adjusted out, we update all buttons icon so the user's potential internal tank correctly shows as off.
|
user.update_action_buttons_icon() //when mask is adjusted out, we update all buttons icon so the user's potential internal tank correctly shows as off.
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
icon_state = "breath"
|
icon_state = "breath"
|
||||||
item_state = "m_mask"
|
item_state = "m_mask"
|
||||||
body_parts_covered = 0
|
body_parts_covered = 0
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
visor_flags = MASKINTERNALS_1
|
visor_flags = MASKINTERNALS
|
||||||
w_class = WEIGHT_CLASS_SMALL
|
w_class = WEIGHT_CLASS_SMALL
|
||||||
gas_transfer_coefficient = 0.1
|
gas_transfer_coefficient = 0.1
|
||||||
permeability_coefficient = 0.5
|
permeability_coefficient = 0.5
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
name = "gas mask"
|
name = "gas mask"
|
||||||
desc = "A face-covering mask that can be connected to an air supply. While good for concealing your identity, it isn't good for blocking gas flow." //More accurate
|
desc = "A face-covering mask that can be connected to an air supply. While good for concealing your identity, it isn't good for blocking gas flow." //More accurate
|
||||||
icon_state = "gas_alt"
|
icon_state = "gas_alt"
|
||||||
flags_1 = BLOCK_GAS_SMOKE_EFFECT_1 | MASKINTERNALS_1
|
clothing_flags = BLOCK_GAS_SMOKE_EFFECT | MASKINTERNALS
|
||||||
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR
|
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR
|
||||||
w_class = WEIGHT_CLASS_NORMAL
|
w_class = WEIGHT_CLASS_NORMAL
|
||||||
item_state = "gas_alt"
|
item_state = "gas_alt"
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
/obj/item/clothing/mask/gas/clown_hat
|
/obj/item/clothing/mask/gas/clown_hat
|
||||||
name = "clown wig and mask"
|
name = "clown wig and mask"
|
||||||
desc = "A true prankster's facial attire. A clown is incomplete without his wig and mask."
|
desc = "A true prankster's facial attire. A clown is incomplete without his wig and mask."
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
icon_state = "clown"
|
icon_state = "clown"
|
||||||
item_state = "clown_hat"
|
item_state = "clown_hat"
|
||||||
flags_cover = MASKCOVERSEYES
|
flags_cover = MASKCOVERSEYES
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
/obj/item/clothing/mask/gas/sexyclown
|
/obj/item/clothing/mask/gas/sexyclown
|
||||||
name = "sexy-clown wig and mask"
|
name = "sexy-clown wig and mask"
|
||||||
desc = "A feminine clown mask for the dabbling crossdressers or female entertainers."
|
desc = "A feminine clown mask for the dabbling crossdressers or female entertainers."
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
icon_state = "sexyclown"
|
icon_state = "sexyclown"
|
||||||
item_state = "sexyclown"
|
item_state = "sexyclown"
|
||||||
flags_cover = MASKCOVERSEYES
|
flags_cover = MASKCOVERSEYES
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
/obj/item/clothing/mask/gas/mime
|
/obj/item/clothing/mask/gas/mime
|
||||||
name = "mime mask"
|
name = "mime mask"
|
||||||
desc = "The traditional mime's mask. It has an eerie facial posture."
|
desc = "The traditional mime's mask. It has an eerie facial posture."
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
icon_state = "mime"
|
icon_state = "mime"
|
||||||
item_state = "mime"
|
item_state = "mime"
|
||||||
flags_cover = MASKCOVERSEYES
|
flags_cover = MASKCOVERSEYES
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
/obj/item/clothing/mask/gas/monkeymask
|
/obj/item/clothing/mask/gas/monkeymask
|
||||||
name = "monkey mask"
|
name = "monkey mask"
|
||||||
desc = "A mask used when acting as a monkey."
|
desc = "A mask used when acting as a monkey."
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
icon_state = "monkeymask"
|
icon_state = "monkeymask"
|
||||||
item_state = "monkeymask"
|
item_state = "monkeymask"
|
||||||
flags_cover = MASKCOVERSEYES
|
flags_cover = MASKCOVERSEYES
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
/obj/item/clothing/mask/gas/sexymime
|
/obj/item/clothing/mask/gas/sexymime
|
||||||
name = "sexy mime mask"
|
name = "sexy mime mask"
|
||||||
desc = "A traditional female mime's mask."
|
desc = "A traditional female mime's mask."
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
icon_state = "sexymime"
|
icon_state = "sexymime"
|
||||||
item_state = "sexymime"
|
item_state = "sexymime"
|
||||||
flags_cover = MASKCOVERSEYES
|
flags_cover = MASKCOVERSEYES
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
name = "owl mask"
|
name = "owl mask"
|
||||||
desc = "Twoooo!"
|
desc = "Twoooo!"
|
||||||
icon_state = "owl"
|
icon_state = "owl"
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
flags_cover = MASKCOVERSEYES
|
flags_cover = MASKCOVERSEYES
|
||||||
resistance_flags = FLAMMABLE
|
resistance_flags = FLAMMABLE
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
actions_types = list(/datum/action/item_action/halt, /datum/action/item_action/adjust)
|
actions_types = list(/datum/action/item_action/halt, /datum/action/item_action/adjust)
|
||||||
icon_state = "sechailer"
|
icon_state = "sechailer"
|
||||||
item_state = "sechailer"
|
item_state = "sechailer"
|
||||||
flags_1 = BLOCK_GAS_SMOKE_EFFECT_1 | MASKINTERNALS_1
|
clothing_flags = BLOCK_GAS_SMOKE_EFFECT | MASKINTERNALS
|
||||||
flags_inv = HIDEFACIALHAIR|HIDEFACE
|
flags_inv = HIDEFACIALHAIR|HIDEFACE
|
||||||
w_class = WEIGHT_CLASS_SMALL
|
w_class = WEIGHT_CLASS_SMALL
|
||||||
visor_flags = BLOCK_GAS_SMOKE_EFFECT_1 | MASKINTERNALS_1
|
visor_flags = BLOCK_GAS_SMOKE_EFFECT | MASKINTERNALS
|
||||||
visor_flags_inv = HIDEFACE
|
visor_flags_inv = HIDEFACE
|
||||||
flags_cover = MASKCOVERSMOUTH
|
flags_cover = MASKCOVERSMOUTH
|
||||||
visor_flags_cover = MASKCOVERSMOUTH
|
visor_flags_cover = MASKCOVERSMOUTH
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
AddComponent(/datum/component/material_container, list(MAT_BANANIUM), 200000, TRUE)
|
AddComponent(/datum/component/material_container, list(MAT_BANANIUM), 200000, TRUE)
|
||||||
AddComponent(/datum/component/squeak, list('sound/items/bikehorn.ogg'=1), 75)
|
AddComponent(/datum/component/squeak, list('sound/items/bikehorn.ogg'=1), 75)
|
||||||
if(always_noslip)
|
if(always_noslip)
|
||||||
flags_1 |= NOSLIP_1
|
clothing_flags |= NOSLIP
|
||||||
|
|
||||||
/obj/item/clothing/shoes/clown_shoes/banana_shoes/step_action()
|
/obj/item/clothing/shoes/clown_shoes/banana_shoes/step_action()
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
if(bananium.amount(MAT_BANANIUM) < 100)
|
if(bananium.amount(MAT_BANANIUM) < 100)
|
||||||
on = !on
|
on = !on
|
||||||
if(!always_noslip)
|
if(!always_noslip)
|
||||||
flags_1 &= ~NOSLIP_1
|
clothing_flags &= ~NOSLIP
|
||||||
update_icon()
|
update_icon()
|
||||||
to_chat(loc, "<span class='warning'>You ran out of bananium!</span>")
|
to_chat(loc, "<span class='warning'>You ran out of bananium!</span>")
|
||||||
else
|
else
|
||||||
@@ -49,9 +49,9 @@
|
|||||||
to_chat(user, "<span class='notice'>You [on ? "activate" : "deactivate"] the prototype shoes.</span>")
|
to_chat(user, "<span class='notice'>You [on ? "activate" : "deactivate"] the prototype shoes.</span>")
|
||||||
if(!always_noslip)
|
if(!always_noslip)
|
||||||
if(on)
|
if(on)
|
||||||
flags_1 |= NOSLIP_1
|
clothing_flags |= NOSLIP
|
||||||
else
|
else
|
||||||
flags_1 &= ~NOSLIP_1
|
clothing_flags &= ~NOSLIP
|
||||||
else
|
else
|
||||||
to_chat(user, "<span class='warning'>You need bananium to turn the prototype shoes on!</span>")
|
to_chat(user, "<span class='warning'>You need bananium to turn the prototype shoes on!</span>")
|
||||||
|
|
||||||
|
|||||||
@@ -21,12 +21,12 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/item/clothing/shoes/magboots/attack_self(mob/user)
|
/obj/item/clothing/shoes/magboots/attack_self(mob/user)
|
||||||
if(src.magpulse)
|
if(magpulse)
|
||||||
src.flags_1 &= ~NOSLIP_1
|
clothing_flags &= ~NOSLIP
|
||||||
src.slowdown = SHOES_SLOWDOWN
|
slowdown = SHOES_SLOWDOWN
|
||||||
else
|
else
|
||||||
src.flags_1 |= NOSLIP_1
|
clothing_flags |= NOSLIP
|
||||||
src.slowdown = slowdown_active
|
slowdown = slowdown_active
|
||||||
magpulse = !magpulse
|
magpulse = !magpulse
|
||||||
icon_state = "[magboot_state][magpulse]"
|
icon_state = "[magboot_state][magpulse]"
|
||||||
to_chat(user, "<span class='notice'>You [magpulse ? "enable" : "disable"] the mag-pulse traction system.</span>")
|
to_chat(user, "<span class='notice'>You [magpulse ? "enable" : "disable"] the mag-pulse traction system.</span>")
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
A.UpdateButtonIcon()
|
A.UpdateButtonIcon()
|
||||||
|
|
||||||
/obj/item/clothing/shoes/magboots/negates_gravity()
|
/obj/item/clothing/shoes/magboots/negates_gravity()
|
||||||
return flags_1 & NOSLIP_1
|
return clothing_flags & NOSLIP
|
||||||
|
|
||||||
/obj/item/clothing/shoes/magboots/examine(mob/user)
|
/obj/item/clothing/shoes/magboots/examine(mob/user)
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
name = "\improper SWAT boots"
|
name = "\improper SWAT boots"
|
||||||
desc = "High speed, no drag combat boots."
|
desc = "High speed, no drag combat boots."
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
flags_1 = NOSLIP_1
|
clothing_flags = NOSLIP
|
||||||
armor = list("melee" = 40, "bullet" = 30, "laser" = 25, "energy" = 25, "bomb" = 50, "bio" = 30, "rad" = 30, "fire" = 90, "acid" = 50)
|
armor = list("melee" = 40, "bullet" = 30, "laser" = 25, "energy" = 25, "bomb" = 50, "bio" = 30, "rad" = 30, "fire" = 90, "acid" = 50)
|
||||||
|
|
||||||
/obj/item/clothing/shoes/sandal
|
/obj/item/clothing/shoes/sandal
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
name = "galoshes"
|
name = "galoshes"
|
||||||
icon_state = "galoshes"
|
icon_state = "galoshes"
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
flags_1 = NOSLIP_1
|
clothing_flags = NOSLIP
|
||||||
slowdown = SHOES_SLOWDOWN+1
|
slowdown = SHOES_SLOWDOWN+1
|
||||||
strip_delay = 50
|
strip_delay = 50
|
||||||
equip_delay_other = 50
|
equip_delay_other = 50
|
||||||
@@ -311,4 +311,4 @@
|
|||||||
else
|
else
|
||||||
set_light(0)
|
set_light(0)
|
||||||
lightCycle = 0
|
lightCycle = 0
|
||||||
active = FALSE
|
active = FALSE
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
name = "space helmet"
|
name = "space helmet"
|
||||||
icon_state = "spaceold"
|
icon_state = "spaceold"
|
||||||
desc = "A special helmet with solar UV shielding to protect your eyes from harmful rays."
|
desc = "A special helmet with solar UV shielding to protect your eyes from harmful rays."
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | THICKMATERIAL_1
|
clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL
|
||||||
item_state = "spaceold"
|
item_state = "spaceold"
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 100, "rad" = 50, "fire" = 80, "acid" = 70)
|
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 100, "rad" = 50, "fire" = 80, "acid" = 70)
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
w_class = WEIGHT_CLASS_BULKY
|
w_class = WEIGHT_CLASS_BULKY
|
||||||
gas_transfer_coefficient = 0.01
|
gas_transfer_coefficient = 0.01
|
||||||
permeability_coefficient = 0.02
|
permeability_coefficient = 0.02
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | THICKMATERIAL_1
|
clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL
|
||||||
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals)
|
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals)
|
||||||
slowdown = 1
|
slowdown = 1
|
||||||
@@ -42,4 +42,4 @@
|
|||||||
max_heat_protection_temperature = SPACE_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = SPACE_SUIT_MAX_TEMP_PROTECT
|
||||||
strip_delay = 80
|
strip_delay = 80
|
||||||
equip_delay_other = 80
|
equip_delay_other = 80
|
||||||
resistance_flags = NONE
|
resistance_flags = NONE
|
||||||
|
|||||||
@@ -723,9 +723,9 @@
|
|||||||
if(suit)
|
if(suit)
|
||||||
active = toggle
|
active = toggle
|
||||||
if(active)
|
if(active)
|
||||||
src.flags_1 |= NOSLIP_1
|
clothing_flags |= NOSLIP
|
||||||
if(!active)
|
if(!active)
|
||||||
src.flags_1 &= ~NOSLIP_1
|
clothing_flags &= ~NOSLIP
|
||||||
|
|
||||||
/obj/item/clothing/shoes/flightshoes/item_action_slot_check(slot)
|
/obj/item/clothing/shoes/flightshoes/item_action_slot_check(slot)
|
||||||
return slot == slot_shoes
|
return slot == slot_shoes
|
||||||
|
|||||||
@@ -263,7 +263,7 @@
|
|||||||
var/obj/item/clothing/suit/space/hardsuit/syndi/linkedsuit = null
|
var/obj/item/clothing/suit/space/hardsuit/syndi/linkedsuit = null
|
||||||
actions_types = list(/datum/action/item_action/toggle_helmet_mode)
|
actions_types = list(/datum/action/item_action/toggle_helmet_mode)
|
||||||
visor_flags_inv = HIDEMASK|HIDEEYES|HIDEFACE|HIDEFACIALHAIR
|
visor_flags_inv = HIDEMASK|HIDEEYES|HIDEFACE|HIDEFACIALHAIR
|
||||||
visor_flags = STOPSPRESSUREDMAGE_1
|
visor_flags = STOPSPRESSUREDAMAGE
|
||||||
|
|
||||||
/obj/item/clothing/head/helmet/space/hardsuit/syndi/update_icon()
|
/obj/item/clothing/head/helmet/space/hardsuit/syndi/update_icon()
|
||||||
icon_state = "hardsuit[on]-[item_color]"
|
icon_state = "hardsuit[on]-[item_color]"
|
||||||
@@ -283,7 +283,7 @@
|
|||||||
name = initial(name)
|
name = initial(name)
|
||||||
desc = initial(desc)
|
desc = initial(desc)
|
||||||
set_light(brightness_on)
|
set_light(brightness_on)
|
||||||
flags_1 |= visor_flags
|
clothing_flags |= visor_flags
|
||||||
flags_cover |= HEADCOVERSEYES | HEADCOVERSMOUTH
|
flags_cover |= HEADCOVERSEYES | HEADCOVERSMOUTH
|
||||||
flags_inv |= visor_flags_inv
|
flags_inv |= visor_flags_inv
|
||||||
cold_protection |= HEAD
|
cold_protection |= HEAD
|
||||||
@@ -292,7 +292,7 @@
|
|||||||
name += " (combat)"
|
name += " (combat)"
|
||||||
desc = alt_desc
|
desc = alt_desc
|
||||||
set_light(0)
|
set_light(0)
|
||||||
flags_1 &= ~visor_flags
|
clothing_flags &= ~visor_flags
|
||||||
flags_cover &= ~(HEADCOVERSEYES | HEADCOVERSMOUTH)
|
flags_cover &= ~(HEADCOVERSEYES | HEADCOVERSMOUTH)
|
||||||
flags_inv &= ~visor_flags_inv
|
flags_inv &= ~visor_flags_inv
|
||||||
cold_protection &= ~HEAD
|
cold_protection &= ~HEAD
|
||||||
@@ -313,13 +313,13 @@
|
|||||||
linkedsuit.name = initial(linkedsuit.name)
|
linkedsuit.name = initial(linkedsuit.name)
|
||||||
linkedsuit.desc = initial(linkedsuit.desc)
|
linkedsuit.desc = initial(linkedsuit.desc)
|
||||||
linkedsuit.slowdown = 1
|
linkedsuit.slowdown = 1
|
||||||
linkedsuit.flags_1 |= STOPSPRESSUREDMAGE_1
|
linkedsuit.clothing_flags |= STOPSPRESSUREDAMAGE
|
||||||
linkedsuit.cold_protection |= CHEST | GROIN | LEGS | FEET | ARMS | HANDS
|
linkedsuit.cold_protection |= CHEST | GROIN | LEGS | FEET | ARMS | HANDS
|
||||||
else
|
else
|
||||||
linkedsuit.name += " (combat)"
|
linkedsuit.name += " (combat)"
|
||||||
linkedsuit.desc = linkedsuit.alt_desc
|
linkedsuit.desc = linkedsuit.alt_desc
|
||||||
linkedsuit.slowdown = 0
|
linkedsuit.slowdown = 0
|
||||||
linkedsuit.flags_1 &= ~(STOPSPRESSUREDMAGE_1)
|
linkedsuit.clothing_flags &= ~STOPSPRESSUREDAMAGE
|
||||||
linkedsuit.cold_protection &= ~(CHEST | GROIN | LEGS | FEET | ARMS | HANDS)
|
linkedsuit.cold_protection &= ~(CHEST | GROIN | LEGS | FEET | ARMS | HANDS)
|
||||||
|
|
||||||
linkedsuit.icon_state = "hardsuit[on]-[item_color]"
|
linkedsuit.icon_state = "hardsuit[on]-[item_color]"
|
||||||
@@ -704,7 +704,7 @@
|
|||||||
icon_state = "ert_medical"
|
icon_state = "ert_medical"
|
||||||
item_state = "ert_medical"
|
item_state = "ert_medical"
|
||||||
item_color = "ert_medical"
|
item_color = "ert_medical"
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | THICKMATERIAL_1 | NODROP_1 //Dont want people changing into the other teams gear
|
flags_1 = NODROP_1 //Dont want people changing into the other teams gear
|
||||||
helmettype = /obj/item/clothing/head/helmet/space/hardsuit/shielded/ctf
|
helmettype = /obj/item/clothing/head/helmet/space/hardsuit/shielded/ctf
|
||||||
armor = list("melee" = 0, "bullet" = 30, "laser" = 30, "energy" = 30, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 95, "acid" = 95)
|
armor = list("melee" = 0, "bullet" = 30, "laser" = 30, "energy" = 30, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 95, "acid" = 95)
|
||||||
slowdown = 0
|
slowdown = 0
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ Contains:
|
|||||||
icon_state = "beret_badge"
|
icon_state = "beret_badge"
|
||||||
dynamic_hair_suffix = "+generic"
|
dynamic_hair_suffix = "+generic"
|
||||||
dynamic_fhair_suffix = "+generic"
|
dynamic_fhair_suffix = "+generic"
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1
|
|
||||||
flags_inv = 0
|
flags_inv = 0
|
||||||
armor = list("melee" = 80, "bullet" = 80, "laser" = 50, "energy" = 50, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 80, "bullet" = 80, "laser" = 50, "energy" = 50, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
||||||
strip_delay = 130
|
strip_delay = 130
|
||||||
@@ -114,7 +113,6 @@ Contains:
|
|||||||
name = "Santa's hat"
|
name = "Santa's hat"
|
||||||
desc = "Ho ho ho. Merrry X-mas!"
|
desc = "Ho ho ho. Merrry X-mas!"
|
||||||
icon_state = "santahat"
|
icon_state = "santahat"
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1
|
|
||||||
flags_cover = HEADCOVERSEYES
|
flags_cover = HEADCOVERSEYES
|
||||||
|
|
||||||
dog_fashion = /datum/dog_fashion/head/santa
|
dog_fashion = /datum/dog_fashion/head/santa
|
||||||
@@ -125,7 +123,6 @@ Contains:
|
|||||||
icon_state = "santa"
|
icon_state = "santa"
|
||||||
item_state = "santa"
|
item_state = "santa"
|
||||||
slowdown = 0
|
slowdown = 0
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1
|
|
||||||
allowed = list(/obj/item) //for stuffing exta special presents
|
allowed = list(/obj/item) //for stuffing exta special presents
|
||||||
|
|
||||||
|
|
||||||
@@ -136,7 +133,6 @@ Contains:
|
|||||||
icon_state = "pirate"
|
icon_state = "pirate"
|
||||||
item_state = "pirate"
|
item_state = "pirate"
|
||||||
armor = list("melee" = 30, "bullet" = 50, "laser" = 30,"energy" = 15, "bomb" = 30, "bio" = 30, "rad" = 30, "fire" = 60, "acid" = 75)
|
armor = list("melee" = 30, "bullet" = 50, "laser" = 30,"energy" = 15, "bomb" = 30, "bio" = 30, "rad" = 30, "fire" = 60, "acid" = 75)
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1
|
|
||||||
flags_inv = HIDEHAIR
|
flags_inv = HIDEHAIR
|
||||||
strip_delay = 40
|
strip_delay = 40
|
||||||
equip_delay_other = 20
|
equip_delay_other = 20
|
||||||
@@ -169,7 +165,7 @@ Contains:
|
|||||||
item_color = "ert_commander"
|
item_color = "ert_commander"
|
||||||
armor = list("melee" = 65, "bullet" = 50, "laser" = 50, "energy" = 50, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 80, "acid" = 80)
|
armor = list("melee" = 65, "bullet" = 50, "laser" = 50, "energy" = 50, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 80, "acid" = 80)
|
||||||
strip_delay = 130
|
strip_delay = 130
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | THICKMATERIAL_1 | NODROP_1
|
flags_1 = NODROP_1
|
||||||
brightness_on = 7
|
brightness_on = 7
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/hardsuit/ert
|
/obj/item/clothing/suit/space/hardsuit/ert
|
||||||
@@ -269,7 +265,7 @@ Contains:
|
|||||||
armor = list("melee" = -20, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 100, "rad" = 75, "fire" = 60, "acid" = 75) //As whimpy as a space carp
|
armor = list("melee" = -20, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 100, "rad" = 75, "fire" = 60, "acid" = 75) //As whimpy as a space carp
|
||||||
brightness_on = 0 //luminosity when on
|
brightness_on = 0 //luminosity when on
|
||||||
actions_types = list()
|
actions_types = list()
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | THICKMATERIAL_1 | NODROP_1
|
flags_1 = NODROP_1
|
||||||
|
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/hardsuit/carp
|
/obj/item/clothing/suit/space/hardsuit/carp
|
||||||
@@ -351,11 +347,9 @@ Contains:
|
|||||||
/obj/item/clothing/suit/space/fragile/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK)
|
/obj/item/clothing/suit/space/fragile/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK)
|
||||||
if(!torn && prob(50))
|
if(!torn && prob(50))
|
||||||
to_chat(owner, "<span class='warning'>[src] tears from the damage, breaking the air-tight seal!</span>")
|
to_chat(owner, "<span class='warning'>[src] tears from the damage, breaking the air-tight seal!</span>")
|
||||||
src.flags_1 &= ~STOPSPRESSUREDMAGE_1
|
clothing_flags &= ~STOPSPRESSUREDAMAGE
|
||||||
src.name = "torn [src]."
|
name = "torn [src]."
|
||||||
src.desc = "A bulky suit meant to protect the user during emergency situations, at least until someone tore a hole in the suit."
|
desc = "A bulky suit meant to protect the user during emergency situations, at least until someone tore a hole in the suit."
|
||||||
src.torn = TRUE
|
torn = TRUE
|
||||||
playsound(loc, 'sound/weapons/slashmiss.ogg', 50, 1)
|
playsound(loc, 'sound/weapons/slashmiss.ogg', 50, 1)
|
||||||
playsound(loc, 'sound/effects/refill.ogg', 50, 1)
|
playsound(loc, 'sound/effects/refill.ogg', 50, 1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -355,7 +355,7 @@
|
|||||||
w_class = WEIGHT_CLASS_BULKY
|
w_class = WEIGHT_CLASS_BULKY
|
||||||
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
allowed = list(/obj/item/gun/energy, /obj/item/melee/baton, /obj/item/restraints/handcuffs, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman)
|
allowed = list(/obj/item/gun/energy, /obj/item/melee/baton, /obj/item/restraints/handcuffs, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman)
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
||||||
cold_protection = CHEST | GROIN | LEGS | FEET | ARMS | HANDS
|
cold_protection = CHEST | GROIN | LEGS | FEET | ARMS | HANDS
|
||||||
min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
|
||||||
@@ -370,7 +370,7 @@
|
|||||||
item_state = "swat_suit"
|
item_state = "swat_suit"
|
||||||
w_class = WEIGHT_CLASS_BULKY
|
w_class = WEIGHT_CLASS_BULKY
|
||||||
gas_transfer_coefficient = 0.9
|
gas_transfer_coefficient = 0.9
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
slowdown = 3
|
slowdown = 3
|
||||||
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
||||||
@@ -379,7 +379,7 @@
|
|||||||
/obj/item/clothing/suit/armor/tdome
|
/obj/item/clothing/suit/armor/tdome
|
||||||
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
cold_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
cold_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
armor = list("melee" = 80, "bullet" = 80, "laser" = 50, "energy" = 50, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 90, "acid" = 90)
|
armor = list("melee" = 80, "bullet" = 80, "laser" = 50, "energy" = 50, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 90, "acid" = 90)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
icon_state = "bio"
|
icon_state = "bio"
|
||||||
desc = "A hood that protects the head and face from biological comtaminants."
|
desc = "A hood that protects the head and face from biological comtaminants."
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL | BLOCK_GAS_SMOKE_EFFECT
|
||||||
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 100, "rad" = 80, "fire" = 30, "acid" = 100)
|
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 100, "rad" = 80, "fire" = 30, "acid" = 100)
|
||||||
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR|HIDEFACE
|
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR|HIDEFACE
|
||||||
resistance_flags = ACID_PROOF
|
resistance_flags = ACID_PROOF
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
w_class = WEIGHT_CLASS_BULKY
|
w_class = WEIGHT_CLASS_BULKY
|
||||||
gas_transfer_coefficient = 0.01
|
gas_transfer_coefficient = 0.01
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
slowdown = 1
|
slowdown = 1
|
||||||
allowed = list(/obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman, /obj/item/pen, /obj/item/device/flashlight/pen, /obj/item/reagent_containers/dropper, /obj/item/reagent_containers/syringe, /obj/item/reagent_containers/hypospray)
|
allowed = list(/obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman, /obj/item/pen, /obj/item/device/flashlight/pen, /obj/item/reagent_containers/dropper, /obj/item/reagent_containers/syringe, /obj/item/reagent_containers/hypospray)
|
||||||
|
|||||||
@@ -279,7 +279,7 @@
|
|||||||
icon_state = "bee"
|
icon_state = "bee"
|
||||||
item_state = "labcoat"
|
item_state = "labcoat"
|
||||||
body_parts_covered = CHEST|GROIN|ARMS
|
body_parts_covered = CHEST|GROIN|ARMS
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
hoodtype = /obj/item/clothing/head/hooded/bee_hood
|
hoodtype = /obj/item/clothing/head/hooded/bee_hood
|
||||||
|
|
||||||
/obj/item/clothing/head/hooded/bee_hood
|
/obj/item/clothing/head/hooded/bee_hood
|
||||||
@@ -287,7 +287,7 @@
|
|||||||
desc = "A hood attached to a bee costume."
|
desc = "A hood attached to a bee costume."
|
||||||
icon_state = "bee"
|
icon_state = "bee"
|
||||||
body_parts_covered = HEAD
|
body_parts_covered = HEAD
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
flags_inv = HIDEHAIR|HIDEEARS
|
flags_inv = HIDEHAIR|HIDEEARS
|
||||||
dynamic_hair_suffix = ""
|
dynamic_hair_suffix = ""
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman, /obj/item/extinguisher, /obj/item/crowbar)
|
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman, /obj/item/extinguisher, /obj/item/crowbar)
|
||||||
slowdown = 1
|
slowdown = 1
|
||||||
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
|
||||||
flags_1 = STOPSPRESSUREDMAGE_1 | THICKMATERIAL_1
|
clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL
|
||||||
heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
max_heat_protection_temperature = FIRE_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_SUIT_MAX_TEMP_PROTECT
|
||||||
cold_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
cold_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
name = "bomb hood"
|
name = "bomb hood"
|
||||||
desc = "Use in case of bomb."
|
desc = "Use in case of bomb."
|
||||||
icon_state = "bombsuit"
|
icon_state = "bombsuit"
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
armor = list("melee" = 20, "bullet" = 0, "laser" = 20,"energy" = 10, "bomb" = 100, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 50)
|
armor = list("melee" = 20, "bullet" = 0, "laser" = 20,"energy" = 10, "bomb" = 100, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 50)
|
||||||
flags_inv = HIDEFACE|HIDEMASK|HIDEEARS|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR
|
flags_inv = HIDEFACE|HIDEMASK|HIDEEARS|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR
|
||||||
dynamic_hair_suffix = ""
|
dynamic_hair_suffix = ""
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
w_class = WEIGHT_CLASS_BULKY
|
w_class = WEIGHT_CLASS_BULKY
|
||||||
gas_transfer_coefficient = 0.01
|
gas_transfer_coefficient = 0.01
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
slowdown = 2
|
slowdown = 2
|
||||||
armor = list("melee" = 20, "bullet" = 0, "laser" = 20,"energy" = 10, "bomb" = 100, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 50)
|
armor = list("melee" = 20, "bullet" = 0, "laser" = 20,"energy" = 10, "bomb" = 100, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 50)
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
name = "radiation hood"
|
name = "radiation hood"
|
||||||
icon_state = "rad"
|
icon_state = "rad"
|
||||||
desc = "A hood with radiation protective properties. The label reads, 'Made with lead. Please do not consume insulation.'"
|
desc = "A hood with radiation protective properties. The label reads, 'Made with lead. Please do not consume insulation.'"
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
flags_inv = HIDEMASK|HIDEEARS|HIDEFACE|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR
|
flags_inv = HIDEMASK|HIDEEARS|HIDEFACE|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR
|
||||||
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 60, "rad" = 100, "fire" = 30, "acid" = 30)
|
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 60, "rad" = 100, "fire" = 30, "acid" = 30)
|
||||||
strip_delay = 60
|
strip_delay = 60
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
w_class = WEIGHT_CLASS_BULKY
|
w_class = WEIGHT_CLASS_BULKY
|
||||||
gas_transfer_coefficient = 0.9
|
gas_transfer_coefficient = 0.9
|
||||||
permeability_coefficient = 0.5
|
permeability_coefficient = 0.5
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS|HANDS
|
||||||
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman, /obj/item/device/geiger_counter)
|
allowed = list(/obj/item/device/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman, /obj/item/device/geiger_counter)
|
||||||
slowdown = 1.5
|
slowdown = 1.5
|
||||||
@@ -153,4 +153,4 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
AddComponent(/datum/component/rad_insulation, RAD_NO_INSULATION, TRUE, FALSE)
|
AddComponent(/datum/component/rad_insulation, RAD_NO_INSULATION, TRUE, FALSE)
|
||||||
// Just don't want things to be irradiated inside this
|
// Just don't want things to be irradiated inside this
|
||||||
// Except things on the mob aren't even inside the suit so ehhhhhh
|
// Except things on the mob aren't even inside the suit so ehhhhhh
|
||||||
|
|||||||
@@ -18,8 +18,11 @@
|
|||||||
/mob/living/carbon/human/bee_friendly()
|
/mob/living/carbon/human/bee_friendly()
|
||||||
if(dna && dna.species && dna.species.id == "pod") //bees pollinate plants, duh.
|
if(dna && dna.species && dna.species.id == "pod") //bees pollinate plants, duh.
|
||||||
return 1
|
return 1
|
||||||
if((wear_suit && (wear_suit.flags_1 & THICKMATERIAL_1)) && (head && (head.flags_1 & THICKMATERIAL_1)))
|
if (wear_suit && head && is_type_in_typecache(wear_suit, GLOB.typecache_clothing) && is_type_in_typecache(wear_suit, GLOB.typecache_clothing))
|
||||||
return 1
|
var/obj/item/clothing/CS = wear_suit
|
||||||
|
var/obj/item/clothing/CH = head
|
||||||
|
if (CS.clothing_flags & CH.clothing_flags & THICKMATERIAL)
|
||||||
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
desc = "Keeps the lil buzzing buggers out of your eyes."
|
desc = "Keeps the lil buzzing buggers out of your eyes."
|
||||||
icon_state = "beekeeper"
|
icon_state = "beekeeper"
|
||||||
item_state = "beekeeper"
|
item_state = "beekeeper"
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
|
|
||||||
|
|
||||||
/obj/item/clothing/suit/beekeeper_suit
|
/obj/item/clothing/suit/beekeeper_suit
|
||||||
@@ -12,5 +12,4 @@
|
|||||||
desc = "Keeps the lil buzzing buggers away from your squishy bits."
|
desc = "Keeps the lil buzzing buggers away from your squishy bits."
|
||||||
icon_state = "beekeeper"
|
icon_state = "beekeeper"
|
||||||
item_state = "beekeeper"
|
item_state = "beekeeper"
|
||||||
flags_1 = THICKMATERIAL_1
|
clothing_flags = THICKMATERIAL
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
name = "explorer gas mask"
|
name = "explorer gas mask"
|
||||||
desc = "A military-grade gas mask that can be connected to an air supply."
|
desc = "A military-grade gas mask that can be connected to an air supply."
|
||||||
icon_state = "gas_mining"
|
icon_state = "gas_mining"
|
||||||
visor_flags = BLOCK_GAS_SMOKE_EFFECT_1 | MASKINTERNALS_1
|
visor_flags = BLOCK_GAS_SMOKE_EFFECT | MASKINTERNALS
|
||||||
visor_flags_inv = HIDEFACIALHAIR
|
visor_flags_inv = HIDEFACIALHAIR
|
||||||
visor_flags_cover = MASKCOVERSMOUTH
|
visor_flags_cover = MASKCOVERSMOUTH
|
||||||
actions_types = list(/datum/action/item_action/adjust)
|
actions_types = list(/datum/action/item_action/adjust)
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
desc = "Hostile Environment Cross-Kinetic Suit: A suit designed to withstand the wide variety of hazards from Lavaland. It wasn't enough for its last owner."
|
desc = "Hostile Environment Cross-Kinetic Suit: A suit designed to withstand the wide variety of hazards from Lavaland. It wasn't enough for its last owner."
|
||||||
icon_state = "hostile_env"
|
icon_state = "hostile_env"
|
||||||
item_state = "hostile_env"
|
item_state = "hostile_env"
|
||||||
flags_1 = THICKMATERIAL_1 //not spaceproof
|
clothing_flags = THICKMATERIAL //not spaceproof
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
|
||||||
resistance_flags = FIRE_PROOF | LAVA_PROOF
|
resistance_flags = FIRE_PROOF | LAVA_PROOF
|
||||||
slowdown = 0
|
slowdown = 0
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
item_state = "hostile_env"
|
item_state = "hostile_env"
|
||||||
w_class = WEIGHT_CLASS_NORMAL
|
w_class = WEIGHT_CLASS_NORMAL
|
||||||
max_heat_protection_temperature = FIRE_IMMUNITY_HELM_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = FIRE_IMMUNITY_HELM_MAX_TEMP_PROTECT
|
||||||
flags_1 = THICKMATERIAL_1 // no space protection
|
clothing_flags = THICKMATERIAL // no space protection
|
||||||
armor = list("melee" = 70, "bullet" = 40, "laser" = 10, "energy" = 10, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 70, "bullet" = 40, "laser" = 10, "energy" = 10, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
||||||
resistance_flags = FIRE_PROOF | LAVA_PROOF
|
resistance_flags = FIRE_PROOF | LAVA_PROOF
|
||||||
|
|
||||||
@@ -106,4 +106,3 @@
|
|||||||
var/mutable_appearance/M = mutable_appearance('icons/mob/head.dmi', "hostile_env_glass")
|
var/mutable_appearance/M = mutable_appearance('icons/mob/head.dmi', "hostile_env_glass")
|
||||||
M.appearance_flags = RESET_COLOR
|
M.appearance_flags = RESET_COLOR
|
||||||
. += M
|
. += M
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
icon_state = "facehugger"
|
icon_state = "facehugger"
|
||||||
item_state = "facehugger"
|
item_state = "facehugger"
|
||||||
w_class = WEIGHT_CLASS_TINY //note: can be picked up by aliens unlike most other items of w_class below 4
|
w_class = WEIGHT_CLASS_TINY //note: can be picked up by aliens unlike most other items of w_class below 4
|
||||||
flags_1 = MASKINTERNALS_1
|
clothing_flags = MASKINTERNALS
|
||||||
throw_range = 5
|
throw_range = 5
|
||||||
tint = 3
|
tint = 3
|
||||||
flags_cover = MASKCOVERSEYES | MASKCOVERSMOUTH
|
flags_cover = MASKCOVERSEYES | MASKCOVERSMOUTH
|
||||||
|
|||||||
@@ -234,7 +234,7 @@
|
|||||||
if(href_list["internal"])
|
if(href_list["internal"])
|
||||||
var/slot = text2num(href_list["internal"])
|
var/slot = text2num(href_list["internal"])
|
||||||
var/obj/item/ITEM = get_item_by_slot(slot)
|
var/obj/item/ITEM = get_item_by_slot(slot)
|
||||||
if(ITEM && istype(ITEM, /obj/item/tank) && wear_mask && (wear_mask.flags_1 & MASKINTERNALS_1))
|
if(ITEM && istype(ITEM, /obj/item/tank) && wear_mask && (wear_mask.clothing_flags & MASKINTERNALS))
|
||||||
visible_message("<span class='danger'>[usr] tries to [internal ? "close" : "open"] the valve on [src]'s [ITEM.name].</span>", \
|
visible_message("<span class='danger'>[usr] tries to [internal ? "close" : "open"] the valve on [src]'s [ITEM.name].</span>", \
|
||||||
"<span class='userdanger'>[usr] tries to [internal ? "close" : "open"] the valve on [src]'s [ITEM.name].</span>")
|
"<span class='userdanger'>[usr] tries to [internal ? "close" : "open"] the valve on [src]'s [ITEM.name].</span>")
|
||||||
if(do_mob(usr, src, POCKET_STRIP_DELAY))
|
if(do_mob(usr, src, POCKET_STRIP_DELAY))
|
||||||
@@ -242,7 +242,7 @@
|
|||||||
internal = null
|
internal = null
|
||||||
update_internals_hud_icon(0)
|
update_internals_hud_icon(0)
|
||||||
else if(ITEM && istype(ITEM, /obj/item/tank))
|
else if(ITEM && istype(ITEM, /obj/item/tank))
|
||||||
if((wear_mask && (wear_mask.flags_1 & MASKINTERNALS_1)) || getorganslot(ORGAN_SLOT_BREATHING_TUBE))
|
if((wear_mask && (wear_mask.clothing_flags & MASKINTERNALS)) || getorganslot(ORGAN_SLOT_BREATHING_TUBE))
|
||||||
internal = ITEM
|
internal = ITEM
|
||||||
update_internals_hud_icon(1)
|
update_internals_hud_icon(1)
|
||||||
|
|
||||||
|
|||||||
@@ -495,12 +495,17 @@
|
|||||||
. = 0
|
. = 0
|
||||||
// If targeting the head, see if the head item is thin enough.
|
// If targeting the head, see if the head item is thin enough.
|
||||||
// If targeting anything else, see if the wear suit is thin enough.
|
// If targeting anything else, see if the wear suit is thin enough.
|
||||||
if(above_neck(target_zone))
|
if (!penetrate_thick)
|
||||||
if(head && head.flags_1 & THICKMATERIAL_1 && !penetrate_thick)
|
if(above_neck(target_zone))
|
||||||
. = 0
|
if(head && is_type_in_typecache(head, GLOB.typecache_clothing))
|
||||||
else
|
var/obj/item/clothing/CH = head
|
||||||
if(wear_suit && wear_suit.flags_1 & THICKMATERIAL_1 && !penetrate_thick)
|
if (CH.clothing_flags & THICKMATERIAL)
|
||||||
. = 0
|
. = 0
|
||||||
|
else
|
||||||
|
if(wear_suit && is_type_in_typecache(wear_suit, GLOB.typecache_clothing))
|
||||||
|
var/obj/item/clothing/CS = wear_suit
|
||||||
|
if (CS.clothing_flags & THICKMATERIAL)
|
||||||
|
. = 0
|
||||||
if(!. && error_msg && user)
|
if(!. && error_msg && user)
|
||||||
// Might need re-wording.
|
// Might need re-wording.
|
||||||
to_chat(user, "<span class='alert'>There is no exposed flesh or thin material [above_neck(target_zone) ? "on [p_their()] head" : "on [p_their()] body"].</span>")
|
to_chat(user, "<span class='alert'>There is no exposed flesh or thin material [above_neck(target_zone) ? "on [p_their()] head" : "on [p_their()] body"].</span>")
|
||||||
|
|||||||
@@ -8,14 +8,21 @@
|
|||||||
/mob/living/carbon/human/slip(knockdown_amount, obj/O, lube)
|
/mob/living/carbon/human/slip(knockdown_amount, obj/O, lube)
|
||||||
if(has_trait(TRAIT_NOSLIPALL))
|
if(has_trait(TRAIT_NOSLIPALL))
|
||||||
return 0
|
return 0
|
||||||
if((isobj(shoes) && (shoes.flags_1&NOSLIP_1)) || has_trait(TRAIT_NOSLIPWATER) && !(lube&GALOSHES_DONT_HELP))
|
if (!(lube&GALOSHES_DONT_HELP))
|
||||||
return 0
|
if(has_trait(TRAIT_NOSLIPWATER))
|
||||||
|
return 0
|
||||||
|
if(shoes && is_type_in_typecache(shoes, GLOB.typecache_clothing))
|
||||||
|
var/obj/item/clothing/CS = shoes
|
||||||
|
if (CS.clothing_flags & NOSLIP)
|
||||||
|
return 0
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/mob/living/carbon/human/experience_pressure_difference()
|
/mob/living/carbon/human/experience_pressure_difference()
|
||||||
playsound(src, 'sound/effects/space_wind.ogg', 50, 1)
|
playsound(src, 'sound/effects/space_wind.ogg', 50, 1)
|
||||||
if(shoes && shoes.flags_1&NOSLIP_1)
|
if(shoes && is_type_in_typecache(shoes, GLOB.typecache_clothing))
|
||||||
return 0
|
var/obj/item/clothing/S = shoes
|
||||||
|
if (S.clothing_flags & NOSLIP)
|
||||||
|
return 0
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/mob/living/carbon/human/mob_has_gravity()
|
/mob/living/carbon/human/mob_has_gravity()
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/mob/living/carbon/human/calculate_affecting_pressure(pressure)
|
/mob/living/carbon/human/calculate_affecting_pressure(pressure)
|
||||||
|
<<<<<<< HEAD
|
||||||
if((wear_suit && (wear_suit.flags_1 & STOPSPRESSUREDMAGE_1)) && (head && (head.flags_1 & STOPSPRESSUREDMAGE_1)))
|
if((wear_suit && (wear_suit.flags_1 & STOPSPRESSUREDMAGE_1)) && (head && (head.flags_1 & STOPSPRESSUREDMAGE_1)))
|
||||||
return ONE_ATMOSPHERE
|
return ONE_ATMOSPHERE
|
||||||
if(istype(loc, /obj/belly))
|
if(istype(loc, /obj/belly))
|
||||||
@@ -52,6 +53,14 @@
|
|||||||
return ONE_ATMOSPHERE
|
return ONE_ATMOSPHERE
|
||||||
else
|
else
|
||||||
return pressure
|
return pressure
|
||||||
|
=======
|
||||||
|
if (wear_suit && head && is_type_in_typecache(wear_suit, GLOB.typecache_clothing) && is_type_in_typecache(wear_suit, GLOB.typecache_clothing))
|
||||||
|
var/obj/item/clothing/CS = wear_suit
|
||||||
|
var/obj/item/clothing/CH = head
|
||||||
|
if (CS.clothing_flags & CH.clothing_flags & STOPSPRESSUREDAMAGE)
|
||||||
|
return ONE_ATMOSPHERE
|
||||||
|
return pressure
|
||||||
|
>>>>>>> 98f8ca7... Moves several clothing-specific flags from /atom to their proper type (#37486)
|
||||||
|
|
||||||
|
|
||||||
/mob/living/carbon/human/handle_traits()
|
/mob/living/carbon/human/handle_traits()
|
||||||
@@ -290,13 +299,14 @@
|
|||||||
|
|
||||||
/mob/living/carbon/human/has_smoke_protection()
|
/mob/living/carbon/human/has_smoke_protection()
|
||||||
if(wear_mask)
|
if(wear_mask)
|
||||||
if(wear_mask.flags_1 & BLOCK_GAS_SMOKE_EFFECT_1)
|
if(wear_mask.clothing_flags & BLOCK_GAS_SMOKE_EFFECT)
|
||||||
return TRUE
|
return TRUE
|
||||||
if(glasses)
|
if(glasses)
|
||||||
if(glasses.flags_1 & BLOCK_GAS_SMOKE_EFFECT_1)
|
if(glasses.clothing_flags & BLOCK_GAS_SMOKE_EFFECT)
|
||||||
return TRUE
|
return TRUE
|
||||||
if(head)
|
if(head && is_type_in_typecache(head, GLOB.typecache_clothing))
|
||||||
if(head.flags_1 & BLOCK_GAS_SMOKE_EFFECT_1)
|
var/obj/item/clothing/CH = head
|
||||||
|
if(CH.clothing_flags & BLOCK_GAS_SMOKE_EFFECT)
|
||||||
return TRUE
|
return TRUE
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,12 @@
|
|||||||
|
|
||||||
/datum/species/plasmaman/spec_life(mob/living/carbon/human/H)
|
/datum/species/plasmaman/spec_life(mob/living/carbon/human/H)
|
||||||
var/datum/gas_mixture/environment = H.loc.return_air()
|
var/datum/gas_mixture/environment = H.loc.return_air()
|
||||||
var/atmos_sealed = (H.wear_suit && (H.wear_suit.flags_1 & STOPSPRESSUREDMAGE_1)) && (H.head && (H.head.flags_1 & STOPSPRESSUREDMAGE_1))
|
var/atmos_sealed = FALSE
|
||||||
|
if (H.wear_suit && H.head && is_type_in_typecache(H.wear_suit, GLOB.typecache_clothing) && is_type_in_typecache(H.head, GLOB.typecache_clothing))
|
||||||
|
var/obj/item/clothing/CS = H.wear_suit
|
||||||
|
var/obj/item/clothing/CH = H.head
|
||||||
|
if (CS.clothing_flags & CH.clothing_flags & STOPSPRESSUREDAMAGE)
|
||||||
|
atmos_sealed = TRUE
|
||||||
if((!istype(H.w_uniform, /obj/item/clothing/under/plasmaman) || !istype(H.head, /obj/item/clothing/head/helmet/space/plasmaman)) && !atmos_sealed)
|
if((!istype(H.w_uniform, /obj/item/clothing/under/plasmaman) || !istype(H.head, /obj/item/clothing/head/helmet/space/plasmaman)) && !atmos_sealed)
|
||||||
if(environment)
|
if(environment)
|
||||||
if(environment.total_moles())
|
if(environment.total_moles())
|
||||||
|
|||||||
@@ -237,7 +237,7 @@
|
|||||||
if(internal.loc != src)
|
if(internal.loc != src)
|
||||||
internal = null
|
internal = null
|
||||||
update_internals_hud_icon(0)
|
update_internals_hud_icon(0)
|
||||||
else if ((!wear_mask || !(wear_mask.flags_1 & MASKINTERNALS_1)) && !getorganslot(ORGAN_SLOT_BREATHING_TUBE))
|
else if ((!wear_mask || !(wear_mask.clothing_flags & MASKINTERNALS)) && !getorganslot(ORGAN_SLOT_BREATHING_TUBE))
|
||||||
internal = null
|
internal = null
|
||||||
update_internals_hud_icon(0)
|
update_internals_hud_icon(0)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -18,8 +18,13 @@
|
|||||||
if(..())
|
if(..())
|
||||||
|
|
||||||
if(!client)
|
if(!client)
|
||||||
|
<<<<<<< HEAD
|
||||||
if(stat == CONSCIOUS)
|
if(stat == CONSCIOUS)
|
||||||
if(on_fire || buckled || restrained() || (resting && canmove))
|
if(on_fire || buckled || restrained() || (resting && canmove))
|
||||||
|
=======
|
||||||
|
if(stat == CONSCIOUS)
|
||||||
|
if(on_fire || buckled || restrained())
|
||||||
|
>>>>>>> 98f8ca7... Moves several clothing-specific flags from /atom to their proper type (#37486)
|
||||||
if(!resisting && prob(MONKEY_RESIST_PROB))
|
if(!resisting && prob(MONKEY_RESIST_PROB))
|
||||||
resisting = TRUE
|
resisting = TRUE
|
||||||
walk_to(src,0)
|
walk_to(src,0)
|
||||||
@@ -146,7 +151,7 @@
|
|||||||
|
|
||||||
/mob/living/carbon/monkey/has_smoke_protection()
|
/mob/living/carbon/monkey/has_smoke_protection()
|
||||||
if(wear_mask)
|
if(wear_mask)
|
||||||
if(wear_mask.flags_1 & BLOCK_GAS_SMOKE_EFFECT_1)
|
if(wear_mask.clothing_flags & BLOCK_GAS_SMOKE_EFFECT)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
/mob/living/carbon/monkey/handle_fire()
|
/mob/living/carbon/monkey/handle_fire()
|
||||||
|
|||||||
@@ -357,8 +357,11 @@
|
|||||||
|
|
||||||
if(ishuman(C))
|
if(ishuman(C))
|
||||||
var/mob/living/carbon/human/H = C
|
var/mob/living/carbon/human/H = C
|
||||||
if((H.head && (H.head.flags_1 & THICKMATERIAL_1)) && (H.wear_suit && (H.wear_suit.flags_1 & THICKMATERIAL_1)))
|
if (H.wear_suit && H.head && is_type_in_typecache(H.wear_suit, GLOB.typecache_clothing) && is_type_in_typecache(H.wear_suit, GLOB.typecache_clothing))
|
||||||
return FALSE // Skip over them if they have no exposed flesh.
|
var/obj/item/clothing/CS = H.wear_suit
|
||||||
|
var/obj/item/clothing/CH = H.head
|
||||||
|
if (CS.clothing_flags & CH.clothing_flags & THICKMATERIAL)
|
||||||
|
return FALSE // Skip over them if they have no exposed flesh.
|
||||||
|
|
||||||
if(declare_crit && C.health <= 0) //Critical condition! Call for help!
|
if(declare_crit && C.health <= 0) //Critical condition! Call for help!
|
||||||
declare(C)
|
declare(C)
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
icon_state = "s-ninja"
|
icon_state = "s-ninja"
|
||||||
item_state = "secshoes"
|
item_state = "secshoes"
|
||||||
permeability_coefficient = 0.01
|
permeability_coefficient = 0.01
|
||||||
flags_1 = NOSLIP_1
|
clothing_flags = NOSLIP
|
||||||
resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF
|
resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF
|
||||||
armor = list("melee" = 60, "bullet" = 50, "laser" = 30,"energy" = 15, "bomb" = 30, "bio" = 30, "rad" = 30, "fire" = 100, "acid" = 100)
|
armor = list("melee" = 60, "bullet" = 50, "laser" = 30,"energy" = 15, "bomb" = 30, "bio" = 30, "rad" = 30, "fire" = 100, "acid" = 100)
|
||||||
strip_delay = 120
|
strip_delay = 120
|
||||||
cold_protection = FEET
|
cold_protection = FEET
|
||||||
min_cold_protection_temperature = SHOES_MIN_TEMP_PROTECT
|
min_cold_protection_temperature = SHOES_MIN_TEMP_PROTECT
|
||||||
heat_protection = FEET
|
heat_protection = FEET
|
||||||
max_heat_protection_temperature = SHOES_MAX_TEMP_PROTECT
|
max_heat_protection_temperature = SHOES_MAX_TEMP_PROTECT
|
||||||
|
|||||||
@@ -329,7 +329,11 @@ Charged extracts:
|
|||||||
if(!istype(C))
|
if(!istype(C))
|
||||||
to_chat(user, "<span class='warning'>The potion can only be used on clothing!</span>")
|
to_chat(user, "<span class='warning'>The potion can only be used on clothing!</span>")
|
||||||
return
|
return
|
||||||
|
<<<<<<< HEAD
|
||||||
if(C.min_cold_protection_temperature == SPACE_SUIT_MIN_TEMP_PROTECT && STOPSPRESSUREDMAGE_1 in C.flags_1)
|
if(C.min_cold_protection_temperature == SPACE_SUIT_MIN_TEMP_PROTECT && STOPSPRESSUREDMAGE_1 in C.flags_1)
|
||||||
|
=======
|
||||||
|
if(C.min_cold_protection_temperature == SPACE_SUIT_MIN_TEMP_PROTECT && C.clothing_flags & STOPSPRESSUREDAMAGE)
|
||||||
|
>>>>>>> 98f8ca7... Moves several clothing-specific flags from /atom to their proper type (#37486)
|
||||||
to_chat(user, "<span class='warning'>The [C] is already pressure-resistant!</span>")
|
to_chat(user, "<span class='warning'>The [C] is already pressure-resistant!</span>")
|
||||||
return ..()
|
return ..()
|
||||||
to_chat(user, "<span class='notice'>You slather the blue gunk over the [C], making it airtight.</span>")
|
to_chat(user, "<span class='notice'>You slather the blue gunk over the [C], making it airtight.</span>")
|
||||||
@@ -338,7 +342,7 @@ Charged extracts:
|
|||||||
C.add_atom_colour("#000080", FIXED_COLOUR_PRIORITY)
|
C.add_atom_colour("#000080", FIXED_COLOUR_PRIORITY)
|
||||||
C.min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
|
C.min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
|
||||||
C.cold_protection = C.body_parts_covered
|
C.cold_protection = C.body_parts_covered
|
||||||
C.flags_1 |= STOPSPRESSUREDMAGE_1
|
C.clothing_flags |= STOPSPRESSUREDAMAGE
|
||||||
uses--
|
uses--
|
||||||
if(!uses)
|
if(!uses)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
@@ -371,7 +375,9 @@ Charged extracts:
|
|||||||
C.remove_atom_colour(WASHABLE_COLOUR_PRIORITY)
|
C.remove_atom_colour(WASHABLE_COLOUR_PRIORITY)
|
||||||
C.add_atom_colour("#800000", FIXED_COLOUR_PRIORITY)
|
C.add_atom_colour("#800000", FIXED_COLOUR_PRIORITY)
|
||||||
C.resistance_flags |= LAVA_PROOF
|
C.resistance_flags |= LAVA_PROOF
|
||||||
C.flags_2 |= LAVA_PROTECT_2
|
if (istype(C, /obj/item/clothing))
|
||||||
|
var/obj/item/clothing/CL = C
|
||||||
|
CL.clothing_flags |= LAVAPROTECT
|
||||||
uses--
|
uses--
|
||||||
if(!uses)
|
if(!uses)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user