diff --git a/modular_darkpack/modules/events/code/economy_crash_event.dm b/modular_darkpack/modules/events/code/economy_crash_event.dm new file mode 100644 index 000000000000..fbe9b49f409e --- /dev/null +++ b/modular_darkpack/modules/events/code/economy_crash_event.dm @@ -0,0 +1,31 @@ +/datum/round_event_control/darkpack/financial_crisis + name = "Financial Crisis" + typepath = /datum/round_event/financial_crisis + weight = 2 + min_players = 5 + max_occurrences = 1 + earliest_start = 50 MINUTES + category = EVENT_CATEGORY_BUREAUCRATIC + description = "Wall Street has crashed catastrophically causing all of Bianchi Bank's accounts to tank as people lose their savings." + darkpack_allowed = TRUE + +/datum/round_event/financial_crisis + start_when = 1 + announce_when = 3 + +/datum/round_event/financial_crisis/announce(fake) + priority_announce( + "Bianchi Bank sadly announces that cutting-edge financial instruments have been revealed to be fraudulent as tens of thousands of account holder's savings are wiped out in seconds...", + "BREAKING Financial News ALERT", + 'modular_darkpack/modules/events/sounds/news_notification.ogg', + ANNOUNCEMENT_TYPE_PRIORITY, + color_override = "green", + ) + +/datum/round_event/financial_crisis/start() + for(var/account_id in SSeconomy.bank_accounts_by_id) + var/datum/bank_account/bank = SSeconomy.bank_accounts_by_id[account_id] + if(!istype(bank, /datum/bank_account)) + continue + bank.adjust_money(-(round(bank.account_balance * (rand(85, 95) / 100))), "Financial Crisis") // leaves them with 5-15% of their savings + bank.bank_card_talk("Stock market fluctuations have impacted your account as Bianchi Bank faces a liquidity crisis. Account balance is now [bank.account_balance].") diff --git a/tgstation.dme b/tgstation.dme index a01a0abf082c..12964514b1bd 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -7269,6 +7269,7 @@ #include "modular_darkpack\modules\ert\code\outfits\swat_outfits.dm" #include "modular_darkpack\modules\events\code\_darkpack_event.dm" #include "modular_darkpack\modules\events\code\blackout_event.dm" +#include "modular_darkpack\modules\events\code\economy_crash_event.dm" #include "modular_darkpack\modules\events\code\szlachta_attack_event.dm" #include "modular_darkpack\modules\events\code\landmarks\event_landmarks.dm" #include "modular_darkpack\modules\external_organs\code\gargoyle_wings.dm"