mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
This UI is going to be more integrated with BYOND host objects. It's update principal is very different from nanoui's. It is based around state that is being synchronized with server and client (browser). Such synchronization has it's problems, like it can't handle rapid changes, what could cause client and server to become out of sync and client state to be discard.
116 lines
4.2 KiB
Plaintext
116 lines
4.2 KiB
Plaintext
#define KILOWATTS *1000
|
|
#define MEGAWATTS *1000000
|
|
#define GIGAWATTS *1000000000
|
|
|
|
#define CELLRATE 0.002 // Multiplier for watts per tick <> cell storage (e.g., 0.02 means if there is a load of 1000 watts, 20 units will be taken from a cell per second)
|
|
// It's a conversion constant. power_used*CELLRATE = charge_provided, or charge_used/CELLRATE = power_provided
|
|
|
|
// Doors!
|
|
#define DOOR_CRUSH_DAMAGE 20
|
|
#define ALIEN_SELECT_AFK_BUFFER 1 // How many minutes that a person can be AFK before not being allowed to be an alien.
|
|
|
|
// Channel numbers for power.
|
|
#define EQUIP 1
|
|
#define LIGHT 2
|
|
#define ENVIRON 3
|
|
#define TOTAL 4 // For total power used only.
|
|
|
|
// Bitflags for machine stat variable.
|
|
#define BROKEN 0x1
|
|
#define NOPOWER 0x2
|
|
#define POWEROFF 0x4 // TBD.
|
|
#define MAINT 0x8 // Under maintenance.
|
|
#define EMPED 0x10 // Temporary broken by EMP pulse.
|
|
|
|
// Used by firelocks
|
|
#define FIREDOOR_OPEN 1
|
|
#define FIREDOOR_CLOSED 2
|
|
|
|
#define AI_CAMERA_LUMINOSITY 6
|
|
|
|
// Camera networks
|
|
#define NETWORK_CRESCENT "Crescent"
|
|
#define NETWORK_CIVILIAN_EAST "Civilian East"
|
|
#define NETWORK_CIVILIAN_WEST "Civilian West"
|
|
#define NETWORK_CIVILIAN_MAIN "Civilian Main"
|
|
#define NETWORK_CIVILIAN_SURFACE "Civilian Surface"
|
|
#define NETWORK_COMMAND "Command"
|
|
#define NETWORK_ENGINE "Engine"
|
|
#define NETWORK_ENGINEERING "Engineering"
|
|
#define NETWORK_ENGINEERING_OUTPOST "Engineering Outpost"
|
|
#define NETWORK_ERT "ZeEmergencyResponseTeam"
|
|
#define NETWORK_STATION "Station"
|
|
#define NETWORK_MEDICAL "Medical"
|
|
#define NETWORK_MERCENARY "MercurialNet"
|
|
#define NETWORK_MINE "MINE"
|
|
#define NETWORK_RESEARCH "Research"
|
|
#define NETWORK_RESEARCH_OUTPOST "Research Outpost"
|
|
#define NETWORK_ROBOTS "Robots"
|
|
#define NETWORK_PRISON "Prison"
|
|
#define NETWORK_SECURITY "Security"
|
|
#define NETWORK_TELECOM "Tcomsat"
|
|
#define NETWORK_THUNDER "Thunderdome"
|
|
#define NETWORK_ALARM_ATMOS "Atmosphere Alarms"
|
|
#define NETWORK_ALARM_POWER "Power Alarms"
|
|
#define NETWORK_ALARM_FIRE "Fire Alarms"
|
|
#define NETWORK_SUPPLY "Supply"
|
|
#define NETWORK_SERVICE "Service"
|
|
#define NETWORK_EXPEDITION "Expedition"
|
|
#define NETWORK_CALYPSO "Calypso"
|
|
#define NETWORK_POD "General Utility Pod"
|
|
|
|
// Those networks can only be accessed by pre-existing terminals. AIs and new terminals can't use them.
|
|
var/list/restricted_camera_networks = list(NETWORK_ERT,NETWORK_MERCENARY,"Secret")
|
|
|
|
|
|
//singularity defines
|
|
#define STAGE_ONE 1
|
|
#define STAGE_TWO 3
|
|
#define STAGE_THREE 5
|
|
#define STAGE_FOUR 7
|
|
#define STAGE_FIVE 9
|
|
#define STAGE_SUPER 11
|
|
|
|
// Interaction flags
|
|
#define STATUS_INTERACTIVE 2 // GREEN Visability
|
|
#define STATUS_UPDATE 1 // ORANGE Visability
|
|
#define STATUS_DISABLED 0 // RED Visability
|
|
#define STATUS_CLOSE -1 // Close the interface
|
|
|
|
/*
|
|
* Atmospherics Machinery.
|
|
*/
|
|
#define MAX_SIPHON_FLOWRATE 2500 // L/s. This can be used to balance how fast a room is siphoned. Anything higher than CELL_VOLUME has no effect.
|
|
#define MAX_SCRUBBER_FLOWRATE 200 // L/s. Max flow rate when scrubbing from a turf.
|
|
|
|
// These balance how easy or hard it is to create huge pressure gradients with pumps and filters.
|
|
// Lower values means it takes longer to create large pressures differences.
|
|
// Has no effect on pumping gasses from high pressure to low, only from low to high.
|
|
#define ATMOS_PUMP_EFFICIENCY 2.5
|
|
#define ATMOS_FILTER_EFFICIENCY 2.5
|
|
|
|
// Will not bother pumping or filtering if the gas source as fewer than this amount of moles, to help with performance.
|
|
#define MINIMUM_MOLES_TO_PUMP 0.01
|
|
#define MINIMUM_MOLES_TO_FILTER 0.04
|
|
|
|
// The flow rate/effectiveness of various atmos devices is limited by their internal volume,
|
|
// so for many atmos devices these will control maximum flow rates in L/s.
|
|
#define ATMOS_DEFAULT_VOLUME_PUMP 200 // Liters.
|
|
#define ATMOS_DEFAULT_VOLUME_FILTER 200 // L.
|
|
#define ATMOS_DEFAULT_VOLUME_MIXER 200 // L.
|
|
#define ATMOS_DEFAULT_VOLUME_PIPE 70 // L.
|
|
|
|
|
|
// Misc process flags.
|
|
#define M_PROCESSES 0x1
|
|
#define M_USES_POWER 0x2
|
|
|
|
// If this is returned from a machine's process() proc, the machine will stop processing but
|
|
// will continue to have power calculations done.
|
|
#define M_NO_PROCESS 27
|
|
|
|
// This controls how much power the AME generates per unit of fuel.
|
|
// Assuming 100% efficency, use this equation to figure out power output.
|
|
// power_generated = (fuel**2) * AM_POWER_FACTOR
|
|
#define AM_POWER_FACTOR 50000
|