mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Turns blood walking into an element (#64162)
Refactoring things to elements/components is better in general, and I thought this was a perfect thing to turn into one.
This commit is contained in:
@@ -673,10 +673,9 @@
|
||||
web_speed = 0.7
|
||||
menu_description = "Self-sufficient spider variant capable of healing themselves and producing webbbing fast, but has less health and damage. Toxin injection of 10u per bite."
|
||||
|
||||
/mob/living/simple_animal/hostile/giant_spider/hunter/flesh/Moved(atom/oldloc, dir)
|
||||
/mob/living/simple_animal/hostile/giant_spider/hunter/flesh/Initialize(mapload)
|
||||
. = ..()
|
||||
if(prob(5))
|
||||
new /obj/effect/decal/cleanable/blood/bubblegum(loc)
|
||||
AddElement(/datum/element/blood_walk, /obj/effect/decal/cleanable/blood/bubblegum, blood_spawn_chance = 5)
|
||||
|
||||
/mob/living/simple_animal/hostile/giant_spider/hunter/flesh/AttackingTarget()
|
||||
if(is_busy)
|
||||
|
||||
@@ -99,6 +99,8 @@ Difficulty: Hard
|
||||
hallucination_charge_surround.spawn_blood = TRUE
|
||||
RegisterSignal(src, COMSIG_BLOOD_WARP, .proc/blood_enrage)
|
||||
RegisterSignal(src, COMSIG_FINISHED_CHARGE, .proc/after_charge)
|
||||
if(spawn_blood)
|
||||
AddElement(/datum/element/blood_walk, /obj/effect/decal/cleanable/blood/bubblegum, 'sound/effects/meteorimpact.ogg', 200)
|
||||
|
||||
/mob/living/simple_animal/hostile/megafauna/bubblegum/Destroy()
|
||||
QDEL_NULL(triple_charge)
|
||||
@@ -305,12 +307,6 @@ Difficulty: Hard
|
||||
update_approach()
|
||||
. = ..()
|
||||
|
||||
/mob/living/simple_animal/hostile/megafauna/bubblegum/Moved(atom/OldLoc, Dir, Forced = FALSE)
|
||||
. = ..()
|
||||
if(spawn_blood)
|
||||
new /obj/effect/decal/cleanable/blood/bubblegum(src.loc)
|
||||
playsound(src, 'sound/effects/meteorimpact.ogg', 200, TRUE, 2, TRUE)
|
||||
|
||||
/mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination
|
||||
name = "bubblegum's hallucination"
|
||||
desc = "Is that really just a hallucination?"
|
||||
|
||||
Reference in New Issue
Block a user