Merge pull request #52196 from ArcaneMusic/funnicactus

Adds Star Cacti and the Prickly Adhesion plant trait.
This commit is contained in:
skoglol
2020-07-16 09:00:40 +02:00
committed by GitHub
5 changed files with 53 additions and 0 deletions
+22
View File
@@ -220,6 +220,11 @@
name = "Liquid Contents"
examine_line = "<span class='info'>It has a lot of liquid contents inside.</span>"
/datum/plant_gene/trait/squash/can_add(obj/item/seeds/S)
if(S.get_gene(/datum/plant_gene/trait/sticky))
return FALSE
. = ..()
/datum/plant_gene/trait/squash/on_slip(obj/item/reagent_containers/food/snacks/grown/G, mob/living/carbon/C)
// Squash the plant on slip.
G.squash(C)
@@ -514,6 +519,23 @@
googly.appearance_flags = RESET_COLOR
G.add_overlay(googly)
/datum/plant_gene/trait/sticky
name = "Prickly Adhesion"
/datum/plant_gene/trait/sticky/on_new(obj/item/reagent_containers/food/snacks/grown/G, newloc)
. = ..()
if(G.seed.get_gene(/datum/plant_gene/trait/stinging))
G.embedding = EMBED_POINTY
else
G.embedding = EMBED_HARMLESS
G.updateEmbedding()
G.throwforce = (G.seed.potency/20)
/datum/plant_gene/trait/sticky/can_add(obj/item/seeds/S)
if(S.get_gene(/datum/plant_gene/trait/squash))
return FALSE
. = ..()
/datum/plant_gene/trait/plant_type // Parent type
name = "you shouldn't see this"
trait_id = "plant_type"
+31
View File
@@ -220,11 +220,42 @@
species = "cactus"
plantname = "Fruiting Cactus"
product = /obj/item/reagent_containers/food/snacks/grown/ash_flora/cactus_fruit
mutatelist = list(/obj/item/seeds/star_cactus)
genes = list(/datum/plant_gene/trait/fire_resistance)
growing_icon = 'icons/obj/hydroponics/growing_fruits.dmi'
growthstages = 2
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.04, /datum/reagent/consumable/vitfro = 0.08)
///Star Cactus seeds, mutation of lavaland cactus.
/obj/item/seeds/star_cactus
name = "pack of star cacti seeds"
desc = "These seeds grow into star cacti."
icon_state = "seed-starcactus"
species = "starcactus"
plantname = "Star Cactus Cluster"
product = /obj/item/reagent_containers/food/snacks/grown/star_cactus
lifespan = 60
endurance = 30
maturation = 7
production = 6
yield = 3
growthstages = 4
genes = list(/datum/plant_gene/trait/sticky, /datum/plant_gene/trait/stinging)
graft_gene = /datum/plant_gene/trait/sticky
growing_icon = 'icons/obj/hydroponics/growing_vegetables.dmi'
reagents_add = list(/datum/reagent/water = 0.08, /datum/reagent/consumable/nutriment = 0.05, /datum/reagent/medicine/c2/helbital = 0.05)
///Star Cactus Plants.
/obj/item/reagent_containers/food/snacks/grown/star_cactus
seed = /obj/item/seeds/star_cactus
name = "star cacti"
desc = "A spikey, round cluster of prickly star cacti. And no, it's not called a star cactus because it's in space."
icon_state = "starcactus"
filling_color = "#1c801c"
bitesize_mod = 3
foodtype = VEGETABLES
distill_reagent = /datum/reagent/consumable/ethanol/tequila
/obj/item/seeds/lavaland/polypore
name = "pack of polypore mycelium"
desc = "This mycelium grows into bracket mushrooms, also known as polypores. Woody and firm, shaft miners often use them for makeshift crafts."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB