Files
KashargulandGitHub 5926589c16 removes var/ inside all procs (#19450)
* removes var/ inside all procs

* .

* ugh
2026-05-05 10:55:17 +02:00

26 lines
1.2 KiB
Plaintext

#define CE_WITHDRAWL "withdrawl" // Withdrawl symptoms
#define ADDICT_NORMAL 1
#define ADDICT_SLOW 2
#define ADDICT_FAST 3
#define ADDICT_POISON 4
#define ADDICT_ALL 5
GLOBAL_LIST_INIT(reagent_addictive_standard,list(REAGENT_ID_AMBROSIAEXTRACT,REAGENT_ID_TALUMQUEM,REAGENT_ID_METHYLPHENIDATE))
GLOBAL_LIST_INIT(reagent_addictive_slow,list(REAGENT_ID_TRAMADOL,REAGENT_ID_OXYCODONE,REAGENT_ID_TRICORDRAZINE,REAGENT_ID_ASUSTENANCE,REAGENT_ID_ETHANOL,REAGENT_ID_NICOTINE,REAGENT_ID_COFFEE))
GLOBAL_LIST_INIT(reagent_addictive_fast,list(REAGENT_ID_HYPERZINE,REAGENT_ID_BLISS))
GLOBAL_LIST_INIT(reagent_addictive_poison,list())
/proc/get_addictive_reagents(addict_type)
RETURN_TYPE(/list)
switch(addict_type)
if(ADDICT_NORMAL)
return GLOB.reagent_addictive_standard // Most reagents go here
if(ADDICT_SLOW)
return GLOB.reagent_addictive_slow // Booze, Cigs
if(ADDICT_FAST)
return GLOB.reagent_addictive_fast // Bliss, hyperzine, hardcore drugs
if(ADDICT_POISON)
return GLOB.reagent_addictive_poison // Poisons that use handle_addiction() for unique longterm poisoning
return GLOB.reagent_addictive_standard + GLOB.reagent_addictive_fast + GLOB.reagent_addictive_slow + GLOB.reagent_addictive_poison