Some quick economy fixes and improvements.
This commit is contained in:
@@ -272,7 +272,6 @@
|
||||
include_modes = list(/datum/game_mode/nuclear, /datum/game_mode/nuclear/clown_ops)
|
||||
restricted = TRUE
|
||||
|
||||
/* for now
|
||||
/datum/uplink_item/device_tools/suspiciousphone
|
||||
name = "Protocol CRAB-17 Phone"
|
||||
desc = "The Protocol CRAB-17 Phone, a phone borrowed from an unknown third party, it can be used to crash the space market, funneling the losses of the crew to your bank account.\
|
||||
@@ -280,4 +279,5 @@
|
||||
item = /obj/item/suspiciousphone
|
||||
cost = 7
|
||||
restricted = TRUE
|
||||
*/
|
||||
limited_stock = 1
|
||||
|
||||
|
||||
@@ -299,6 +299,7 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
R.amount = amount
|
||||
R.max_amount = amount
|
||||
R.custom_price = initial(temp.custom_price)
|
||||
R.custom_premium_price = initial(temp.custom_premium_price)
|
||||
recordlist += R
|
||||
/**
|
||||
* Refill a vending machine from a refill canister
|
||||
@@ -577,12 +578,13 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
if(cost_mult != 1)
|
||||
.["cost_mult"] = cost_mult
|
||||
if(cost_mult < 1)
|
||||
.["cost_text"] = " [(1 - cost_mult) * 100]% OFF"
|
||||
.["cost_text"] = " ([(1 - cost_mult) * 100]% OFF)"
|
||||
else
|
||||
.["cost_text"] = " [(cost_mult - 1) * 100]% EXTRA"
|
||||
.["cost_text"] = " ([(cost_mult - 1) * 100]% EXTRA)"
|
||||
.["stock"] = list()
|
||||
for (var/datum/data/vending_product/R in product_records + coin_records + hidden_records)
|
||||
.["stock"][R.name] = R.amount
|
||||
.
|
||||
.["extended_inventory"] = extended_inventory
|
||||
|
||||
/obj/machinery/vending/ui_act(action, params)
|
||||
@@ -635,7 +637,7 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
return
|
||||
var/datum/bank_account/account = C.registered_account
|
||||
if(coin_records.Find(R) || hidden_records.Find(R))
|
||||
price_to_use = R.custom_premium_price ? R.custom_premium_price : extra_price
|
||||
price_to_use = R.custom_premium_price || extra_price
|
||||
else
|
||||
price_to_use = round(price_to_use * get_best_discount(C))
|
||||
if(price_to_use && !account.adjust_money(-price_to_use))
|
||||
|
||||
Reference in New Issue
Block a user