mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
- Healing on all food items have been adjusted. This means food heals for more generally (also because the old code always healed 1 damage regardless of what the food was designed to do). The strength of secondary effects (such as heat from chilis or the extra healing from donuts) has generally changed (donk pockets currently only heal their basic amount, I think). - Poisonous shrooms are still potentially lethal but you'll have time to respond to their effect. - Redundancies removed from all over the place. - New reagents: Nutriment, Ketchup, Soy Sauce, Salt, Pepper, Capsaicin Oil, Frost Oil, Amatoxin, Psilocybin, Sprinkles - Preparation for condiments - Fixed Gulp_Size related stuff. - New Food Item: Chaos Donut: 1 Hot Sauce + 1 Cold Sauce + 1 Flour + 1 Egg. Has a variable effect. NOT DEADLY (usually). - New Drug: Ethylredoxrazine: Carbon + Oxygen + Anti-Toxin. Binds strongly with Ethanol *HINT* - Changelog updated. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@423 316c924e-a436-60f5-8080-3fe189b3f50e
142 lines
5.5 KiB
Plaintext
142 lines
5.5 KiB
Plaintext
#define R_IDEAL_GAS_EQUATION 8.31 //kPa*L/(K*mol)
|
|
#define ONE_ATMOSPHERE 101.325 //kPa
|
|
|
|
#define CELL_VOLUME 2500 //liters in a cell
|
|
#define MOLES_CELLSTANDARD (ONE_ATMOSPHERE*CELL_VOLUME/(T20C*R_IDEAL_GAS_EQUATION)) //moles in a 2.5 m^3 cell at 101.325 Pa and 20 degC
|
|
|
|
#define O2STANDARD 0.21
|
|
#define N2STANDARD 0.79
|
|
|
|
#define MOLES_O2STANDARD MOLES_CELLSTANDARD*O2STANDARD // O2 standard value (21%)
|
|
#define MOLES_N2STANDARD MOLES_CELLSTANDARD*N2STANDARD // N2 standard value (79%)
|
|
|
|
#define MOLES_PLASMA_VISIBLE 0.5 //Moles in a standard cell after which plasma is visible
|
|
|
|
#define BREATH_VOLUME 0.5 //liters in a normal breath
|
|
#define BREATH_PERCENTAGE BREATH_VOLUME/CELL_VOLUME
|
|
//Amount of air to take a from a tile
|
|
#define HUMAN_NEEDED_OXYGEN MOLES_CELLSTANDARD*BREATH_PERCENTAGE*0.16
|
|
//Amount of air needed before pass out/suffocation commences
|
|
|
|
|
|
#define MINIMUM_AIR_RATIO_TO_SUSPEND 0.05
|
|
//Minimum ratio of air that must move to/from a tile to suspend group processing
|
|
#define MINIMUM_AIR_TO_SUSPEND MOLES_CELLSTANDARD*MINIMUM_AIR_RATIO_TO_SUSPEND
|
|
//Minimum amount of air that has to move before a group processing can be suspended
|
|
|
|
#define MINIMUM_MOLES_DELTA_TO_MOVE MOLES_CELLSTANDARD*MINIMUM_AIR_RATIO_TO_SUSPEND //Either this must be active
|
|
#define MINIMUM_TEMPERATURE_TO_MOVE T20C+100 //or this (or both, obviously)
|
|
|
|
#define MINIMUM_TEMPERATURE_RATIO_TO_SUSPEND 0.012
|
|
#define MINIMUM_TEMPERATURE_DELTA_TO_SUSPEND 4
|
|
//Minimum temperature difference before group processing is suspended
|
|
#define MINIMUM_TEMPERATURE_DELTA_TO_CONSIDER 0.5
|
|
//Minimum temperature difference before the gas temperatures are just set to be equal
|
|
|
|
#define MINIMUM_TEMPERATURE_FOR_SUPERCONDUCTION T20C+10
|
|
#define MINIMUM_TEMPERATURE_START_SUPERCONDUCTION T20C+200
|
|
|
|
#define FLOOR_HEAT_TRANSFER_COEFFICIENT 0.08
|
|
#define WALL_HEAT_TRANSFER_COEFFICIENT 0.03
|
|
#define SPACE_HEAT_TRANSFER_COEFFICIENT 0.20 //a hack to partly simulate radiative heat
|
|
#define OPEN_HEAT_TRANSFER_COEFFICIENT 0.40
|
|
#define WINDOW_HEAT_TRANSFER_COEFFICIENT 0.10 //a hack for now
|
|
//Must be between 0 and 1. Values closer to 1 equalize temperature faster
|
|
//Should not exceed 0.4 else strange heat flow occur
|
|
|
|
#define FIRE_MINIMUM_TEMPERATURE_TO_SPREAD 150+T0C
|
|
#define FIRE_MINIMUM_TEMPERATURE_TO_EXIST 100+T0C
|
|
#define FIRE_SPREAD_RADIOSITY_SCALE 0.85
|
|
#define FIRE_CARBON_ENERGY_RELEASED 500000 //Amount of heat released per mole of burnt carbon into the tile
|
|
#define FIRE_PLASMA_ENERGY_RELEASED 3000000 //Amount of heat released per mole of burnt plasma into the tile
|
|
#define FIRE_GROWTH_RATE 25000 //For small fires
|
|
|
|
//Plasma fire properties
|
|
#define PLASMA_MINIMUM_BURN_TEMPERATURE 100+T0C
|
|
#define PLASMA_UPPER_TEMPERATURE 1370+T0C
|
|
#define PLASMA_MINIMUM_OXYGEN_NEEDED 2
|
|
#define PLASMA_MINIMUM_OXYGEN_PLASMA_RATIO 30
|
|
#define PLASMA_OXYGEN_FULLBURN 10
|
|
|
|
#define T0C 273.15 // 0degC
|
|
#define T20C 293.15 // 20degC
|
|
#define TCMB 2.7 // -270.3degC
|
|
|
|
#define TANK_LEAK_PRESSURE (30.*ONE_ATMOSPHERE) // Tank starts leaking
|
|
#define TANK_RUPTURE_PRESSURE (40.*ONE_ATMOSPHERE) // Tank spills all contents into atmosphere
|
|
|
|
#define TANK_FRAGMENT_PRESSURE (50.*ONE_ATMOSPHERE) // Boom 3x3 base explosion
|
|
#define TANK_FRAGMENT_SCALE (10.*ONE_ATMOSPHERE) // +1 for each SCALE kPa aboe threshold
|
|
// was 2 atm
|
|
#define MAX_EXPLOSION_RANGE 14 // Defaults to 12 (was 8) -- TLE
|
|
|
|
|
|
#define NORMPIPERATE 30 //pipe-insulation rate divisor
|
|
#define HEATPIPERATE 8 //heat-exch pipe insulation
|
|
|
|
#define FLOWFRAC 0.99 // fraction of gas transfered per process
|
|
|
|
|
|
//FLAGS BITMASK
|
|
#define ONBACK 1 // can be put in back slot
|
|
#define TABLEPASS 2 // can pass by a table or rack
|
|
#define HALFMASK 4 // mask only gets 1/2 of air supply from internals
|
|
|
|
#define HEADSPACE 4 // head wear protects against space
|
|
|
|
#define MASKINTERNALS 8 // mask allows internals
|
|
#define SUITSPACE 8 // suit protects against space
|
|
|
|
#define USEDELAY 16 // 1 second extra delay on use
|
|
#define NOSHIELD 32 // weapon not affected by shield
|
|
#define CONDUCT 64 // conducts electricity (metal etc.)
|
|
#define ONBELT 128 // can be put in belt slot
|
|
#define FPRINT 256 // takes a fingerprint
|
|
#define ON_BORDER 512 // item has priority to check when entering or leaving
|
|
|
|
#define GLASSESCOVERSEYES 1024
|
|
#define MASKCOVERSEYES 1024 // get rid of some of the other retardation in these flags
|
|
#define HEADCOVERSEYES 1024 // feel free to realloc these numbers for other purposes
|
|
#define MASKCOVERSMOUTH 2048 // on other items, these are just for mask/head
|
|
#define HEADCOVERSMOUTH 2048
|
|
|
|
#define NOSLIP 1024 //prevents from slipping on wet floors, in space etc
|
|
|
|
//#define EXTRACT_CONTAINER 4095 //Container may have reagents removed from it.
|
|
//#define INSERT_CONTAINER 4096 //Container may have reagents added to it.
|
|
#define OPENCONTAINER 4096 // is an open container for chemistry purposes
|
|
|
|
#define ONESIZEFITSALL 8192 // can be worn by fatties (or children? ugh)
|
|
|
|
|
|
// bitflags for clothing parts
|
|
#define HEAD 1
|
|
#define UPPER_TORSO 2
|
|
#define LOWER_TORSO 4
|
|
#define LEGS 8
|
|
#define FEET 16
|
|
#define ARMS 32
|
|
#define HANDS 64
|
|
|
|
// 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 1
|
|
#define NOPOWER 2
|
|
#define POWEROFF 4 // tbd
|
|
#define MAINT 8 // under maintaince
|
|
|
|
#define ENGINE_EJECT_Z 3
|
|
|
|
var/const
|
|
GAS_O2 = 1 << 0
|
|
GAS_N2 = 1 << 1
|
|
GAS_PL = 1 << 2
|
|
GAS_CO2 = 1 << 3
|
|
GAS_N2O = 1 << 4
|