[MIRROR] SM, Tesla, and general engineering adjustments [MDB IGNORE] [IDB IGNORE] (#12603)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-26 23:08:54 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent 743a16c74d
commit a62b9ed8fe
83 changed files with 992 additions and 309 deletions
+1 -1
View File
@@ -124,7 +124,7 @@
if(Proj.get_structure_damage())
adjust_health(-Proj.get_structure_damage(), TRUE)
/obj/structure/flora/tree/tesla_act(power, explosive)
/obj/structure/flora/tree/tesla_act(power, explosive, current_jumps)
adjust_health(-power / 100, TRUE) // Kills most trees in one lightning strike.
..()
@@ -1,6 +1,6 @@
/obj/structure/reflector
name = "reflector base"
icon = 'icons/obj/tgs_structures_ch.dmi'
icon = 'icons/obj/structures/tgs_structures.dmi'
icon_state = "reflector_map"
desc = "A base for reflector assemblies."
anchored = FALSE
@@ -114,22 +114,32 @@
to_chat(user, span_warning("Unweld [src] from the floor first!"))
return
user.visible_message(span_notice("[user] starts to dismantle [src]."), span_notice("You start to dismantle [src]..."))
to_chat(user, span_notice("You dismantle [src]."))
new framebuildstacktype(drop_location(), framebuildstackamount)
if(buildstackamount)
new buildstacktype(drop_location(), buildstackamount)
qdel(src)
if(do_after(user, 2 SECONDS, target = src))
user.visible_message(span_notice("[user] dismantles [src]."), span_notice("You dismantle [src]..."))
new framebuildstacktype(drop_location(), framebuildstackamount)
if(buildstackamount)
new buildstacktype(drop_location(), buildstackamount)
qdel(src)
else if(istype(W, /obj/item/weldingtool))
var/obj/item/weldingtool/I = W
if(!anchored)
if(!I.remove_fuel(1,user))
if(!I.get_fuel())
to_chat(user, span_warning("You require fuel to weld the [src]!"))
return
user.visible_message(span_notice("[user] starts to weld [src] to the floor."),
span_notice("You start to weld [src] to the floor..."),
span_hear("You hear welding."))
if(do_after(user, 2 SECONDS, target = src))
if(!I.remove_fuel(1,user))
to_chat(user, span_warning("You require fuel to weld the [src]!"))
return
anchored = TRUE
to_chat(user, span_notice("You weld [src] to the floor."))
user.visible_message(span_notice("[user] welds [src] to the floor."),
span_notice("You weld [src] to the floor..."),
span_hear("You hear welding."))
else
if(!I.remove_fuel(1,user))
return