mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
/obj/item/reagent_containers/food/snacks/grown/sif
|
|
var/seeds = 0
|
|
|
|
/obj/item/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/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/reagent_containers/food/snacks/grown/sif/attackby(var/obj/item/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/reagent_containers/food/snacks/grown/sif/sifpod
|
|
plantname = PLANT_SIFBULB
|
|
|
|
/obj/item/reagent_containers/food/snacks/grown/sif/wabback
|
|
plantname = PLANT_WHITEWABBACK
|
|
|
|
/obj/item/reagent_containers/food/snacks/grown/sif/blackwabback
|
|
plantname = PLANT_BLACKWABBACK
|
|
|
|
/obj/item/reagent_containers/food/snacks/grown/sif/wildwabback
|
|
plantname = PLANT_WILDWABBACK
|
|
|
|
/obj/item/reagent_containers/food/snacks/grown/sif/eyebulbs
|
|
plantname = "eyebulbs"
|
|
|
|
/obj/item/reagent_containers/food/snacks/grown/sif/cavebulbs
|
|
plantname = "cavebulbs"
|