Skip to content

Commit

Permalink
engineering is going to fucking kill me for this
Browse files Browse the repository at this point in the history
  • Loading branch information
XeonMations committed Sep 6, 2024
1 parent 4a79a65 commit 56820fb
Show file tree
Hide file tree
Showing 16 changed files with 119 additions and 285 deletions.
3 changes: 1 addition & 2 deletions beestation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@
#include "code\datums\position_point_vector.dm"
#include "code\datums\profiling.dm"
#include "code\datums\progressbar.dm"
#include "code\datums\radiation_wave.dm"
#include "code\datums\recipe.dm"
#include "code\datums\ref.dm"
#include "code\datums\ruins.dm"
Expand Down Expand Up @@ -3518,7 +3517,6 @@
#include "code\modules\power\lighting\light_wallframes.dm"
#include "code\modules\power\singularity\anomaly.dm"
#include "code\modules\power\singularity\boh_tear.dm"
#include "code\modules\power\singularity\collector.dm"
#include "code\modules\power\singularity\containment_field.dm"
#include "code\modules\power\singularity\emitter.dm"
#include "code\modules\power\singularity\field_generator.dm"
Expand All @@ -3529,6 +3527,7 @@
#include "code\modules\power\singularity\particle_accelerator\particle_emitter.dm"
#include "code\modules\power\supermatter\supermatter.dm"
#include "code\modules\power\supermatter\supermatter_delamination.dm"
#include "code\modules\power\supermatter\supermatter_radiation.dm"
#include "code\modules\power\tesla\coil.dm"
#include "code\modules\power\tesla\energy_ball.dm"
#include "code\modules\power\tesla\generator.dm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
switch(P.type)
if(/obj/projectile/energy/floramut)
if(prob(15))
H.rad_act(rand(30,80))
H.adjustToxLoss(rand(3, 6))
H.Paralyze(100)
H.visible_message("<span class='warning'>[H] writhes in pain as [H.p_their()] vacuoles boil.</span>", "<span class='userdanger'>You writhe in pain as your vacuoles boil!</span>", "<span class='italics'>You hear the crunching of leaves.</span>")
if(prob(80))
Expand Down
251 changes: 0 additions & 251 deletions code/modules/power/singularity/collector.dm

This file was deleted.

20 changes: 11 additions & 9 deletions code/modules/power/supermatter/supermatter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)

power = clamp((removed.return_temperature() * temp_factor / T0C) * gasmix_power_ratio + power, 0, SUPERMATTER_MAXIMUM_ENERGY) //Total laser power plus an overload

if(prob(50))
last_rads = power * max(0, power_transmission_bonus * (1 + (tritiumcomp * TRITIUM_RADIOACTIVITY_MODIFIER) + (pluoxiumcomp * PLUOXIUM_RADIOACTIVITY_MODIFIER) + (bzcomp * BZ_RADIOACTIVITY_MODIFIER))) // Rad Modifiers BZ(500%), Tritium(300%), and Pluoxium(-200%)
radiation_pulse(src, last_rads)
emit_radiation()
if(bzcomp >= 0.4 && prob(30 * bzcomp))
src.fire_nuclear_particle() // Start to emit radballs at a maximum of 30% chance per tick

Expand Down Expand Up @@ -734,14 +732,14 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
user.visible_message("<span class='danger'>A hideous sound echoes as [W] is ashed out on contact with \the [src]. That didn't seem like a good idea...</span>")
playsound(src, 'sound/effects/supermatter.ogg', 150, 1)
Consume(W)
radiation_pulse(src, 150, 4)
radiation_pulse(src, max_range = 3, threshold = 0.1, chance = 50)
return ..()
else
cig.light()
user.visible_message("<span class='danger'>As [user] lights \their [W] on \the [src], silence fills the room...</span>",\
"<span class='danger'>Time seems to slow to a crawl as you touch \the [src] with \the [W].</span>\n<span class='notice'>\The [W] flashes alight with an eerie energy as you nonchalantly lift your hand away from \the [src]. Damn.</span>")
playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
radiation_pulse(src, 50, 3)
radiation_pulse(src, max_range = 1, threshold = 0, chance = 100)
return
if(istype(W, /obj/item/scalpel/supermatter))
var/obj/item/scalpel/supermatter/scalpel = W
Expand All @@ -764,7 +762,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
Consume(W)
playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1)

radiation_pulse(src, 150, 4)
radiation_pulse(src, max_range = 3, threshold = 0.1, chance = 50)

/obj/machinery/power/supermatter_crystal/wrench_act(mob/user, obj/item/tool)
if (moveable)
Expand Down Expand Up @@ -825,14 +823,18 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
matter_power += 200

//Some poor sod got eaten, go ahead and irradiate people nearby.
radiation_pulse(src, 3000, 2, TRUE)
radiation_pulse(src, max_range = 6, threshold = 0.3, chance = 30)
for(var/mob/living/L in range(10))
investigate_log("has irradiated [key_name(L)] after consuming [AM].", INVESTIGATE_ENGINES)
if (HAS_TRAIT(near_mob, TRAIT_RADIMMUNE) || issilicon(near_mob))
continue
if(ishuman(near_mob) && SSradiation.wearing_rad_protected_clothing(near_mob))
continue
if(L in viewers(get_turf(src)))
L.show_message("<span class='danger'>As \the [src] slowly stops resonating, you find your skin covered in new radiation burns.</span>", 1,\
"<span class='danger'>The unearthly ringing subsides and you notice you have new radiation burns.</span>", MSG_AUDIBLE)
"<span class='danger'>The unearthly ringing subsides and you find your skin covered in new radiation burns.</span>", MSG_AUDIBLE)
else
L.show_message("<span class='italics'>You hear an unearthly ringing and notice your skin is covered in fresh radiation burns.</span>", MSG_AUDIBLE)
L.show_message("<span class='italics'>An unearthly ringing and fills your ears, and you find your skin covered in new radiation burns.</span>", MSG_AUDIBLE)

/obj/machinery/power/supermatter_crystal/proc/disengage_field()
if(QDELETED(src))
Expand Down
4 changes: 2 additions & 2 deletions code/modules/power/supermatter/supermatter_delamination.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
//Hilariously enough, running into a closet should make you get hit the hardest.
var/mob/living/carbon/human/H = mob
H.hallucination += max(50, min(300, DETONATION_HALLUCINATION * sqrt(1 / (get_dist(mob, src) + 1)) ) )
var/rads = DETONATION_RADS * sqrt( 1 / (get_dist(L, src) + 1) )
L.rad_act(rads)
if (get_dist(victim, src) <= DETONATION_RADIATION_RANGE)
SSradiation.irradiate(victim)

for(var/mob/M in GLOB.player_list)
if(M.get_virtual_z_level() == supermatter_z)
Expand Down
Loading

0 comments on commit 56820fb

Please sign in to comment.