From 6d27ce0a627df5f69a34cc875dc5a694c635d9b4 Mon Sep 17 00:00:00 2001 From: uraniummeltdown Date: Thu, 16 Mar 2017 21:01:16 +0400 Subject: [PATCH] added 10% chance for random crate to be added to supply shuttle on calling it to station --- code/modules/shuttle/supply.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/shuttle/supply.dm b/code/modules/shuttle/supply.dm index cef2bea0c3e..6fc4cae582e 100644 --- a/code/modules/shuttle/supply.dm +++ b/code/modules/shuttle/supply.dm @@ -662,6 +662,13 @@ investigate_log("[key_name(usr)] has sent the supply shuttle away. Remaining points: [shuttle_master.points]. Shuttle contents: [shuttle_master.sold_atoms]", "cargo") else if(!shuttle_master.supply.request(shuttle_master.getDock("supply_home"))) post_signal("supply") + if(LAZYLEN(shuttle_master.shoppinglist) && prob(10)) + var/datum/supply_order/O = new /datum/supply_order() + O.ordernum = shuttle_master.ordernum + O.object = shuttle_master.supply_packs[pick(shuttle_master.supply_packs)] + O.orderedby = random_name(pick(MALE,FEMALE), species = "Human") + shuttle_master.shoppinglist += O + investigate_log("Random [O.object] crate added to supply shuttle") else if(href_list["doorder"]) if(world.time < reqtime)