mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Merge pull request #4152 from Anewbe/claustrophobia_nullcheck
Adds a nullcheck to the claustrophobia trait
This commit is contained in:
@@ -268,7 +268,8 @@
|
||||
total_lum += T.get_lumcount()
|
||||
total_tiles++
|
||||
|
||||
average_lum = total_lum / total_tiles
|
||||
if(total_tiles)
|
||||
average_lum = total_lum / total_tiles
|
||||
|
||||
if(average_lum > fear_threshold)
|
||||
switch(average_lum)
|
||||
|
||||
Reference in New Issue
Block a user