Skip to content

Commit

Permalink
Snow Whites Apple Nightmare Mode [Just for Fun Testable] (#2602)
Browse files Browse the repository at this point in the history
## About The Pull Request
Gives snow whites apple a new variable called nightmare mode that makes her vines spread on their own and hit all living creatures standing on them even if snow whites apple is out of sight.
## Why It's Good For The Game
It honestly would be insanely laggy even for a admin enabled thing.
## Changelog
:cl:
tweak: Give Snow Whites Apple Nightmare Mode

/:cl:
  • Loading branch information
InsightfulParasite authored Jan 14, 2025
1 parent 0c3e15f commit f66b6c8
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
initial_language_holder = /datum/language_holder/plant //essentially flavor
var/togglemovement = FALSE
var/toggleplants = TRUE
var/nightmare_mode = FALSE
var/plant_cooldown = 30
var/hedge_cooldown = 0
var/hedge_cooldown_delay = FLORAL_BARRIER_COOLDOWN
Expand Down Expand Up @@ -152,9 +153,18 @@
if(toggleplants)
SpreadPlants()
oldGrowth()
for(var/obj/structure/spreading/apple_vine/W in urange(15, get_turf(src)))
var/list/area_of_influence
if(nightmare_mode)
area_of_influence = vine_list
else
area_of_influence = urange(15, get_turf(src))
for(var/obj/structure/spreading/apple_vine/W in area_of_influence)
if(W.last_expand <= world.time)
W.expand()
else if(nightmare_mode && ranged_cooldown <= world.time)
var/list/did_we_hit = HurtInTurf(get_turf(W), list(), 30, BLACK_DAMAGE, check_faction = TRUE, hurt_mechs = TRUE)
if(did_we_hit.len)
W.VineAttack(pick(did_we_hit))
if(teleport_cooldown <= world.time && !togglemovement && !client && !IsCombatMap())
TryTeleport()

Expand Down

0 comments on commit f66b6c8

Please sign in to comment.