Updates OD lints (#26729)

* yea

* update lints

* lint changes and code fixes

* i hate old code

* dont make this an error
This commit is contained in:
Contrabang
2024-09-27 17:02:16 +00:00
committed by GitHub
parent 2a58ce0f91
commit 900271af91
12 changed files with 39 additions and 18 deletions
+1 -1
View File
@@ -456,7 +456,7 @@
var/list/output = list()
if(!processed)
processed = list()
if(src in processed || isturf(src))
if((src in processed) || isturf(src))
return output
processed += src
+1 -1
View File
@@ -41,7 +41,7 @@ Also, you never added distance checking after target is selected. I've went ahea
to_chat(user, "<span class='warning'>You're killing yourself! You can't concentrate enough to do this!</span>")
return
if(target.mind.special_role in protected_roles && target != user)
if((target.mind.special_role in protected_roles) && target != user)
to_chat(user, "<span class='danger'>Their mind is resisting your spell.</span>")
return
+1 -1
View File
@@ -133,7 +133,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
return
// If the uplink's holder is in the user's contents
if((U.loc in user.contents || (in_range(U.loc, user) && isturf(U.loc.loc))))
if(((U.loc in user.contents) || (in_range(U.loc, user) && isturf(U.loc.loc))))
if(cost > U.uses)
return