From 9cc15cd16e7c68a10fb56fb42a0f9f125669b22e Mon Sep 17 00:00:00 2001 From: NPC1314 Date: Sun, 22 Sep 2024 09:55:19 +0200 Subject: [PATCH] Vault --- code/__HELPERS/unsorted.dm | 5 +++++ code/controllers/subsystem/rogue/treasury.dm | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 43a11275af..4d4b333172 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1616,3 +1616,8 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new) return input else return 1 + +// -------- ECONOMY RELATED GLOBAL LISTS +GLOBAL_LIST_INIT(ITEM_DOES_NOT_GENERATE_VAULT_RENT, typecacheof(list( + /obj/item/roguecoin + ))) diff --git a/code/controllers/subsystem/rogue/treasury.dm b/code/controllers/subsystem/rogue/treasury.dm index 9dbb710e99..423efdc63c 100644 --- a/code/controllers/subsystem/rogue/treasury.dm +++ b/code/controllers/subsystem/rogue/treasury.dm @@ -114,8 +114,10 @@ SUBSYSTEM_DEF(treasury) */ if(!I.submitted_to_stockpile) I.submitted_to_stockpile = TRUE - //Passive income is 25% of the items worth. - passive_income += (I.get_real_price()*0.25) + //Passive income is 10% of the items worth. + if(is_type_in_typecache(I, GLOB.ITEM_DOES_NOT_GENERATE_VAULT_RENT) ) + passive_income += (I.get_real_price()*0) // coin gives no interest, need to have rare items or refined products + else passive_income += (I.get_real_price()*0.1) return passive_income /*