This commit is contained in:
drexample
2020-01-11 06:42:54 +03:00
parent e6e7098d30
commit 1be4fe8b3c
5 changed files with 16 additions and 2 deletions

View File

@@ -25,6 +25,7 @@
var/apply_color_to_mob = TRUE // Do we color the mob to match the plant?
var/has_item_product // Item products. (Eggy)
var/force_layer
var/harvest_sound = null
// Making the assumption anything in HYDRO-ponics is capable of processing water, and nutrients commonly associated with it, leaving us with the below to be tweaked.
var/list/beneficial_reagents // Reagents considered uniquely 'beneficial' by a plant.
@@ -769,6 +770,10 @@
var/turf/T = get_turf(user)
create_spores(T)
if(harvest_sound)
var/turf/M = get_turf(user)
playsound(M, harvest_sound, 50, 1, -1)
if(!force_amount && get_trait(TRAIT_YIELD) == 0 && !harvest_sample)
if(istype(user)) user << "<span class='danger'>You fail to harvest anything useful.</span>"
else

View File

@@ -1503,6 +1503,7 @@
display_name = "gnomes"
force_layer = 3
chems = list("magicdust" = list(5,20))
harvest_sound = 'sound/items/hooh.ogg'
/datum/seed/gnomes/New()
..()