From daa2ec02cd7328db91eb4ae72cc3f893e3ce15cf Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 6 Oct 2022 07:01:31 +0200 Subject: [PATCH] [MIRROR] [Code Bounty] Adds a new kudzu mutation timid and lowers severity of the mutation temperature stabilisation from average to minor [MDB IGNORE] (#16670) * Adds a new kudzu mutation timid and lowers severity of the mutation temperature stabilisation from average to minor (#70306) * [Code Bounty] Adds a new kudzu mutation timid and lowers severity of the mutation temperature stabilisation from average to minor Co-authored-by: Salex08 <33989683+Salex08@users.noreply.github.com> --- code/modules/events/spacevine.dm | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm index 2e7a2bc7b9a..1fb6a367a70 100644 --- a/code/modules/events/spacevine.dm +++ b/code/modules/events/spacevine.dm @@ -200,7 +200,7 @@ name = "Temperature stabilisation" hue = "#B09856" quality = POSITIVE - severity = SEVERITY_AVERAGE + severity = SEVERITY_MINOR /datum/spacevine_mutation/temp_stabilisation/add_mutation_to_vinepiece(obj/structure/spacevine/holder) . = ..() @@ -390,6 +390,18 @@ else . = expected_damage +/datum/spacevine_mutation/timid + name = "Timid" + hue = "#a4a9ac" + quality = POSITIVE + severity = SEVERITY_MINOR + +//This specific mutation only covers floors instead of structures, items, mobs and cant tangle mobs +/datum/spacevine_mutation/timid/on_birth(obj/structure/spacevine/holder) + holder.plane = FLOOR_PLANE + holder.can_tangle = FALSE + return ..() + /datum/spacevine_mutation/flowering name = "Flowering" hue = "#66DE93" @@ -419,7 +431,10 @@ pass_flags = PASSTABLE | PASSGRILLE max_integrity = 50 var/energy = 0 - var/can_spread = TRUE //Can this kudzu spread? + /// Can this kudzu spread? + var/can_spread = TRUE + /// Can this kudzu buckle mobs in? + var/can_tangle = TRUE var/datum/spacevine_controller/master = null /// List of mutations for a specific vine var/list/mutations = list() @@ -685,7 +700,7 @@ return for(var/datum/spacevine_mutation/mutation in mutations) mutation.on_buckle(src, victim) - if((victim.stat != DEAD) && (victim.buckled != src)) //not dead or captured + if((victim.stat != DEAD) && (victim.buckled != src) && can_tangle) //not dead and not captured and can tangle to_chat(victim, span_userdanger("The vines [pick("wind", "tangle", "tighten")] around you!")) buckle_mob(victim, 1)