mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Alternative To Removing Kudzu Manufacturing (#30080)
This commit is contained in:
@@ -69,43 +69,6 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/space_covering
|
|
||||||
name = "space protective"
|
|
||||||
hue = "#aa77aa"
|
|
||||||
quality = POSITIVE
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/space_covering
|
|
||||||
var/static/list/coverable_turfs
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/space_covering/New()
|
|
||||||
. = ..()
|
|
||||||
if(!coverable_turfs)
|
|
||||||
coverable_turfs = typecacheof(list(/turf/open/space)) - /turf/open/space/transit
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/space_covering/on_grow(obj/structure/spacevine/holder)
|
|
||||||
process_mutation(holder)
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/space_covering/process_mutation(obj/structure/spacevine/holder)
|
|
||||||
var/turf/T = get_turf(holder)
|
|
||||||
if(is_type_in_typecache(T, coverable_turfs))
|
|
||||||
var/currtype = T.type
|
|
||||||
T.ChangeTurf(/turf/open/floor/vines)
|
|
||||||
T.baseturf = currtype
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/space_covering/on_death(obj/structure/spacevine/holder)
|
|
||||||
var/turf/T = get_turf(holder)
|
|
||||||
if(istype(T, /turf/open/floor/vines))
|
|
||||||
T.ChangeTurf(T.baseturf)
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/bluespace
|
|
||||||
name = "bluespace"
|
|
||||||
hue = "#3333ff"
|
|
||||||
quality = MINOR_NEGATIVE
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/bluespace/on_spread(obj/structure/spacevine/holder, turf/target)
|
|
||||||
if(holder.energy > 1 && !locate(/obj/structure/spacevine) in target)
|
|
||||||
holder.master.spawn_spacevine_piece(target, holder)
|
|
||||||
|
|
||||||
/datum/spacevine_mutation/light
|
/datum/spacevine_mutation/light
|
||||||
name = "light"
|
name = "light"
|
||||||
hue = "#ffff00"
|
hue = "#ffff00"
|
||||||
|
|||||||
@@ -42,8 +42,10 @@
|
|||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
/obj/item/seeds/kudzu/attack_self(mob/user)
|
/obj/item/seeds/kudzu/attack_self(mob/user)
|
||||||
plant(user)
|
user.visible_message("<span class='danger'>[user] begins throwing seeds on the ground...</span>")
|
||||||
to_chat(user, "<span class='notice'>You plant the kudzu. You monster.</span>")
|
if(do_after(user, 50, needhand = TRUE, target = user.drop_location(), progress = TRUE))
|
||||||
|
plant(user)
|
||||||
|
to_chat(user, "<span class='notice'>You plant the kudzu. You monster.</span>")
|
||||||
|
|
||||||
/obj/item/seeds/kudzu/get_analyzer_text()
|
/obj/item/seeds/kudzu/get_analyzer_text()
|
||||||
var/text = ..()
|
var/text = ..()
|
||||||
|
|||||||
Reference in New Issue
Block a user