From 376cb8d3f99a8b8d33351b4a7d3d734d8cc97d98 Mon Sep 17 00:00:00 2001 From: Salex08 <33989683+Salex08@users.noreply.github.com> Date: Tue, 6 Dec 2022 21:37:47 +0100 Subject: [PATCH] Mining LTSRBT oversight fix (#71714) With the mining ltsrbt miners can invest very low amount of points to get a free crate which they could then sell to cargo for the value the crate has, with some automating they could get a lot of credits. This PR prevents it by making sure the order for the mining ltsrbt delivery has more or equal to crate value. Also increases the amount of marker beacon miners can buy in a row from 1 to 10 to make things easier. --- .../computer/orders/order_computer/order_computer.dm | 4 ++++ .../computer/orders/order_items/mining/order_mining.dm | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/computer/orders/order_computer/order_computer.dm b/code/game/machinery/computer/orders/order_computer/order_computer.dm index 736bb7cfb20..461a27fa162 100644 --- a/code/game/machinery/computer/orders/order_computer/order_computer.dm +++ b/code/game/machinery/computer/orders/order_computer/order_computer.dm @@ -120,6 +120,10 @@ GLOBAL_LIST_EMPTY(order_console_products) return if(!purchase_items(used_id_card)) return + //So miners cant spam buy crates for a very low price + if(get_total_cost() < CARGO_CRATE_VALUE) + say("For the delivery order needs to cost more or equal to [CARGO_CRATE_VALUE] points!") + return order_groceries(living_user, used_id_card, grocery_list, ltsrbt_delivered = (action == "ltsrbt_deliver")) grocery_list.Cut() COOLDOWN_START(src, order_cooldown, cooldown_time) diff --git a/code/game/machinery/computer/orders/order_items/mining/order_mining.dm b/code/game/machinery/computer/orders/order_items/mining/order_mining.dm index adde8dbed7e..033a0769249 100644 --- a/code/game/machinery/computer/orders/order_items/mining/order_mining.dm +++ b/code/game/machinery/computer/orders/order_items/mining/order_mining.dm @@ -2,8 +2,8 @@ category_index = CATEGORY_MINING /datum/orderable_item/mining/marker_beacon - item_path = /obj/item/stack/marker_beacon - cost_per_order = 10 + item_path = /obj/item/stack/marker_beacon/ten + cost_per_order = 100 /datum/orderable_item/mining/skeleton_key item_path = /obj/item/skeleton_key