Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes Nanofrost Pretty #28016

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/game/objects/effects/anomalies.dm
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
shootAt(H)

if(prob(10))
var/obj/effect/nanofrost_container/A = new /obj/effect/nanofrost_container(get_turf(src))
var/obj/effect/nanofrost_container/A = new /obj/effect/nanofrost_container/anomaly(get_turf(src))
for(var/i in 1 to 5)
step_towards(A, pick(turf_targets))
sleep(2)
Expand Down
10 changes: 7 additions & 3 deletions code/game/objects/items/weapons/tanks/watertank.dm
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@
var/obj/effect/nanofrost_container/A = new /obj/effect/nanofrost_container(get_turf(src))
log_game("[key_name(user)] used Nanofrost at [get_area(user)] ([user.x], [user.y], [user.z]).")
playsound(src,'sound/items/syringeproj.ogg', 40, TRUE)
for(var/a in 1 to 6)
step_towards(A, target)
sleep(2)
A.throw_at(target, 6, 2, user)
sleep(2)
A.Smoke()
addtimer(VARSET_CALLBACK(src, nanofrost_cooldown, FALSE))
if(METAL_FOAM)
Expand Down Expand Up @@ -334,6 +333,11 @@
playsound(src, 'sound/effects/bamf.ogg', 100, TRUE)
qdel(src)

/obj/effect/nanofrost_container/anomaly
name = "nanofrost anomaly"
desc = "A frozen shell of ice containing nanofrost that freezes the surrounding area."
icon_state = "frozen_smoke_anomaly"

#undef EXTINGUISHER
#undef NANOFROST
#undef METAL_FOAM
5 changes: 2 additions & 3 deletions code/modules/mod/modules/modules_engineering.dm
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,8 @@
var/obj/effect/nanofrost_container/A = new /obj/effect/nanofrost_container(get_turf(src))
log_game("[key_name(user)] used Nanofrost at [get_area(user)] ([user.x], [user.y], [user.z]).")
playsound(src, 'sound/items/syringeproj.ogg', 40, 1)
for(var/counter in 1 to 5)
step_towards(A, target)
sleep(2)
A.throw_at(target, 6, 2, user)
sleep(2)
A.Smoke()

if(METAL_FOAM)
Expand Down
Binary file modified icons/effects/effects.dmi
Binary file not shown.
Loading