mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-25 06:06:34 +01:00
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:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user