mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-29 11:32:13 +00:00
Synthetics can no longer magically print color images on a black-and-white photocopier. No longer possible for organics to acquire a synth-image by un-attaching it from a newscaster. News articles now come with a timestamp and photo captions, if anything was penned on an attached photo. Reception-checks no longer unconditionally sleeps the thread. Was causing havoc with NanoUI. Misc. code refactoring.
146 lines
5.5 KiB
Plaintext
146 lines
5.5 KiB
Plaintext
|
|
#define RIOTS 1
|
|
#define WILD_ANIMAL_ATTACK 2
|
|
#define INDUSTRIAL_ACCIDENT 3
|
|
#define BIOHAZARD_OUTBREAK 4
|
|
#define WARSHIPS_ARRIVE 5
|
|
#define PIRATES 6
|
|
#define CORPORATE_ATTACK 7
|
|
#define ALIEN_RAIDERS 8
|
|
#define AI_LIBERATION 9
|
|
#define MOURNING 10
|
|
#define CULT_CELL_REVEALED 11
|
|
#define SECURITY_BREACH 12
|
|
#define ANIMAL_RIGHTS_RAID 13
|
|
#define FESTIVAL 14
|
|
|
|
#define RESEARCH_BREAKTHROUGH 15
|
|
#define BARGAINS 16
|
|
#define SONG_DEBUT 17
|
|
#define MOVIE_RELEASE 18
|
|
#define BIG_GAME_HUNTERS 19
|
|
#define ELECTION 20
|
|
#define GOSSIP 21
|
|
#define TOURISM 22
|
|
#define CELEBRITY_DEATH 23
|
|
#define RESIGNATION 24
|
|
|
|
#define DEFAULT 1
|
|
|
|
#define ADMINISTRATIVE 2
|
|
#define CLOTHING 3
|
|
#define SECURITY 4
|
|
#define SPECIAL_SECURITY 5
|
|
|
|
#define FOOD 6
|
|
#define ANIMALS 7
|
|
|
|
#define MINERALS 8
|
|
|
|
#define EMERGENCY 9
|
|
#define GAS 10
|
|
#define MAINTENANCE 11
|
|
#define ELECTRICAL 12
|
|
#define ROBOTICS 13
|
|
#define BIOMEDICAL 14
|
|
|
|
#define GEAR_EVA 15
|
|
|
|
//---- The following corporations are friendly with NanoTrasen and loosely enable trade and travel:
|
|
//Corporation NanoTrasen - Generalised / high tech research and phoron exploitation.
|
|
//Corporation Vessel Contracting - Ship and station construction, materials research.
|
|
//Corporation Osiris Atmospherics - Atmospherics machinery construction and chemical research.
|
|
//Corporation Second Red Cross Society - 26th century Red Cross reborn as a dominating economic force in biomedical science (research and materials).
|
|
//Corporation Blue Industries - High tech and high energy research, in particular into the mysteries of bluespace manipulation and power generation.
|
|
//Corporation Kusanagi Robotics - Founded by robotics legend Kaito Kusanagi in the 2070s, they have been on the forefront of mechanical augmentation and robotics development ever since.
|
|
//Corporation Free traders - Not so much a corporation as a loose coalition of spacers, Free Traders are a roving band of smugglers, traders and fringe elements following a rigid (if informal) code of loyalty and honour. Mistrusted by most corporations, they are tolerated because of their uncanny ability to smell out a profit.
|
|
|
|
//---- Descriptions of destination types
|
|
//Space stations can be purpose built for a number of different things, but generally require regular shipments of essential supplies.
|
|
//Corvettes are small, fast warships generally assigned to border patrol or chasing down smugglers.
|
|
//Battleships are large, heavy cruisers designed for slugging it out with other heavies or razing planets.
|
|
//Yachts are fast civilian craft, often used for pleasure or smuggling.
|
|
//Destroyers are medium sized vessels, often used for escorting larger ships but able to go toe-to-toe with them if need be.
|
|
//Frigates are medium sized vessels, often used for escorting larger ships. They will rapidly find themselves outclassed if forced to face heavy warships head on.
|
|
|
|
var/global/current_date_string
|
|
|
|
var/global/datum/money_account/vendor_account
|
|
var/global/datum/money_account/station_account
|
|
var/global/list/datum/money_account/department_accounts = list()
|
|
var/global/num_financial_terminals = 1
|
|
var/global/next_account_number = 0
|
|
var/global/list/all_money_accounts = list()
|
|
var/global/economy_init = 0
|
|
|
|
/proc/setup_economy()
|
|
if(economy_init)
|
|
return 2
|
|
|
|
news_network.CreateFeedChannel("Nyx Daily", "CentComm Minister of Information", 1, 1)
|
|
news_network.CreateFeedChannel("The Gibson Gazette", "Editor Mike Hammers", 1, 1)
|
|
|
|
for(var/loc_type in typesof(/datum/trade_destination) - /datum/trade_destination)
|
|
var/datum/trade_destination/D = new loc_type
|
|
weighted_randomevent_locations[D] = D.viable_random_events.len
|
|
weighted_mundaneevent_locations[D] = D.viable_mundane_events.len
|
|
|
|
create_station_account()
|
|
|
|
for(var/department in station_departments)
|
|
create_department_account(department)
|
|
create_department_account("Vendor")
|
|
vendor_account = department_accounts["Vendor"]
|
|
|
|
current_date_string = "[num2text(rand(1,31))] [pick("January","February","March","April","May","June","July","August","September","October","November","December")], [game_year]"
|
|
|
|
economy_init = 1
|
|
return 1
|
|
|
|
/proc/create_station_account()
|
|
if(!station_account)
|
|
next_account_number = rand(111111, 999999)
|
|
|
|
station_account = new()
|
|
station_account.owner_name = "[station_name()] Station Account"
|
|
station_account.account_number = rand(111111, 999999)
|
|
station_account.remote_access_pin = rand(1111, 111111)
|
|
station_account.money = 75000
|
|
|
|
//create an entry in the account transaction log for when it was created
|
|
var/datum/transaction/T = new()
|
|
T.target_name = station_account.owner_name
|
|
T.purpose = "Account creation"
|
|
T.amount = 75000
|
|
T.date = "2nd April, 2555"
|
|
T.time = "11:24"
|
|
T.source_terminal = "Biesel GalaxyNet Terminal #277"
|
|
|
|
//add the account
|
|
station_account.transaction_log.Add(T)
|
|
all_money_accounts.Add(station_account)
|
|
|
|
/proc/create_department_account(department)
|
|
next_account_number = rand(111111, 999999)
|
|
|
|
var/datum/money_account/department_account = new()
|
|
department_account.owner_name = "[department] Account"
|
|
department_account.account_number = rand(111111, 999999)
|
|
department_account.remote_access_pin = rand(1111, 111111)
|
|
department_account.money = 5000
|
|
|
|
//create an entry in the account transaction log for when it was created
|
|
var/datum/transaction/T = new()
|
|
T.target_name = department_account.owner_name
|
|
T.purpose = "Account creation"
|
|
T.amount = department_account.money
|
|
T.date = "2nd April, 2555"
|
|
T.time = "11:24"
|
|
T.source_terminal = "Biesel GalaxyNet Terminal #277"
|
|
|
|
//add the account
|
|
department_account.transaction_log.Add(T)
|
|
all_money_accounts.Add(department_account)
|
|
|
|
department_accounts[department] = department_account
|