Adds hydroponics shrubs, allowing botanists to grow hedges. (#55496)

Replaces one of the rainbow seeds in the exotic seeds crate with a pack of shrub seeds.
Adds a new, growable seed species for shrubs. Shrubs, when planted (similar to kudzu!) plants a solid, weak barrier in hedges.
These hedges block vision, unless trimmed. Thankfully, we already have a hedge trimming skillchip, so using a sharp implement on the hedge will make it non-opaque.
This commit is contained in:
ArcaneMusic
2020-12-21 04:14:14 -05:00
committed by GitHub
parent fac612a96f
commit 1c82c73d83
6 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -1700,7 +1700,7 @@
/obj/item/seeds/bamboo,
/obj/item/seeds/eggplant/eggy,
/obj/item/seeds/rainbow_bunch,
/obj/item/seeds/rainbow_bunch,
/obj/item/seeds/shrub,
/obj/item/seeds/random,
/obj/item/seeds/random)
crate_name = "exotic seeds crate"
+32
View File
@@ -261,3 +261,35 @@
/obj/item/food/grown/aloe/microwave_act(obj/machinery/microwave/M)
new /obj/item/stack/medical/aloe(drop_location(), 2)
qdel(src)
/obj/item/seeds/shrub
name = "pack of shrub seeds"
desc = "These seeds grow into hedge shrubs."
icon_state = "seed-shrub"
species = "shrub"
plantname = "Shrubbery"
product = /obj/item/grown/shrub
lifespan = 40
endurance = 30
maturation = 4
production = 6
yield = 2
instability = 10
growthstages = 3
reagents_add = list()
/obj/item/grown/shrub
seed = /obj/item/seeds/shrub
name = "shrub"
desc = "A shrubbery, it looks nice and it was only a few credits too. Plant it on the ground to grow a hedge, shrubbing skills not required."
icon_state = "shrub"
/obj/item/grown/shrub/attack_self(mob/user)
var/turf/player_turf = get_turf(user)
if(player_turf?.is_blocked_turf(TRUE))
return FALSE
user.visible_message("<span class='danger'>[user] begins to plant \the [src]...</span>")
if(do_after(user, 8 SECONDS, target = user.drop_location(), progress = TRUE))
new /obj/structure/fluff/hedge/opaque(user.drop_location())
to_chat(user, "<span class='notice'>You plant \the [src].</span>")
qdel(src)