From a5cd29f17b0038e4d311fc88259a7eee2f7a9a26 Mon Sep 17 00:00:00 2001 From: AzuleUtama <44248086+AzuleUtama@users.noreply.github.com> Date: Mon, 4 Mar 2019 19:40:23 +0000 Subject: [PATCH] Fixed two bugs with the cyber implant bundle, ammo bag and cyber bundle no longer discountable --- code/datums/uplink_item.dm | 6 +++++- code/modules/surgery/organs/augments_internal.dm | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/datums/uplink_item.dm b/code/datums/uplink_item.dm index 4e49980af5b..a22bdd371a6 100644 --- a/code/datums/uplink_item.dm +++ b/code/datums/uplink_item.dm @@ -642,6 +642,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) item = /obj/item/storage/backpack/duffel/syndie/ammo/loaded cost = 10 //bulk buyer's discount. Very useful if you're buying a mech and dont have TC left to buy people non-shotgun guns gamemodes = list(/datum/game_mode/nuclear) + cant_discount = TRUE /datum/uplink_item/ammo/bullslug name = "Bulldog - 12g Slug Magazine" @@ -1461,10 +1462,11 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) category = "Cybernetic Implants" surplus = 0 gamemodes = list(/datum/game_mode/nuclear) + var/cyber_bundle = FALSE /datum/uplink_item/cyber_implants/spawn_item(turf/loc, obj/item/uplink/U) if(item) - if(findtext(item, /obj/item/organ/internal/cyberimp)) + if(findtext(item, /obj/item/organ/internal/cyberimp) && !cyber_bundle) U.uses -= max(cost, 0) U.used_TC += cost feedback_add_details("traitor_uplink_items_bought", name) //this one and the line before copypasted because snowflaek code @@ -1508,6 +1510,8 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) reference = "CIB" item = /obj/item/storage/box/cyber_implants/bundle cost = 40 + cyber_bundle = TRUE + cant_discount = TRUE // POINTLESS BADASSERY diff --git a/code/modules/surgery/organs/augments_internal.dm b/code/modules/surgery/organs/augments_internal.dm index f60674dd190..73d54003fc5 100644 --- a/code/modules/surgery/organs/augments_internal.dm +++ b/code/modules/surgery/organs/augments_internal.dm @@ -326,6 +326,7 @@ /obj/item/storage/box/cyber_implants/bundle/New() ..() var/implant - while(contents.len <= amount + 1) // +1 for the autoimplanter. + while(amount > 0) implant = pick(boxed) new implant(src) + amount--