Adds examine boxes. (#18370)

* Adds examine boxes.

* lint

* what kind of dreams did you dream?

* unlimited

* midgardsormr

* sdsd

* fixes

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-02-11 21:58:20 +00:00
committed by GitHub
co-authored by Matt Atlas
parent d57c5e7c43
commit 4423d03f2f
296 changed files with 1317 additions and 1257 deletions
+3 -3
View File
@@ -207,12 +207,12 @@
to_chat(brainmob, "<span class='notice'>You feel slightly disoriented. That's normal when you're just a [initial(src.name)].</span>")
callHook("debrain", list(brainmob))
/obj/item/organ/internal/brain/examine(mob/user) // -- TLE
/obj/item/organ/internal/brain/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if(brainmob && brainmob.client)//if thar be a brain inside... the brain.
to_chat(user, "You can feel the small spark of life still left in this one.")
. += "You can feel the small spark of life still left in this one."
else
to_chat(user, "This one seems particularly lifeless. Perhaps it will regain some of its luster later..")
. += "This one seems particularly lifeless. Perhaps it will regain some of its luster later.."
/obj/item/organ/internal/brain/attackby(obj/item/I, mob/user)
if(istype(I, /obj/item/surgery/surgicaldrill))
+2 -2
View File
@@ -211,10 +211,10 @@ INITIALIZE_IMMEDIATE(/obj/item/organ)
/obj/item/organ/proc/clear_surge_effects()
return
/obj/item/organ/examine(mob/user)
/obj/item/organ/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if(status & ORGAN_DEAD)
to_chat(user, "<span class='notice'>The decay has set in.</span>")
. += "<span class='notice'>The decay has set in.</span>"
/obj/item/organ/proc/handle_germ_effects()
//** Handle the effects of infections
+3 -4
View File
@@ -235,14 +235,13 @@
return //no eating the limb until everything's been removed
return ..()
/obj/item/organ/external/examine(mob/user, distance, is_adjacent)
/obj/item/organ/external/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if(distance <= 1)
for(var/obj/item/I in contents)
if(istype(I, /obj/item/organ))
continue
to_chat(usr, "<span class='danger'>There is \a [I] sticking out of it.</span>")
return
. += "<span class='danger'>There is \a [I] sticking out of it.</span>"
/obj/item/organ/external/attackby(obj/item/W as obj, mob/user as mob)
switch(stage)
@@ -869,7 +868,7 @@ Note that amputating the affected organ does in fact remove the infection from t
return null
/obj/item/organ/external/proc/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] soaking through the clothes on their [src]!"
return "[owner.get_pronoun("has")] [blood_type] soaking through the clothes on [owner.get_pronoun("his")] [src]!"
//Updating wounds. Handles wound natural I had some free spachealing, internal bleedings and infections
/obj/item/organ/external/proc/update_wounds()
+5 -5
View File
@@ -230,12 +230,12 @@
robotize()
. = ..()
/obj/item/organ/internal/ipc_tag/examine(mob/user)
/obj/item/organ/internal/ipc_tag/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
to_chat(user, SPAN_NOTICE("Serial Autogeneration: [auto_generate ? "Yes" : "No"]"))
to_chat(user, SPAN_NOTICE("Serial Number: [serial_number]"))
to_chat(user, SPAN_NOTICE("Ownership Info: [ownership_info]"))
to_chat(user, SPAN_NOTICE("Citizenship Info: [citizenship_info]"))
. += SPAN_NOTICE("Serial Autogeneration: [auto_generate ? "Yes" : "No"]")
. += SPAN_NOTICE("Serial Number: [serial_number]")
. += SPAN_NOTICE("Ownership Info: [ownership_info]")
. += SPAN_NOTICE("Citizenship Info: [citizenship_info]")
/obj/item/organ/internal/ipc_tag/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/ipc_tag_scanner))
+7 -7
View File
@@ -25,7 +25,7 @@
return UPPER_TORSO
/obj/item/organ/external/chest/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] running down their thighs!"
return "[owner.get_pronoun("has")] [blood_type] running down [owner.get_pronoun("his")] thighs!"
/obj/item/organ/external/groin
name = "lower body"
@@ -65,7 +65,7 @@
return UPPER_TORSO
/obj/item/organ/external/groin/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] running down their thighs!"
return "[owner.get_pronoun("has")] [blood_type] running down [owner.get_pronoun("his")] thighs!"
/obj/item/organ/external/arm
limb_name = BP_L_ARM
@@ -88,7 +88,7 @@
return ARMS
/obj/item/organ/external/arm/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] running down their sleeves!"
return "[owner.get_pronoun("has")] [blood_type] running down [owner.get_pronoun("his")] sleeves!"
/obj/item/organ/external/arm/right
limb_name = BP_R_ARM
@@ -122,7 +122,7 @@
return LEGS
/obj/item/organ/external/leg/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] pooling at their feet!"
return "[owner.get_pronoun("has")] [blood_type] pooling at [owner.get_pronoun("his")] feet!"
/obj/item/organ/external/leg/right
limb_name = BP_R_LEG
@@ -153,7 +153,7 @@
return LEGS
/obj/item/organ/external/foot/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] pooling at their feet!"
return "[owner.get_pronoun("has")] [blood_type] pooling at [owner.get_pronoun("his")] feet!"
/obj/item/organ/external/foot/removed()
if(owner)
@@ -190,7 +190,7 @@
return ARMS
/obj/item/organ/external/hand/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] running down their sleeves!"
return "[owner.get_pronoun("has")] [blood_type] running down [owner.get_pronoun("his")] sleeves!"
/obj/item/organ/external/hand/take_damage(brute, burn, damage_flags, used_weapon, list/forbidden_limbs, silent)
. = ..()
@@ -237,7 +237,7 @@
return HEAD
/obj/item/organ/external/head/covered_bleed_report(var/blood_type)
return "[owner.get_pronoun("has")] [blood_type] running down their neck!"
return "[owner.get_pronoun("has")] [blood_type] running down [owner.get_pronoun("his")] neck!"
/obj/item/organ/external/head/removed()
if(owner)
+2 -2
View File
@@ -337,7 +337,7 @@
return ..()
/obj/item/organ/internal/vaurca/preserve/examine(mob/user, distance, is_adjacent)
/obj/item/organ/internal/vaurca/preserve/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if(is_adjacent)
var/celsius_temperature = air_contents.temperature - T0C
@@ -355,7 +355,7 @@
descriptive = "room temperature"
else
descriptive = "cold"
to_chat(user, "<span class='notice'>\The [src] feels [descriptive].</span>")
. += "<span class='notice'>\The [src] feels [descriptive].</span>"
/obj/item/organ/internal/vaurca/preserve/attackby(obj/item/W as obj, mob/user as mob)
..()