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