linters do your magic (#19263)

This commit is contained in:
Vi3trice
2022-10-10 20:58:41 +02:00
committed by GitHub
parent 9e90c81282
commit 20c437f7d2
101 changed files with 153 additions and 153 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
W.loc = src
to_chat(user, "<span class='notice'>You put [W] into [src].</span>")
update_icon(UPDATE_OVERLAYS)
else if(istype(W, /obj/item/pen))
else if(is_pen(W))
rename_interactive(user, W)
else
return ..()
+2 -2
View File
@@ -96,7 +96,7 @@
return TRUE
/obj/item/picture_frame/afterattack(atom/target, mob/user, proximity_flag)
if(proximity_flag && istype(target, /turf/simulated/wall))
if(proximity_flag && iswallturf(target))
place(target, user)
else
..()
@@ -146,7 +146,7 @@
/obj/item/picture_frame/attack_self(mob/user)
if(displayed)
if(istype(displayed, /obj/item))
if(isitem(displayed))
var/obj/item/I = displayed
I.attack_self(user)
else
+4 -4
View File
@@ -317,7 +317,7 @@
var/t = input("Enter what you want to write:", "Write", null, null) as message
var/obj/item/i = usr.get_active_hand() // Check to see if he still got that darn pen, also check if he's using a crayon or pen.
add_hiddenprint(usr) // No more forging nasty documents as someone else, you jerks
if(!istype(i, /obj/item/pen))
if(!is_pen(i))
if(!istype(i, /obj/item/toy/crayon))
return
@@ -411,7 +411,7 @@
B.amount++
B.update_icon()
else if(istype(P, /obj/item/pen) || istype(P, /obj/item/toy/crayon))
else if(is_pen(P) || istype(P, /obj/item/toy/crayon))
if(user.is_literate())
var/obj/item/pen/multi/robopen/RP = P
if(istype(P, /obj/item/pen/multi/robopen) && RP.mode == 2)
@@ -677,7 +677,7 @@
/obj/item/paper/evilfax/show_content(mob/user, forceshow = 0, forcestars = 0, infolinks = 0, view = 1)
if(user == mytarget)
if(istype(user, /mob/living/carbon))
if(iscarbon(user))
var/mob/living/carbon/C = user
evilpaper_specialaction(C)
..()
@@ -720,7 +720,7 @@
/obj/item/paper/evilfax/proc/evilpaper_specialaction(mob/living/carbon/target)
spawn(30)
if(istype(target, /mob/living/carbon))
if(iscarbon(target))
var/obj/machinery/photocopier/faxmachine/fax = locateUID(faxmachineid)
if(myeffect == "Borgification")
to_chat(target,"<span class='userdanger'>You seem to comprehend the AI a little better. Why are your muscles so stiff?</span>")
+1 -1
View File
@@ -67,7 +67,7 @@
to_chat(user, "<span class='notice'>You add \the [W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].</span>")
qdel(W)
else
if(istype(W, /obj/item/pen) || istype(W, /obj/item/toy/crayon))
if(is_pen(W) || istype(W, /obj/item/toy/crayon))
usr << browse("", "window=PaperBundle[UID()]") //Closes the dialog
P = src[page]
P.attackby(W, user, params)
+1 -1
View File
@@ -62,7 +62,7 @@
/obj/item/paperplane/attackby(obj/item/P, mob/living/carbon/human/user, params)
..()
if(istype(P, /obj/item/pen) || istype(P, /obj/item/toy/crayon))
if(is_pen(P) || istype(P, /obj/item/toy/crayon))
to_chat(user, "<span class='notice'>You should unfold [src] before changing it.</span>")
return
+3 -3
View File
@@ -40,7 +40,7 @@
user.examinate(src)
/obj/item/photo/attackby(obj/item/P as obj, mob/user as mob, params)
if(istype(P, /obj/item/pen) || istype(P, /obj/item/toy/crayon))
if(is_pen(P) || istype(P, /obj/item/toy/crayon))
var/txt = sanitize(input(user, "What would you like to write on the back?", "Photo Writing", null) as text)
txt = copytext(txt, 1, 128)
if(loc == user && user.stat == 0)
@@ -288,7 +288,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
// If what we got back is actually a picture, draw it.
if(istype(img, /icon))
// Check if we're looking at a mob that's lying down
if(istype(A, /mob/living))
if(isliving(A))
var/mob/living/L = A
if(IS_HORIZONTAL(L))
// If they are, apply that effect to their picture.
@@ -327,7 +327,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
var/holding = null
if(istype(M, /mob/living/carbon))
if(iscarbon(M))
var/mob/living/carbon/A = M
if(A.l_hand || A.r_hand)
if(A.l_hand) holding = "They are holding \a [A.l_hand]"