mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 13:42:44 +00:00
Added plant controller.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user