Skip to content

Commit

Permalink
Makes the cryo anomaly more dangerous (#26614)
Browse files Browse the repository at this point in the history
* Makes the cryo anomaly more dangerous

* Reduces the amounts for vetus

* Update code/game/objects/effects/anomalies.dm

Signed-off-by: Luc <[email protected]>

---------

Signed-off-by: Luc <[email protected]>
Co-authored-by: Luc <[email protected]>
  • Loading branch information
DGamerL and lewcc authored Sep 12, 2024
1 parent 7c3d87d commit 0a7873c
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions code/game/objects/effects/anomalies.dm
Original file line number Diff line number Diff line change
Expand Up @@ -405,32 +405,43 @@
for(var/turf/T in oview(get_turf(src), 7))
turf_targets += T

var/list/mob_targets = list()
for(var/mob/M in oview(get_turf(src), 7))
if(!isliving(M))
continue
mob_targets += M

for(var/mob/living/carbon/human/H in view(get_turf(src), 3))
shootAt(H)

for(var/I in 1 to rand(1, 3))
var/turf/target = pick(turf_targets)
shootAt(target)
if(prob(10))
var/obj/effect/nanofrost_container/A = new /obj/effect/nanofrost_container(get_turf(src))
for(var/i in 1 to 5)
step_towards(A, pick(turf_targets))
sleep(2)
A.Smoke()

// This has to be in the end because we're adding mobs to a turf list
var/shots = drops_core ? rand(3, 5) : rand(1, 3)
for(var/i in 1 to shots)
if(length(mob_targets))
turf_targets += mob_targets
shootAt(pick(turf_targets))

if(prob(50))
for(var/turf/simulated/floor/nearby_floor in oview(get_turf(src), (drops_core ? 2 : 1)))
nearby_floor.MakeSlippery((drops_core? TURF_WET_PERMAFROST : TURF_WET_ICE), (drops_core? null : rand(10, 20 SECONDS)))
for(var/turf/possible_floor in view(get_turf(src), (drops_core ? 2 : 1)))
if(isfloorturf(possible_floor))
var/turf/simulated/floor/nearby_floor = possible_floor
nearby_floor.MakeSlippery((drops_core ? TURF_WET_PERMAFROST : TURF_WET_ICE), (drops_core ? null : rand(10, 20 SECONDS)))

var/turf/simulated/T = get_turf(src)
if(istype(T))
var/datum/gas_mixture/air = new()
air.set_temperature(TCMB)
air.set_sleeping_agent(20)
air.set_carbon_dioxide(20)
air.set_sleeping_agent(80)
air.set_carbon_dioxide(80)
T.blind_release_air(air)

if(prob(10))
var/obj/effect/nanofrost_container/A = new /obj/effect/nanofrost_container(get_turf(src))
for(var/i in 1 to 5)
step_towards(A, pick(turf_targets))
sleep(2)
A.Smoke()

/obj/effect/anomaly/cryo/proc/shootAt(atom/movable/target)
var/turf/T = get_turf(src)
var/turf/U = get_turf(target)
Expand All @@ -451,8 +462,8 @@
if(istype(T) && drops_core)
var/datum/gas_mixture/air = new()
air.set_temperature(TCMB)
air.set_sleeping_agent(1000)
air.set_carbon_dioxide(1000)
air.set_sleeping_agent(3000)
air.set_carbon_dioxide(3000)
T.blind_release_air(air)

/////////////////////
Expand Down

0 comments on commit 0a7873c

Please sign in to comment.