Skip to content

Commit

Permalink
Fixes Fragment Runtime (#1751)
Browse files Browse the repository at this point in the history
fixes a runtime and a small visual bug
  • Loading branch information
TaculoTaculo authored Dec 20, 2023
1 parent 55a077a commit cb0ce86
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@

/mob/living/simple_animal/hostile/abnormality/fragment/Destroy()
QDEL_NULL(legs)
if(!particle_note)
return ..()
particle_note.fadeout()
particle_song.fadeout()
return ..()
Expand Down Expand Up @@ -124,15 +126,17 @@
SLEEP_CHECK_DEATH(3)

animate(src, pixel_y = 0, time = 0)
QDEL_NULL(legs)
flick("fragment_song_transition" , src)
SLEEP_CHECK_DEATH(5)
icon_state = "fragment_breach"
pixel_y = 0
QDEL_NULL(legs)
particle_note.fadeout()
particle_song.fadeout()
can_act = TRUE
song_cooldown = world.time + song_cooldown_time
if(!particle_note)
return
particle_note.fadeout()
particle_song.fadeout()

/mob/living/simple_animal/hostile/abnormality/fragment/NeutralEffect(mob/living/carbon/human/user, work_type, pe)
if(prob(40))
Expand Down

0 comments on commit cb0ce86

Please sign in to comment.