Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions modular_darkpack/modules/events/code/economy_crash_event.dm
Original file line number Diff line number Diff line change
@@ -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].")
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// DM Environment file for tgstation.dme.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\objs\dwelling_window_defs.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\areas\area_dwelling_instances.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\area_dwelling.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\obj_dwelling.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\_dwelling_gvars_defines.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\latejoin_antagonists\code\latejoin_subsystem.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\economy\code\stocks_license.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\powers\code\discipline\mytherceria.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\powers\code\discipline\healer_valeren.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\drugs\code\bloodpacks\bloodpack_adulteration.dm.
// All manual changes should be made outside the BEGIN_ and END_ blocks.
// New source code should be placed in .dm files: choose File/New --> Code File.

Expand Down Expand Up @@ -7223,6 +7223,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\external_organs\code\gargoyle_wings.dm"
#include "modular_darkpack\modules\external_organs\code\gargoyle_wings_sprite_accessory_datum.dm"
#include "modular_darkpack\modules\fire\code\fire.dm"
Expand Down
Loading