mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-11 01:13:18 +00:00
* Removes more NTNet from Tablets and removes a ton of dead code (#74085) ## About The Pull Request Removes NtNet softwaredownload/communication because they did nothing, so this also removes the feature to shut them off from Wirecarp I removed tablets from being added to networks, Tablets already generate logs for actions they do, which is already enough for the effects it has in-game (just being visible to Wirecarp), once NtNet is deleted from everything else then we can move it to ModPCs and limit logging to only ModPC actions. Fixes shutting off ntnet relays from Wirecarp, now you can properly shut off Ntnet, and the warning that it kicks you out of the program is now true. Gives the Holodeck it's own network root define and fixes Syndicate network showing up on Wirecarp Wirecarp's PDA logs now shows the source of an action ## Why It's Good For The Game Moves ModPCs further from NTNet so we can move towards deleting it entirely Makes Wirecarp more responsible and trustworthy Removes useless stuff that never gets used, simplifying a overthought overcomplicated system. ## Changelog 🆑 balance: Wirecarp now properly shuts off NtNet remotely. balance: Wirecarp now shows the source of a PDA that does an action. fix: Wirecarp can no longer be used to see if Nukies exist through their networks. del: Removes Software downloading and communication Ntnet networks, as they were pretty worthless. /🆑 * Removes more NTNet from Tablets and removes a ton of dead code --------- Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
94 lines
3.3 KiB
Plaintext
94 lines
3.3 KiB
Plaintext
//NTNet stuff, for modular computers
|
|
|
|
//Caps for NTNet logging. Less than 10 would make logging useless anyway, more than 500 may make the log browser too laggy. Defaults to 100 unless user changes it.
|
|
#define MAX_NTNET_LOGS 300
|
|
#define MIN_NTNET_LOGS 10
|
|
|
|
//Program bitflags
|
|
#define PROGRAM_ALL (~0)
|
|
#define PROGRAM_CONSOLE (1<<0)
|
|
#define PROGRAM_LAPTOP (1<<1)
|
|
#define PROGRAM_TABLET (1<<2)
|
|
//Program states
|
|
#define PROGRAM_STATE_KILLED 0
|
|
#define PROGRAM_STATE_BACKGROUND 1
|
|
#define PROGRAM_STATE_ACTIVE 2
|
|
//Program categories
|
|
#define PROGRAM_CATEGORY_CREW "Crew"
|
|
#define PROGRAM_CATEGORY_ENGI "Engineering"
|
|
#define PROGRAM_CATEGORY_SUPL "Supply"
|
|
#define PROGRAM_CATEGORY_SCI "Science"
|
|
#define PROGRAM_CATEGORY_MISC "Other"
|
|
|
|
#define DETOMATIX_RESIST_MINOR 1
|
|
#define DETOMATIX_RESIST_MAJOR 2
|
|
|
|
//NTNet transfer speeds, used when downloading/uploading a file/program.
|
|
#define NTNETSPEED_LOWSIGNAL 0.5 // GQ/s transfer speed when the device is wirelessly connected and on Low signal
|
|
#define NTNETSPEED_HIGHSIGNAL 1 // GQ/s transfer speed when the device is wirelessly connected and on High signal
|
|
#define NTNETSPEED_ETHERNET 2 // GQ/s transfer speed when the device is using wired connection
|
|
|
|
// NTNet connection signals
|
|
///When you're away from the station/mining base and not on a console, you can't access the internet
|
|
#define NTNET_NO_SIGNAL 0
|
|
///Low signal, so away from the station, but still connected
|
|
#define NTNET_LOW_SIGNAL 1
|
|
///On station, good signal
|
|
#define NTNET_GOOD_SIGNAL 2
|
|
///Using a Computer, ethernet-connected.
|
|
#define NTNET_ETHERNET_SIGNAL 3
|
|
|
|
/// The default ringtone of the Messenger app.
|
|
#define MESSENGER_RINGTONE_DEFAULT "beep"
|
|
|
|
/// The maximum length of the ringtone of the Messenger app.
|
|
#define MESSENGER_RINGTONE_MAX_LENGTH 20
|
|
|
|
///Default NtOS PDA theme
|
|
#define PDA_THEME_NTOS "ntos"
|
|
#define PDA_THEME_DARK_MODE "ntos_darkmode"
|
|
#define PDA_THEME_RETRO "ntOS95"
|
|
#define PDA_THEME_SYNTH "ntos_synth"
|
|
#define PDA_THEME_TERMINAL "ntos_terminal"
|
|
|
|
///Emagged/Syndicate NtOS (SyndiOS) PDA theme
|
|
#define PDA_THEME_SYNDICATE "syndicate"
|
|
|
|
//Maintenance-loot themes
|
|
#define PDA_THEME_CAT "ntos_cat"
|
|
#define PDA_THEME_LIGHT_MODE "ntos_lightmode"
|
|
#define PDA_THEME_SPOOKY "ntos_spooky"
|
|
|
|
//Defines for the names of all the themes
|
|
#define PDA_THEME_NTOS_NAME "NtOS"
|
|
#define PDA_THEME_DARK_MODE_NAME "NtOS Dark Mode"
|
|
#define PDA_THEME_RETRO_NAME "Retro"
|
|
#define PDA_THEME_SYNTH_NAME "Synth"
|
|
#define PDA_THEME_TERMINAL_NAME "Terminal"
|
|
#define SYNDICATE_THEME_NAME "Syndicate"
|
|
#define CAT_THEME_NAME "Cat"
|
|
#define LIGHT_THEME_NAME "NtOS Light Mode"
|
|
#define ELDRITCH_THEME_NAME "Eldritch"
|
|
|
|
///List of PDA themes that are accessible to everyone by default.
|
|
GLOBAL_LIST_INIT(default_pda_themes, list(
|
|
PDA_THEME_NTOS_NAME = PDA_THEME_NTOS,
|
|
PDA_THEME_DARK_MODE_NAME = PDA_THEME_DARK_MODE,
|
|
PDA_THEME_RETRO_NAME = PDA_THEME_RETRO,
|
|
PDA_THEME_SYNTH_NAME = PDA_THEME_SYNTH,
|
|
PDA_THEME_TERMINAL_NAME = PDA_THEME_TERMINAL,
|
|
))
|
|
|
|
///List of PDA themes that are accessible to everyone by default.
|
|
GLOBAL_LIST_INIT(pda_name_to_theme, list(
|
|
PDA_THEME_NTOS_NAME = PDA_THEME_NTOS,
|
|
PDA_THEME_DARK_MODE_NAME = PDA_THEME_DARK_MODE,
|
|
PDA_THEME_RETRO_NAME = PDA_THEME_RETRO,
|
|
PDA_THEME_SYNTH_NAME = PDA_THEME_SYNTH,
|
|
PDA_THEME_TERMINAL_NAME = PDA_THEME_TERMINAL,
|
|
SYNDICATE_THEME_NAME = PDA_THEME_SYNDICATE,
|
|
CAT_THEME_NAME = PDA_THEME_CAT,
|
|
LIGHT_THEME_NAME = PDA_THEME_LIGHT_MODE,
|
|
ELDRITCH_THEME_NAME = PDA_THEME_SPOOKY,
|
|
))
|