Cauterize surgery checks for lit implements, tweak lighter/flamethrowers/cautery so they deal burn when appropriate (#28141)

* stay cool

* Cautery is also weird like that too
This commit is contained in:
Vi3trice
2025-01-30 05:26:13 +00:00
committed by GitHub
parent 1a2f97c100
commit 9a7aee88bd
4 changed files with 10 additions and 1 deletions
@@ -231,11 +231,13 @@
to_chat(user, "<span class='notice'>You [lit ? "extinguish" : "ignite"] [src]!</span>")
lit = !lit
if(lit)
damtype = BURN
START_PROCESSING(SSobj, src)
if(!warned_admins)
message_admins("[ADMIN_LOOKUPFLW(user)] has lit a flamethrower.")
warned_admins = TRUE
else
damtype = initial(damtype)
STOP_PROCESSING(SSobj,src)
update_icon()
+1 -1
View File
@@ -78,7 +78,7 @@
hitsound = "swing_hit"
force = 0
attack_verb = null //human_defense.dm takes care of it
damtype = initial(damtype)
update_icon()
if(user)
show_off_message(user)
+6
View File
@@ -180,6 +180,12 @@
failure_sound = 'sound/items/welder.ogg'
time = 2.4 SECONDS
/datum/surgery_step/generic/cauterize/tool_check(mob/user, obj/item/tool)
if(tool.damtype != BURN)
to_chat(user, "<span class='warning'>[tool] is too cold to cauterize!</span>")
return FALSE
return TRUE
/datum/surgery_step/generic/cauterize/begin_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool, datum/surgery/surgery)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message(
+1
View File
@@ -52,6 +52,7 @@
materials = list(MAT_METAL=2500, MAT_GLASS=750)
flags = CONDUCT
w_class = WEIGHT_CLASS_TINY
damtype = BURN
origin_tech = "materials=1;biotech=1"
attack_verb = list("burnt")
tool_behaviour = TOOL_CAUTERY