[MIRROR] some istype to macros (#9802)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-05 15:01:49 -07:00
committed by GitHub
parent 73486c399b
commit ed79946ade
409 changed files with 750 additions and 751 deletions

View File

@@ -385,7 +385,7 @@
to_chat(ui.user, span_notice("[icon2html(src, ui.user.client)] Sent message to [istype(comm, /obj/item/communicator) ? comm.owner : comm.name], <b>\"[text]\"</b> (<a href='byond://?src=\ref[src];action=Reply;target=\ref[exonet.get_atom_from_address(comm.exonet.address)]'>Reply</a>)"))
for(var/mob/M in player_list)
if(M.stat == DEAD && M.client?.prefs?.read_preference(/datum/preference/toggle/ghost_ears))
if(istype(M, /mob/new_player) || M.forbid_seeing_deadchat)
if(isnewplayer(M) || M.forbid_seeing_deadchat)
continue
if(exonet.get_atom_from_address(their_address) == M)
continue

View File

@@ -214,7 +214,7 @@ var/global/list/obj/item/communicator/all_communicators = list()
// Description: Sets up the exonet datum, gives the device an address, and then gets a node reference. Afterwards, populates the device
// list.
/obj/item/communicator/proc/initialize_exonet(mob/user)
if(!user || !istype(user, /mob/living))
if(!user || !isliving(user))
return
if(!exonet)
exonet = new(src)

View File

@@ -162,7 +162,7 @@
log_pda("(DCOMM: [src]) sent \"[text_message]\" to [chosen_communicator]", src)
for(var/mob/M in player_list)
if(M.stat == DEAD && M.client?.prefs?.read_preference(/datum/preference/toggle/ghost_ears))
if(istype(M, /mob/new_player) || M.forbid_seeing_deadchat)
if(isnewplayer(M) || M.forbid_seeing_deadchat)
continue
if(M == src)
continue

View File

@@ -17,7 +17,7 @@
. = ..()
if(active)
. += "It's a holographic warrant for '[active.fields["namewarrant"]]'."
if(in_range(user, src) || istype(user, /mob/observer/dead))
if(in_range(user, src) || isobserver(user))
show_content(user) //Opens a browse window, not chatbox related
else
. += span_notice("You have to go closer if you want to read it.")

View File

@@ -300,7 +300,7 @@
/obj/item/personal_shield_generator/process()
if(!bcell) //They removed the battery midway.
if(istype(loc, /mob/living/carbon/human)) //We on someone? Tell them it turned off.
if(ishuman(loc)) //We on someone? Tell them it turned off.
var/mob/living/carbon/human/user = loc
to_chat(user, span_warning("The shield deactivates! An error message pops up on screen: 'Cell missing. Cell replacement required.'"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection)
@@ -312,7 +312,7 @@
if(shield_active)
if(bcell.rigged) //They turned it back on after it was rigged to go boom.
if(istype(loc, /mob/living/carbon/human)) //Deactivate the shield, first. You're not getting reduced damage...
if(ishuman(loc)) //Deactivate the shield, first. You're not getting reduced damage...
var/mob/living/carbon/human/user = loc
to_chat(user, span_warning("The shield deactivates, an error message popping up on screen: 'Cell Reactor Critically damaged. Cell replacement required.'"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection)
@@ -333,7 +333,7 @@
if(bcell.charge < generator_hit_cost || bcell.charge < generator_active_cost) //Out of charge...
shield_active = 0
if(istype(loc, /mob/living/carbon/human)) //We on someone? Tell them it turned off.
if(ishuman(loc)) //We on someone? Tell them it turned off.
var/mob/living/carbon/human/user = loc
to_chat(user, span_warning("The shield deactivates, an error message popping up on screen: 'Cell out of charge.'"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection)

View File

@@ -47,7 +47,7 @@
//..()
if(usr.stat || usr.restrained())
return
if(((istype(usr, /mob/living/carbon/human) && ((!( ticker ) || (ticker && ticker.mode != "monkey")) && usr.contents.Find(src))) || (usr.contents.Find(master) || (in_range(src, usr) && istype(loc, /turf)))))
if(((ishuman(usr) && ((!( ticker ) || (ticker && ticker.mode != "monkey")) && usr.contents.Find(src))) || (usr.contents.Find(master) || (in_range(src, usr) && istype(loc, /turf)))))
usr.set_machine(src)
if(href_list["freq"])
var/new_frequency = sanitize_frequency(frequency + text2num(href_list["freq"]))
@@ -108,7 +108,7 @@
/obj/item/radio/electropack/attack_self(mob/user as mob, flag1)
if(!istype(user, /mob/living/carbon/human))
if(!ishuman(user))
return
user.set_machine(src)
var/dat = {"<TT>

View File

@@ -216,7 +216,7 @@
/obj/item/radio/headset/mob_headset/afterattack(var/atom/movable/target, mob/living/user, proximity)
if(!proximity)
return
if(istype(target,/mob/living/simple_mob))
if(isanimal(target))
var/mob/living/simple_mob/M = target
if(!M.mob_radio)
user.drop_item()

View File

@@ -418,7 +418,7 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
jobname = JOB_CYBORG
// --- Personal AI (pAI) ---
else if (istype(M, /mob/living/silicon/pai))
else if (ispAI(M))
jobname = "Personal AI"
// --- Unidentifiable mob ---

View File

@@ -101,7 +101,7 @@
dat += span_boldnotice("Subject died [DisplayTimeText(tdelta)] ago - resuscitation may be possible!")
dat += "<br>"
//VOREStation edit/addition ends
if(istype(M, /mob/living/carbon/human) && mode == 1)
if(ishuman(M) && mode == 1)
var/mob/living/carbon/human/H = M
var/list/damaged = H.get_damaged_organs(1,1)
dat += span_notice("Localized Damage, Brute/Burn:")

View File

@@ -301,7 +301,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
if(!istype(target))
return
if(istype(target, /mob/living/carbon/human))
if(ishuman(target))
var/mob/living/carbon/human/H = target
if(H.resleeve_lock && stored_mind.loaded_from_ckey != H.resleeve_lock)
to_chat(usr,span_warning("\The [H] is protected from impersonation!"))
@@ -348,7 +348,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
spark_system.set_up(5, 0, src.loc)
spark_system.start()
playsound(src, "sparks", 50, 1)
if(istype(src.loc,/mob/living))
if(isliving(src.loc))
var/mob/living/L = src.loc
L.unEquip(src)
src.forceMove(get_turf(src))

View File

@@ -255,7 +255,7 @@ This device records all warnings given and teleport events for admin review in c
if(!teleport_checks(target,user))
return //The checks proc can send them a message if it wants.
if(istype(target, /mob/living))
if(isliving(target))
var/mob/living/L = target
if(!L.stat)
if(L != user)
@@ -270,7 +270,7 @@ This device records all warnings given and teleport events for admin review in c
power_source.use(charge_cost)
//Unbuckle taur riders
if(istype(target, /mob/living))
if(isliving(target))
var/mob/living/L = target
if(LAZYLEN(L.buckled_mobs))
var/datum/riding/R = L.riding_datum