mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
Merge pull request #7439 from VOREStation/upstream-merge-7032
[MIRROR] Excludes AI shells from event probability calculations
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user