Random seeds now have a base_name

This commit is contained in:
Crazylemon64
2016-08-23 00:56:58 -07:00
parent 692a971e75
commit 84b44ea41c
2 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -406,8 +406,10 @@
/datum/seed/proc/randomize()
roundstart = 0
seed_name = "strange plant" // TODO: name generator.
// TODO: Better name generator
seed_name = "cultivar #[uid]"
display_name = "strange plants" // TODO: name generator.
base_name = seed_name
mysterious = 1
seed_noun = pick("spores","nodes","cuttings","seeds")
modular_icon = 1
+2 -3
View File
@@ -96,9 +96,9 @@ var/global/datum/controller/plants/plant_controller // Set in New().
// Proc for creating a random seed type.
/datum/controller/plants/proc/create_random_seed(var/survive_on_station)
var/datum/seed/seed = new()
seed.randomize()
seed.uid = plant_controller.seeds.len + 1
seed.name = "[seed.uid]"
seed.randomize()
seeds[seed.name] = seed
if(survive_on_station)
@@ -106,8 +106,7 @@ var/global/datum/controller/plants/plant_controller // Set in New().
seed.consume_gasses["plasma"] = null
seed.consume_gasses["carbon_dioxide"] = null
if(seed.chems && !isnull(seed.chems["pacid"]))
seed.chems["pacid"] = null // Eating through the hull will make these plants completely inviable, albeit very dangerous.
seed.chems -= null // Setting to null does not actually remove the entry, which is weird.
seed.chems -= "pacid" // Eating through the hull will make these plants completely inviable, albeit very dangerous.
seed.set_trait(TRAIT_IDEAL_HEAT,293)
seed.set_trait(TRAIT_HEAT_TOLERANCE,20)
seed.set_trait(TRAIT_IDEAL_LIGHT,8)