From 092415955427bf084ec0d52cb04f00ac8567414a Mon Sep 17 00:00:00 2001 From: Atermonera Date: Tue, 31 Dec 2019 16:12:49 -0800 Subject: [PATCH] Merge pull request #6589 from Heroman3003/fruist-multispawn 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 878671b0e20..c23a6020b09 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1055,8 +1055,10 @@ var/datum/announcement/minor/admin_min_announcer = new 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()