From f15bf584c41b6a039db029c8e02b52f7c00a87ca Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sun, 8 Apr 2012 23:07:21 +0300 Subject: [PATCH] Antagonists wearing Syndicate ID cards are now marked as such in the player panel. Fixes #800 --- code/modules/admin/player_panel.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm index a2a04b36ee3..f65634c70ba 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/player_panel.dm @@ -65,8 +65,11 @@ dat += "[M.mind.assigned_role] (No ID)" else if(isnull(id.assignment)) // Preventing runtime errors blocking the player panel - usr << "ERROR: Inform the coders that an [id.name] was checked for its assignment variable, and it was null." - dat += "ERROR" + if(istype(id, /obj/item/weapon/card/id/syndicate)) + dat += "Antagonist" + else + usr << "ERROR: Inform the coders that an [id.name] was checked for its assignment variable, and it was null." + dat += "ERROR" else if(M.mind.assigned_role == id.assignment) // Polymorph