From 5ba7c076ff63aff597678c650ed67386e4c0b1ff Mon Sep 17 00:00:00 2001 From: Shadowfire117 Date: Tue, 26 Feb 2019 11:40:54 +0100 Subject: [PATCH] Fossilized plants can be cleaned to get exotic and ancient seeds! --- code/modules/xenoarcheaology/finds/fossils.dm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/code/modules/xenoarcheaology/finds/fossils.dm b/code/modules/xenoarcheaology/finds/fossils.dm index 8df5b92623..4f0d3bc73c 100644 --- a/code/modules/xenoarcheaology/finds/fossils.dm +++ b/code/modules/xenoarcheaology/finds/fossils.dm @@ -94,11 +94,13 @@ icon_state = "shell" desc = "It's a fossilised shell." -/obj/item/weapon/fossil/plant - name = "Fossilised plant" - icon_state = "plant1" - desc = "It's fossilised plant remains." - animal = 0 - /obj/item/weapon/fossil/plant/New() icon_state = "plant[rand(1,4)]" + +/obj/item/weapon/fossil/plant/attackby(var/obj/item/I, var/mob/user) + if(istype(I, /obj/item/weapon/pickaxe/brush)) + new /obj/item/seeds/random(get_turf(user),name) + if(prob(25)) + new /obj/item/seeds/random(get_turf(user),name) + visible_message("\The [src] is brushed away, revealing ancient seeds.") + qdel(src) \ No newline at end of file