From f59b8268e4ca9db3050f2edbaba539bb2e417a11 Mon Sep 17 00:00:00 2001 From: Heroman Date: Sun, 29 Dec 2019 05:53:10 +1000 Subject: [PATCH] Allows admin spawning fruit in multiples --- code/modules/admin/admin.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 12dba02bf0..d158806c7f 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1052,8 +1052,10 @@ proc/admin_notice(var/message, var/rights) if(!seedtype || !plant_controller.seeds[seedtype]) return - var/datum/seed/S = plant_controller.seeds[seedtype] - S.harvest(usr,0,0,1) + var/amount = input("Amount of fruit to spawn", "Fruit Amount", 1) as null|num + if(!isnull(amount)) + var/datum/seed/S = plant_controller.seeds[seedtype] + S.harvest(usr,0,0,amount) log_admin("[key_name(usr)] spawned [seedtype] fruit at ([usr.x],[usr.y],[usr.z])") /datum/admins/proc/spawn_custom_item()