mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 09:03:05 +00:00
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
/obj/item/weapon/reagent_containers/food/snacks/grown/sif
|
|
var/seeds = 0
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/Initialize(mapload, planttype) // Wild Sifplants have some seeds you can extract with a knife.
|
|
. = ..()
|
|
seeds = rand(1, 2)
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/examine(mob/user)
|
|
. = ..()
|
|
if(seeds)
|
|
to_chat(user, SPAN_NOTICE("You can see [seeds] seed\s in \the [src]. You might be able to extract them with a sharp object."))
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/attackby(var/obj/item/weapon/W, var/mob/living/user)
|
|
if(seed && W.sharp && seeds > 0)
|
|
var/take_seeds = min(seeds, rand(1,2))
|
|
seeds -= take_seeds
|
|
to_chat(user, SPAN_NOTICE("You stick \the [W] into \the [src] and lever out [take_seeds] seed\s."))
|
|
for(var/i = 1 to take_seeds)
|
|
new /obj/item/seeds(get_turf(src), seed.name)
|
|
return
|
|
. = ..()
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/sifpod
|
|
plantname = "sifbulb"
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/whitewabback
|
|
plantname = "whitewabback"
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/blackwabback
|
|
plantname = "blackwabback"
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/wildwabback
|
|
plantname = "wildwabback"
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/eyebulbs
|
|
plantname = "eyebulbs"
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/sif/cavebulbs
|
|
plantname = "cavebulbs"
|