mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Fix hallucination going negative and lasting forever (#56422)
If `var/hallucination` was ever set to below 0, it would cause the hallucination effects to never clear. Changes how hallucination is decremented in carbons to avoid this from happening. Co-authored-by: Ranged <nickvanderkroon@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
if(!hallucination)
|
||||
return
|
||||
|
||||
hallucination--
|
||||
hallucination = max(hallucination - 1, 0)
|
||||
|
||||
if(world.time < next_hallucination)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user