mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
Adds examine messages to fire/lava/freeze/acid proofed clothing items. (#40800)
cl ShizCalev tweak: Clothing (bags, gloves, belts, uniforms, armor, ect) will now inform you if they are resistant to frost, fire, acid, and lava when examined. /cl
This commit is contained in:
@@ -67,6 +67,60 @@ GLOBAL_LIST_INIT(bitflags, list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 204
|
||||
#define INDESTRUCTIBLE (1<<6) //doesn't take damage
|
||||
#define FREEZE_PROOF (1<<7) //can't be frozen
|
||||
|
||||
/obj/item/proc/clothing_resistance_flag_examine_message(mob/user)
|
||||
if(resistance_flags & INDESTRUCTIBLE)
|
||||
to_chat(user, "[src] seems extremely robust! It'll probably withstand anything that could happen to it!")
|
||||
return
|
||||
if(resistance_flags & LAVA_PROOF)
|
||||
to_chat(user, "[src] is made of an extremely heat-resistant material, it'd probably be able to withstand lava!")
|
||||
if(resistance_flags & (ACID_PROOF | UNACIDABLE))
|
||||
to_chat(user, "[src] looks pretty robust! It'd probably be able to withstand acid!")
|
||||
if(resistance_flags & FREEZE_PROOF)
|
||||
to_chat(user, "[src] is made of cold-resistant materials.")
|
||||
if(resistance_flags & FIRE_PROOF)
|
||||
to_chat(user, "[src] is made of fire-retardant materials.")
|
||||
return TRUE
|
||||
|
||||
/obj/item/clothing/clothing_resistance_flag_examine_message(mob/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
if(max_heat_protection_temperature == FIRE_IMMUNITY_MAX_TEMP_PROTECT)
|
||||
to_chat(user, "[src] is made of fire-retardant materials.")
|
||||
return TRUE
|
||||
|
||||
/obj/item/clothing/head/clothing_resistance_flag_examine_message(mob/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
if(max_heat_protection_temperature == (HELMET_MAX_TEMP_PROTECT || SPACE_HELM_MAX_TEMP_PROTECT || FIRE_HELM_MAX_TEMP_PROTECT))
|
||||
to_chat(user, "[src] is made of thermally insulated materials and offers some protection to fire.")
|
||||
return TRUE
|
||||
|
||||
/obj/item/clothing/gloves/clothing_resistance_flag_examine_message(mob/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
if(max_heat_protection_temperature == GLOVES_MAX_TEMP_PROTECT)
|
||||
to_chat(user, "[src] is made of thermally insulated materials and offers some protection to fire.")
|
||||
return TRUE
|
||||
|
||||
/obj/item/clothing/shoes/clothing_resistance_flag_examine_message(mob/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
if(max_heat_protection_temperature == SHOES_MAX_TEMP_PROTECT)
|
||||
to_chat(user, "[src] is made of thermally insulated materials and offers some protection to fire.")
|
||||
return TRUE
|
||||
|
||||
/obj/item/clothing/suit/clothing_resistance_flag_examine_message(mob/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
if(max_heat_protection_temperature == SPACE_SUIT_MAX_TEMP_PROTECT)
|
||||
to_chat(user, "[src] is made of thermally insulated materials and offers some protection to fire.")
|
||||
return TRUE
|
||||
|
||||
//tesla_zap
|
||||
#define TESLA_MACHINE_EXPLOSIVE (1<<0)
|
||||
#define TESLA_ALLOW_DUPLICATES (1<<1)
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
STR.max_w_class = WEIGHT_CLASS_NORMAL
|
||||
STR.max_items = 21
|
||||
|
||||
/obj/item/storage/backpack/examine(mob/user)
|
||||
..()
|
||||
clothing_resistance_flag_examine_message(user)
|
||||
|
||||
/*
|
||||
* Backpack Types
|
||||
|
||||
@@ -27,6 +27,11 @@
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/storage/belt/examine(mob/user)
|
||||
..()
|
||||
clothing_resistance_flag_examine_message(user)
|
||||
|
||||
|
||||
/obj/item/storage/belt/utility
|
||||
name = "toolbelt" //Carn: utility belt is nicer, but it bamboozles the text parsing.
|
||||
desc = "Holds tools."
|
||||
|
||||
@@ -110,6 +110,7 @@
|
||||
|
||||
/obj/item/clothing/examine(mob/user)
|
||||
..()
|
||||
clothing_resistance_flag_examine_message(user)
|
||||
if(damaged_clothes)
|
||||
to_chat(user, "<span class='warning'>It looks damaged!</span>")
|
||||
GET_COMPONENT(pockets, /datum/component/storage)
|
||||
|
||||
Reference in New Issue
Block a user