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.
This commit is contained in:
Salex08
2022-12-06 15:37:47 -05:00
committed by GitHub
parent 19ac6d5260
commit 376cb8d3f9
2 changed files with 6 additions and 2 deletions
@@ -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)
@@ -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