Added plant controller.

This commit is contained in:
Zuhayr
2015-02-05 15:53:20 +10:30
parent 5a1980aabd
commit 5890fa3c4b
21 changed files with 241 additions and 177 deletions

View File

@@ -1001,10 +1001,10 @@ var/global/floorIsLava = 0
if(!check_rights(R_SPAWN)) return
var/seedtype = input("Select a seed type", "Spawn Fruit") as null|anything in seed_types
if(!seedtype || !seed_types[seedtype])
var/seedtype = input("Select a seed type", "Spawn Fruit") as null|anything in plant_controller.seeds
if(!seedtype || !plant_controller.seeds[seedtype])
return
var/datum/seed/S = seed_types[seedtype]
var/datum/seed/S = plant_controller.seeds[seedtype]
S.harvest(usr,0,0,1)
/datum/admins/proc/spawn_plant()
@@ -1014,10 +1014,10 @@ var/global/floorIsLava = 0
if(!check_rights(R_SPAWN)) return
var/seedtype = input("Select a seed type", "Spawn Plant") as null|anything in seed_types
if(!seedtype || !seed_types[seedtype])
var/seedtype = input("Select a seed type", "Spawn Plant") as null|anything in plant_controller.seeds
if(!seedtype || !plant_controller.seeds[seedtype])
return
new /obj/effect/plant(get_turf(usr), seed_types[seedtype])
new /obj/effect/plant(get_turf(usr), plant_controller.seeds[seedtype])
/datum/admins/proc/spawn_atom(var/object as text)
set category = "Debug"