e39eea7b17
* Squashes Commits, has BEPIS, Techs, TGUIs, Rewards, and fixes. * Makes rewardable techs a variable in all_nodes, and removes RnD Points rewards from the minor reward pool. * Fixes conflict with pubby and beam icon. * Review comments and basic cleanup A * Review Comments and basic cleanup B, also cleans up icon states to work fluidly. * Map Update * Indentation, flipped Update_decal_path, and rebuilds tgui * One last clean up of icon_state, adds the last bit of changes from review, and that should be everything. * Alright last change for real I swear 105% * Last change, adds simple sanity check for silicons. * Moved Human and card variables into ui_interact. * Fixes map conflict * Alright Review Round 2 Part A, Fixes Grammar, splits polycircuit into it's own file, UI QOL improvements, Withdrawing credits, changes from arbitary values on the mini RLD, etc. * More review bits, Part 2:B. Easier returns for less processing, Defines, fixes the merge conflict and updates the UI with new buttons. Just need to figure out Button Mapping for the UI and Duplicate prevention. * Implemented duplicate tech protection. Yeet. * Get back in there you * Alright why are you breaking on me god damnit. * It's optimized, closer to god, nearly perfect, all together it's ready to ship. * Cleans up all of the decal painter, shorter, cleaner, works around all the turf_decal quirks. * Tab spacing on github will look fucky * More review changes. * Uses use_power == ACTIVE_POWER_USE instead of powered except for the UI
80 lines
1.9 KiB
Plaintext
80 lines
1.9 KiB
Plaintext
/obj/item/stack/spacecash //Don't use base space cash stacks. Any other space cash stack can merge with them, and could cause potential money duping exploits.
|
|
name = "space cash"
|
|
singular_name = "bill"
|
|
icon = 'icons/obj/economy.dmi'
|
|
icon_state = "spacecash"
|
|
amount = 1
|
|
max_amount = INFINITY
|
|
throwforce = 0
|
|
throw_speed = 2
|
|
throw_range = 2
|
|
w_class = WEIGHT_CLASS_TINY
|
|
full_w_class = WEIGHT_CLASS_TINY
|
|
resistance_flags = FLAMMABLE
|
|
var/value = 0
|
|
grind_results = list(/datum/reagent/cellulose = 10)
|
|
|
|
/obj/item/stack/spacecash/Initialize()
|
|
. = ..()
|
|
update_desc()
|
|
|
|
/obj/item/stack/spacecash/proc/update_desc()
|
|
var/total_worth = get_item_credit_value()
|
|
desc = "It's worth [total_worth] credit[( total_worth > 1 ) ? "s" : ""]"
|
|
|
|
/obj/item/stack/spacecash/get_item_credit_value()
|
|
return (amount*value)
|
|
|
|
/obj/item/stack/spacecash/merge(obj/item/stack/S)
|
|
. = ..()
|
|
update_desc()
|
|
|
|
/obj/item/stack/spacecash/use(used, transfer = FALSE)
|
|
. = ..()
|
|
update_desc()
|
|
|
|
/obj/item/stack/spacecash/c1
|
|
icon_state = "spacecash"
|
|
singular_name = "one credit bill"
|
|
value = 1
|
|
|
|
/obj/item/stack/spacecash/c10
|
|
icon_state = "spacecash10"
|
|
singular_name = "ten credit bill"
|
|
value = 10
|
|
|
|
/obj/item/stack/spacecash/c20
|
|
icon_state = "spacecash20"
|
|
singular_name = "twenty credit bill"
|
|
value = 20
|
|
|
|
/obj/item/stack/spacecash/c50
|
|
icon_state = "spacecash50"
|
|
singular_name = "fifty credit bill"
|
|
value = 50
|
|
|
|
/obj/item/stack/spacecash/c100
|
|
icon_state = "spacecash100"
|
|
singular_name = "one hundred credit bill"
|
|
value = 100
|
|
|
|
/obj/item/stack/spacecash/c200
|
|
icon_state = "spacecash200"
|
|
singular_name = "two hundred credit bill"
|
|
value = 200
|
|
|
|
/obj/item/stack/spacecash/c500
|
|
icon_state = "spacecash500"
|
|
singular_name = "five hundred credit bill"
|
|
value = 500
|
|
|
|
/obj/item/stack/spacecash/c1000
|
|
icon_state = "spacecash1000"
|
|
singular_name = "one thousand credit bill"
|
|
value = 1000
|
|
|
|
/obj/item/stack/spacecash/c10000
|
|
icon_state = "spacecash10000"
|
|
singular_name = "ten thousand credit bill"
|
|
value = 10000
|