mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Fixed a case where the player panel wouldn't open
This shouldn't even happen :O
This commit is contained in:
@@ -1888,16 +1888,20 @@
|
|||||||
if (H.wear_id)
|
if (H.wear_id)
|
||||||
var/obj/item/weapon/card/id/id
|
var/obj/item/weapon/card/id/id
|
||||||
|
|
||||||
if(istype(H.wear_id, /obj/item/weapon/card/id))
|
if(istype(H.wear_id, /obj/item/device/pda))
|
||||||
id = H.wear_id // The ID is on the ID slot
|
|
||||||
else if(istype(H.wear_id, /obj/item/device/pda))
|
|
||||||
var/obj/item/device/pda/PDA = H.wear_id
|
var/obj/item/device/pda/PDA = H.wear_id
|
||||||
id = PDA.id // The ID is contained inside the PDA
|
id = PDA.id // The ID is contained inside the PDA
|
||||||
|
|
||||||
if(M.mind.assigned_role == id.assignment) // Polymorph
|
|
||||||
dat += "<td>[M.mind.assigned_role]</td>"
|
|
||||||
else
|
else
|
||||||
dat += "<td>[M.mind.assigned_role] ([id.assignment])"
|
id = H.wear_id
|
||||||
|
|
||||||
|
if(isnull(id.assignment))
|
||||||
|
usr << "<font color=red>ERROR:</font> Inform the coders that an [id.name] was checked for its assignment variable."
|
||||||
|
dat += "<td><font color=red>ERROR</font></td>"
|
||||||
|
else
|
||||||
|
if(M.mind.assigned_role == id.assignment) // Polymorph
|
||||||
|
dat += "<td>[M.mind.assigned_role]</td>"
|
||||||
|
else
|
||||||
|
dat += "<td>[M.mind.assigned_role] ([id.assignment])"
|
||||||
|
|
||||||
else
|
else
|
||||||
dat += "<td>[M.mind.assigned_role] (No ID)</td>"
|
dat += "<td>[M.mind.assigned_role] (No ID)</td>"
|
||||||
|
|||||||
Reference in New Issue
Block a user