More time between hallucination effects (#14274)

This commit is contained in:
Doxxmedearly
2022-06-13 23:25:17 +02:00
committed by GitHub
parent c91d1ee6aa
commit c031e704c9
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -33,7 +33,7 @@
if(!client || stat || world.time < next_hallucination)
return
var/hall_delay = rand(180,250) //Time between hallucinations, modified below.
var/hall_delay = rand(30, 40) SECONDS //Time between hallucinations, modified below.
//Modifying time between effects based on strength and chemicals
switch(hallucination) //26-149 are intentionally left off, as they do not modify the delay. This is a pretty common range for hallucinations.
@@ -49,7 +49,7 @@
else
hall_delay *= min(1.25, abs(chem_effects[CE_HALLUCINATE])) //if CE_HALLUCINATE is -1, 25% more time between
if(chem_effects[CE_HALLUCINATE] > 0)
hall_delay /= max(1.25, chem_effects[CE_HALLUCINATE]) //if CE_HALLUCINATE is 1, 25% less time between
hall_delay /= max(1.15, chem_effects[CE_HALLUCINATE]) //if CE_HALLUCINATE is 1, 15% less time between
next_hallucination = world.time + hall_delay
var/datum/hallucination/H = SShallucinations.get_hallucination(src)