Skip to content

Commit

Permalink
[MIRROR] Reduce bioscrambler range & makes its activation visible (#2733
Browse files Browse the repository at this point in the history
) (#3547)

* Reduce bioscrambler range & makes its activation visible (#83547)

## About The Pull Request

This PR:
- Reduces the radius on being bioscrambled from 5 to 2
- Adds an animation when it bioscrambles you
- Reduces the cooldown between pulses from 15 seconds to 10


![dreamseeker_aeNqpLI4kd](https://github.com/tgstation/tgstation/assets/7483112/4fc95431-bf71-47e2-9e0e-1384fba212fc)

## Why It's Good For The Game

Now that the anomaly actively pursues people it no longer needs to have
a really long range in order to catch them
I think it pulsing slightly more frequently but also more avoidably is
more fun

## Changelog

:cl:
balance: Bioscramblers pulse more often but with less range, plus you
can see them pulsing.
/:cl:

* Reduce bioscrambler range & makes its activation visible

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Jacquerel <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
  • Loading branch information
4 people authored May 31, 2024
1 parent 0c352e6 commit 4c385c8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions code/game/objects/effects/anomalies/anomalies_bioscrambler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
/// Cooldown for every anomaly pulse
COOLDOWN_DECLARE(pulse_cooldown)
/// How many seconds between each anomaly pulses
var/pulse_delay = 15 SECONDS
var/pulse_delay = 10 SECONDS
/// Range of the anomaly pulse
var/range = 5
var/range = 2

/obj/effect/anomaly/bioscrambler/Initialize(mapload, new_lifespan, drops_core)
. = ..()
Expand All @@ -24,6 +24,8 @@
if(!COOLDOWN_FINISHED(src, pulse_cooldown))
return

new /obj/effect/temp_visual/bioscrambler_wave(get_turf(src))
playsound(src, 'sound/magic/cosmic_energy.ogg', vol = 50, vary = TRUE)
COOLDOWN_START(src, pulse_cooldown, pulse_delay)
for(var/mob/living/carbon/nearby in hearers(range, src))
nearby.bioscramble(name)
Expand Down Expand Up @@ -77,3 +79,20 @@

/obj/effect/anomaly/bioscrambler/docile/update_target()
return

/// Visual effect spawned when the bioscrambler scrambles your bio
/obj/effect/temp_visual/bioscrambler_wave
icon = 'icons/effects/64x64.dmi'
icon_state = "circle_wave"
pixel_x = -16
pixel_y = -16
duration = 0.5 SECONDS
color = COLOR_LIME

/obj/effect/temp_visual/bioscrambler_wave/Initialize(mapload)
transform = matrix().Scale(0.1)
animate(src, transform = matrix().Scale(2), time = duration, flags = ANIMATION_PARALLEL)
animate(src, alpha = 255, time = duration * 0.6, flags = ANIMATION_PARALLEL)
animate(alpha = 0, time = duration * 0.4)
apply_wibbly_filters(src)
return ..()
Binary file modified icons/effects/64x64.dmi
Binary file not shown.

0 comments on commit 4c385c8

Please sign in to comment.