From 1130462867bd46b612677942041bc8f6f74546d9 Mon Sep 17 00:00:00 2001 From: Atermonera Date: Sat, 25 Apr 2020 12:56:07 -0700 Subject: [PATCH 1/2] Merge pull request #7032 from atlantiscze/2020_04_22_ShellExclude Excludes AI shells from event probability calculations --- code/modules/metric/department.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/metric/department.dm b/code/modules/metric/department.dm index 89a0f78ed96..0705d7ae0cd 100644 --- a/code/modules/metric/department.dm +++ b/code/modules/metric/department.dm @@ -70,6 +70,11 @@ if(!department) return for(var/mob/M in player_list) + // Do not count AI's shells + if(isrobot(M)) + var/mob/living/silicon/robot/R = M + if(R.shell) + continue if(department != DEPARTMENT_EVERYONE && guess_department(M) != department) // Ignore people outside the department we're counting. continue if(assess_player_activity(M) < cutoff)