[MIRROR] Converts a shitload of istypes to their more concise macros [MDB IGNORE] (#15702)

Converts a shitload of istypes to their more concise macros

Co-authored-by: Seth Scherer <supernovaa41@gmx.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
This commit is contained in:
SkyratBot
2022-08-27 22:23:44 +02:00
committed by GitHub
parent d9e2f62a24
commit a8c10d1659
241 changed files with 363 additions and 363 deletions
@@ -141,7 +141,7 @@
return card_slot.try_eject(user)
else
var/obj/item/I = user.get_active_held_item()
if(istype(I, /obj/item/card/id))
if(isidcard(I))
return card_slot.try_insert(I, user)
// Eject the ID being modified.
if("PRG_ejectmodid")
@@ -152,7 +152,7 @@
return card_slot2.try_eject(user)
else
var/obj/item/I = user.get_active_held_item()
if(istype(I, /obj/item/card/id))
if(isidcard(I))
return card_slot2.try_insert(I, user)
return TRUE
// Used to fire someone. Wipes all access from their card and modifies their assignment.
@@ -95,7 +95,7 @@
photo_path = deter_path
/datum/computer_file/program/messenger/ui_state(mob/user)
if(istype(user, /mob/living/silicon))
if(issilicon(user))
return GLOB.reverse_contained_state
return GLOB.default_state