AmbiguousInOrder ODLint (#20046)

Enabled AmbiguousInOrder OpenDream linting to error out
Fixed ambiguous orders with parenthesis to explicit orders
No player facing changes
This commit is contained in:
Fluffy
2024-10-16 21:14:20 +00:00
committed by GitHub
parent bec05df121
commit a623e22eda
14 changed files with 16 additions and 15 deletions
@@ -406,7 +406,7 @@ pixel_x = 8;
if(!istype(position) || !(position.z in levels))
return FALSE
if(input_frequency in ANTAG_FREQS && !syndie)
if((input_frequency in ANTAG_FREQS) && !syndie)
return FALSE//Prevents broadcast of messages over devices lacking the encryption
return TRUE
@@ -65,7 +65,7 @@ effective or pretty fucking useless.
if(!istype(target))
to_chat(user, SPAN_NOTICE("[target] is not a valid target!"))
return
if(GLOB.all_languages[LANGUAGE_LIIDRA] in target.languages || target.internal_organs_by_name["blackkois"])
if((GLOB.all_languages[LANGUAGE_LIIDRA] in target.languages) || target.internal_organs_by_name["blackkois"])
to_chat(user, SPAN_NOTICE("[target] is already part of the Lii'dra Hivemind!"))
return
if(isvaurca(target))
+2 -2
View File
@@ -444,7 +444,7 @@
)
while(!P)
P = pick(typesof(/obj/structure/flora/pottedplant))
if(P in unwanted || ((P in rare) && prob(50)))
if((P in unwanted) || ((P in rare) && prob(50)))
P = null
. = new P(loc)
@@ -465,7 +465,7 @@
)
while(!P)
P = pick(typesof(/obj/item/flora/pottedplant_small))
if(P in unwanted || ((P in rare) && prob(50)))
if((P in unwanted) || ((P in rare) && prob(50)))
P = null
. = new P(loc)