Skip to content

Commit

Permalink
this stuff is probably important, cleanup after transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeguyManperson committed Jun 24, 2024
1 parent 4f3e0ff commit 3249482
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/datums/diseases/legionvirus.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/datum/disease/transformation/legionvirus
/datum/disease/transformation/legionvirus //Diseases are a quick way to exposit a bunch of information onto players, most of the effects here are handled by the legion skull organ from /mob/living/simple_animal/hostile/mining_mobs/hivelord.dm
name = "Legion Infection"
max_stages = 5
spread_flags = DISEASE_SPREAD_NON_CONTAGIOUS
Expand All @@ -21,6 +21,8 @@
new_form = /mob/living/simple_animal/hostile/asteroid/hivelord/legion

/datum/disease/transformation/legionvirus/do_disease_transformation(mob/living/H)
if(stage5)
to_chat(affected_mob, pick(stage5))
H.visible_message(span_warning("[H] suddenly collapses, a pallid grey mass bursting from their body!"))
var/mob/living/simple_animal/hostile/asteroid/hivelord/legion/L
if(HAS_TRAIT(H, TRAIT_DWARF)) //dwarf legions aren't just fluff!
Expand All @@ -31,4 +33,3 @@
H.adjustBruteLoss(1000)
L.stored_mob = H
H.forceMove(L)
qdel(src)
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@
/// Updates the stage of our tied disease
/obj/item/organ/legion_skull/proc/update_stage()
malignance.update_stage(min(malignance.stage + 1, malignance.max_stages))
if(malignance.stage == 5)
malignance.stage_act() //force the transformation here, then delete everything
qdel(malignance)
qdel(src)
return
malignance_countdown = initial(malignance_countdown)
malignance_tracker = addtimer(CALLBACK(src, PROC_REF(update_stage)), malignance_countdown, TIMER_STOPPABLE|TIMER_DELETE_ME)

Expand Down

0 comments on commit 3249482

Please sign in to comment.