From 3ddfbe0e29d05d36b18bb42b110843ccd07636b9 Mon Sep 17 00:00:00 2001 From: necromanceranne <40847847+necromanceranne@users.noreply.github.com> Date: Mon, 30 Mar 2020 02:16:58 +1100 Subject: [PATCH] Null Crate removal (#11672) --- code/modules/cargo/packs/emergency.dm | 24 ------------------------ code/modules/uplink/uplink_items.dm | 6 ------ 2 files changed, 30 deletions(-) diff --git a/code/modules/cargo/packs/emergency.dm b/code/modules/cargo/packs/emergency.dm index be81da3b92..ef15ab041d 100644 --- a/code/modules/cargo/packs/emergency.dm +++ b/code/modules/cargo/packs/emergency.dm @@ -206,30 +206,6 @@ /obj/item/storage/box/mre/menu4/safe) crate_name = "MRE crate (emergency rations)" -/datum/supply_pack/emergency/syndicate - name = "NULL_ENTRY" - desc = "(#@&^$THIS PACKAGE CONTAINS 30TC WORTH OF SOME RANDOM SYNDICATE GEAR WE HAD LYING AROUND THE WAREHOUSE. GIVE EM HELL, OPERATIVE@&!*() " - hidden = TRUE - cost = 20000 - contains = list() - crate_name = "emergency crate" - crate_type = /obj/structure/closet/crate/internals - dangerous = TRUE - -/datum/supply_pack/emergency/syndicate/fill(obj/structure/closet/crate/C) - var/crate_value = 30 - var/list/uplink_items = get_uplink_items(SSticker.mode) - while(crate_value) - var/category = pick(uplink_items) - var/item = pick(uplink_items[category]) - var/datum/uplink_item/I = uplink_items[category][item] - if(!I.surplus_nullcrates || prob(100 - I.surplus_nullcrates)) - continue - if(crate_value < I.cost) - continue - crate_value -= I.cost - new I.item(C) - /datum/supply_pack/emergency/plasma_spacesuit name = "Plasmaman Space Envirosuits" desc = "Contains two space-worthy envirosuits for Plasmamen. Order now and we'll throw in two free helmets! Requires EVA access to open." diff --git a/code/modules/uplink/uplink_items.dm b/code/modules/uplink/uplink_items.dm index bbfa186a48..cc676777db 100644 --- a/code/modules/uplink/uplink_items.dm +++ b/code/modules/uplink/uplink_items.dm @@ -65,7 +65,6 @@ var/refund_amount = 0 // specified refund amount in case there needs to be a TC penalty for refunds. var/refundable = FALSE var/surplus = 100 // Chance of being included in the surplus crate. - var/surplus_nullcrates //Chance of being included in null crates. null = pull from surplus var/cant_discount = FALSE var/limited_stock = -1 //Setting this above zero limits how many times this item can be bought by the same traitor in a round, -1 is unlimited var/list/include_modes = list() // Game modes to allow this item in. @@ -76,11 +75,6 @@ var/restricted = FALSE // Adds restrictions for VR/Events var/illegal_tech = TRUE // Can this item be deconstructed to unlock certain techweb research nodes? -/datum/uplink_item/New() - . = ..() - if(isnull(surplus_nullcrates)) - surplus_nullcrates = surplus - /datum/uplink_item/proc/get_discount() return pick(4;0.75,2;0.5,1;0.25)