Smol botany update (#9068)

* Smol botany update

- Adds the botany belt, capable of holding botany related tools, beakers & bottles as well as the floral somatoray
- Gives spades the ability to dig up plants so we don't have to go full texas chainsaw massacre on them whenever we want to remove one
- Adds botany belts to biogenerators
- Adds 2 and 3 spades to xenobotany and botany, respectively

* Update tray.dm
This commit is contained in:
enbyfriend
2023-04-23 11:19:38 -08:00
committed by GitHub
parent d77c87cbd1
commit 2ecf2befc5
5 changed files with 49 additions and 0 deletions
+23
View File
@@ -574,6 +574,29 @@
anchored = !anchored
to_chat(user, "<span class='filter_notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
else if(istype(O, /obj/item/shovel/spade))
if(!weedlevel && !seed) // Don't do anything if the tray is truly empty
to_chat(user, SPAN_NOTICE("[src] doesn't have any plants or weeds!"))
return
user.visible_message(SPAN_NOTICE("[user] starts digging out [src]'s plants..."))
to_chat(user, SPAN_NOTICE("You start digging out [src]'s plants..."))
playsound(src, O.usesound, 50, 1)
if(do_after(user, 40 * O.toolspeed))
to_chat(user, SPAN_NOTICE("[user] digs out the plants in [src]!"), SPAN_NOTICE("You dig out all of [src]'s plants!"))
if(seed) // Chuck the seed -- it's basically just a forced remove_dead() without the verbosity
seed = null
dead = 0
sampled = 0
age = 0
yield_mod = 0
mutation_mod = 0
lastproduce = 0
weedlevel = 0
check_health()
force_update = 1
process()
return
else if(istype(O,/obj/item/multitool))
if(!anchored)
to_chat(user, "<span class='warning'>Anchor it first!</span>")