mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 08:31:54 +00:00
3591 individual conflicts Update build.js Update install_node.sh Update byond.js oh my fucking god hat slow huh holy shit we all fall down 2 more I missed 2900 individual conflicts 2700 Individual conflicts replaces yarn file with tg version, bumping us down to 2200-ish Down to 2000 individual conflicts 140 down mmm aaaaaaaaaaaaaaaaaaa not yt 575 soon 900 individual conflicts 600 individual conflicts, 121 file conflicts im not okay 160 across 19 files 29 in 4 files 0 conflicts, compiletime fix time some minor incap stuff missed ticks weird dupe definition stuff missed ticks 2 incap fixes undefs and pie fix Radio update and some extra minor stuff returns a single override no more dupe definitions, 175 compiletime errors Unticked file fix sound and emote stuff honk and more radio stuff
87 lines
2.9 KiB
Plaintext
87 lines
2.9 KiB
Plaintext
#define CREDIT_TYPE_BITRUNNING "np"
|
|
|
|
/obj/machinery/computer/order_console/bitrunning
|
|
name = "bitrunning supplies order console"
|
|
desc = "NexaCache(tm)! Dubiously authentic gear for the digital daredevil."
|
|
icon = 'icons/obj/machines/bitrunning.dmi'
|
|
icon_state = "vendor"
|
|
icon_keyboard = null
|
|
icon_screen = null
|
|
circuit = /obj/item/circuitboard/computer/order_console/bitrunning
|
|
cooldown_time = 10 SECONDS
|
|
cargo_cost_multiplier = 0.65
|
|
express_cost_multiplier = 1
|
|
purchase_tooltip = @{"Your purchases will arrive at cargo,
|
|
and hopefully get delivered by them.
|
|
35% cheaper than express delivery."}
|
|
express_tooltip = @{"Sends your purchases instantly."}
|
|
credit_type = CREDIT_TYPE_BITRUNNING
|
|
|
|
order_categories = list(
|
|
CATEGORY_BITRUNNING_FLAIR,
|
|
CATEGORY_BITRUNNING_TECH,
|
|
CATEGORY_BEPIS,
|
|
)
|
|
blackbox_key = "bitrunning"
|
|
|
|
/obj/machinery/computer/order_console/bitrunning/subtract_points(final_cost, obj/item/card/id/card)
|
|
if(final_cost <= card.registered_account.bitrunning_points)
|
|
card.registered_account.bitrunning_points -= final_cost
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/obj/machinery/computer/order_console/bitrunning/order_groceries(mob/living/purchaser, obj/item/card/id/card, list/groceries)
|
|
var/list/things_to_order = list()
|
|
for(var/datum/orderable_item/item as anything in groceries)
|
|
things_to_order[item.item_path] = groceries[item]
|
|
|
|
var/datum/supply_pack/bitrunning/pack = new(
|
|
purchaser = purchaser, \
|
|
cost = get_total_cost(), \
|
|
contains = things_to_order,
|
|
)
|
|
|
|
var/datum/supply_order/new_order = new(
|
|
pack = pack,
|
|
orderer = purchaser,
|
|
orderer_rank = "Bitrunning Vendor",
|
|
orderer_ckey = purchaser.ckey,
|
|
reason = "",
|
|
paying_account = card.registered_account,
|
|
department_destination = null,
|
|
coupon = null,
|
|
charge_on_purchase = FALSE,
|
|
manifest_can_fail = FALSE,
|
|
cost_type = credit_type,
|
|
can_be_cancelled = FALSE,
|
|
)
|
|
say("Thank you for your purchase! It will arrive on the next cargo shuttle!")
|
|
radio.talk_into(src, "A bitrunner has ordered equipment which will arrive on the cargo shuttle! Please make sure it gets to them as soon as possible!", radio_channel)
|
|
SSshuttle.shopping_list += new_order
|
|
|
|
/obj/machinery/computer/order_console/bitrunning/retrieve_points(obj/item/card/id/id_card)
|
|
return round(id_card.registered_account.bitrunning_points)
|
|
|
|
/obj/machinery/computer/order_console/bitrunning/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
|
. = ..()
|
|
if(!.)
|
|
flick("vendor_off", src)
|
|
|
|
/obj/machinery/computer/order_console/bitrunning/update_icon_state()
|
|
icon_state = "[initial(icon_state)][powered() ? null : "_off"]"
|
|
return ..()
|
|
|
|
/datum/supply_pack/bitrunning
|
|
name = "bitrunning order"
|
|
hidden = TRUE
|
|
crate_name = "bitrunning delivery crate"
|
|
access = list(ACCESS_BIT_DEN)
|
|
|
|
/datum/supply_pack/bitrunning/New(purchaser, cost, list/contains)
|
|
. = ..()
|
|
name = "[purchaser]'s Bitrunning Order"
|
|
src.cost = cost
|
|
src.contains = contains
|
|
|
|
#undef CREDIT_TYPE_BITRUNNING
|