Files
VOREStation/code/__defines/chemistry.dm
T
Cameron Lennox 6bac95ee3b Movement adjustments. (#18885)
* Movement adjustments

Makes unusual running a TRAIT()
Fixes force_max_speed and haste modifier not applying HUMAN_LOWEST_SLOWDOWN

Makes species slowdown only be calculated if NOT in space (This will cover most cases of 'the species is heavy and therefore slower' while some edge cases such as diona's 'slower because of physical movement disability' are able to move faster)

Makes 'health deficiency' no longer hardset numbers but rather a percentile. (Slowdown still begins when you have taken 40% or more damage).
This means that characters that have lower max HP will require less injury to 'feel it', while characters with higher max HP will require more injury to 'feel it'.
Species trauma mod (pain sensitivity) still applies here and someone with 2x trauma mod will begin to feel the effects of their injuries at 20% instead of 40% and slowdown will be 2x more severe (slowdown of 4 while at 50% injury instead of at 100%)

Caps injury slowdown for the health percent at 4 (occurs when at 0% health, or 100% injured)

Incorporated halloss damage into the health percent calculations instead of it's own hardset numbers. This means trauma_mod now affects halloss as well.

Shock stage now operates linearly instead of applying a massive slowdown once you hit a magic number.
Once hitting a shock_stage of 10, your 'adrenaline' starts to wear off and you begin to suffer increasing slowdown. This means the longer you're in shock, the slower you will become, from a min of 0.5 (just entered shock) to a max of 3.0 (been in shock for 2 minutes OR suffered a major, traumatic injury such as the loss of a limb)

Stops doubling of limbloss slowdown. Stance_damage already took care of slowdown from limbloss, but it was duplicated, meaning lost limbs were causing 2x the slowdown they should have.

REMOVES slowdown penalty from aiming. Aim mode is -already- detrimental (it will make you always miss projectile weapons on a moving target) and applying a further debuff to the user (it applied a slowdown of FIVE, equivalent to 50 pre-change halloss) made very little sense.

Makes mRun mutation ('no slowdown mutation') actually remove slowdown after the slowdown calculation is all performed.

Cleans up the unusual running trait some and gets rid of a lot of unneeded checks it was performing.

* Update human_organs.dm

* Update human_movement.dm

* Make painkiller stacking less effective

* Makes oxycodone actually useful

* Update chemistry.dm

* Update human_movement.dm

* Update human_movement.dm

* Update vorestation.dme

* bad else if here

* Some adjustments here

* Update human_movement.dm

* Update human_movement.dm

* Another narcotic buff

* Update human_movement.dm

* yeh

* This should be a divisior, not a multiplier

* Update human_movement.dm
2026-02-07 00:35:06 +01:00

63 lines
2.1 KiB
Plaintext

#define DEFAULT_HUNGER_FACTOR 0.05 // Factor of how fast mob nutrition decreases
#define REM 0.2 // Means 'Reagent Effect Multiplier'. This is how many units of reagent are consumed per tick
#define CHEM_TOUCH 1
#define CHEM_INGEST 2
#define CHEM_BLOOD 3
#define CHEM_VORE 4 // vore belly interactions
#define MINIMUM_CHEMICAL_VOLUME 0.01
#define SOLID 1
#define LIQUID 2
#define GAS 3
#define REAGENTS_OVERDOSE 30
#define CHEM_SYNTH_ENERGY 500 // How much energy does it take to synthesize 1 unit of chemical, in Joules.
// Some on_mob_life() procs check for alien races.
#define IS_DIONA 1
#define IS_VOX 2
#define IS_SKRELL 3
#define IS_UNATHI 4
#define IS_TAJARA 5
#define IS_XENOS 6
#define IS_TESHARI 7
#define IS_SLIME 8
#define IS_ZADDAT 9
#define IS_ZORREN 10
#define CE_STABLE "stable" // Inaprovaline
#define CE_ANTIBIOTIC "antibiotic" // Antibiotics
#define CE_BLOODRESTORE "bloodrestore" // Iron/nutriment
#define CE_PAINKILLER "painkiller"
#define CE_ALCOHOL "alcohol" // Liver filtering
#define CE_ALCOHOL_TOXIC "alcotoxic" // Liver damage
#define CE_SPEEDBOOST "gofast" // Hyperzine
#define CE_SLOWDOWN "goslow" // Slowdown
#define CE_NARCOTICS "narcotics" // Narcotics. Ignore pain slowdown entirely.
#define CE_ANTACID "nopuke" // Don't puke.
#define CE_ALLERGEN "allergyreaction" // Self explanatory
#define CE_DARKSIGHT "darksight" // Gives perfect vision in dark
#define REAGENTS_PER_SHEET 20
#define REAGENTS_PER_ROD 10
#define REAGENTS_PER_ORE 20
#define REAGENTS_PER_LOG 40
#define REAGENTS_PER_HULL 40
// Attached to CE_ANTIBIOTIC
#define ANTIBIO_NORM 1
#define ANTIBIO_OD 2
#define ANTIBIO_SUPER 3
#define MAX_PILL_SPRITE 24 //max icon state of the pill sprites
#define MAX_BOTTLE_SPRITE 4 //max icon state of the pill sprites
#define MAX_MULTI_AMOUNT 20 // Max number of pills/patches that can be made at once
#define MAX_UNITS_PER_PILL 60 // Max amount of units in a pill
#define MAX_UNITS_PER_PATCH 60 // Max amount of units in a patch
#define MAX_UNITS_PER_BOTTLE 60 // Max amount of units in a bottle (it's volume)
#define MAX_CUSTOM_NAME_LEN 64 // Max length of a custom pill/condiment/whatever