mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user