mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
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:
@@ -260,6 +260,16 @@
|
||||
density = TRUE
|
||||
anchored = TRUE
|
||||
deconstructible = FALSE
|
||||
max_integrity = 80
|
||||
|
||||
/obj/structure/fluff/hedge/attacked_by(obj/item/I, mob/living/user)
|
||||
if(opacity && HAS_TRAIT(user, TRAIT_BONSAI) && I.get_sharpness())
|
||||
to_chat(user,"<span class='notice'>You start trimming \the [src].</span>")
|
||||
if(do_after(user, 3 SECONDS,target=src))
|
||||
to_chat(user,"<span class='notice'>You finish trimming \the [src].</span>")
|
||||
opacity = FALSE
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/structure/fluff/hedge/opaque //useful for mazes and such
|
||||
opacity = TRUE
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 73 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user