More CI for conditionals (#24050)

* yay

* and thus, it was fixed

* and this fix too, so that the lang server stops complaining

* warrior review
This commit is contained in:
Contrabang
2024-02-06 18:29:33 +00:00
committed by GitHub
parent 877b3b38f7
commit 848c717771
26 changed files with 46 additions and 54 deletions
@@ -10,7 +10,7 @@
/datum/action/changeling/apex_predator/sting_action(mob/user)
var/list/target_by_name = list()
for(var/mob/living/carbon/human/possible_target as anything in GLOB.human_list)
if((!possible_target.mind || possible_target.z != user.z))
if(!possible_target.mind || possible_target.z != user.z)
continue
target_by_name[possible_target.real_name] = possible_target
+1 -1
View File
@@ -197,7 +197,7 @@
else
click_speed_modifier = initial(click_speed_modifier) // 2
if((L.a_intent in accepted_intents))
if(L.a_intent in accepted_intents)
L.changeNext_move(click_speed_modifier)
return FALSE
@@ -110,7 +110,8 @@ Please contact me on #coderbus IRC. ~Carn x
var/list/cached_standing_overlays = list() // List of everything currently in a human's actual overlays
/mob/living/carbon/human/proc/apply_overlay(cache_index)
if((. = overlays_standing[cache_index]))
. = overlays_standing[cache_index]
if(.)
add_overlay(.)
/mob/living/carbon/human/proc/remove_overlay(cache_index)
+1 -1
View File
@@ -27,7 +27,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list(
if(subject!=null)
for(var/A in GLOB.ai_list)
var/mob/living/silicon/ai/M = A
if((M.client && M.machine == subject))
if(M.client && M.machine == subject)
is_in_use = 1
subject.attack_ai(M)
return is_in_use
@@ -438,7 +438,7 @@
lastfired = world.time
var/turf/T = loc
var/atom/U = (istype(target, /atom/movable) ? target.loc : target)
if((!U || !T))
if(!U || !T)
return
while(!isturf(U))
U = U.loc
@@ -504,11 +504,11 @@
/mob/living/simple_animal/bot/ed209/bullet_act(obj/item/projectile/Proj)
if(!disabled)
var/lasertag_check = 0
if((lasercolor == "b"))
if(lasercolor == "b")
if(istype(Proj, /obj/item/projectile/beam/lasertag/redtag))
lasertag_check++
else if((lasercolor == "r"))
else if(lasercolor == "r")
if(istype(Proj, /obj/item/projectile/beam/lasertag/bluetag))
lasertag_check++
@@ -73,7 +73,7 @@
if(prob(ranged_block_chance))
visible_message("<span class='danger'>[src] blocks [Proj] with its shield!</span>")
else
if((Proj.damage_type == BRUTE || Proj.damage_type == BURN))
if(Proj.damage_type == BRUTE || Proj.damage_type == BURN)
adjustHealth(Proj.damage)
return 0
@@ -250,7 +250,7 @@
if(!Proj)
return
attacked += 10
if((Proj.damage_type == BURN))
if(Proj.damage_type == BURN)
adjustBruteLoss(-abs(Proj.damage)) //fire projectiles heals slimes.
Proj.on_hit(src)
else
+1 -1
View File
@@ -201,7 +201,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
if("rename") // rename the item that is currently in the fax machine
if(copyitem)
var/n_name = sanitize(copytext(input(usr, "What would you like to label the fax?", "Fax Labelling", copyitem.name) as text, 1, MAX_MESSAGE_LEN))
if((copyitem && copyitem.loc == src && usr.stat == 0))
if(copyitem && copyitem.loc == src && usr.stat == 0)
if(istype(copyitem, /obj/item/paper))
copyitem.name = "[(n_name ? "[n_name]" : initial(copyitem.name))]"
copyitem.desc = "This is a paper titled '" + copyitem.name + "'."
+1 -1
View File
@@ -202,7 +202,7 @@
/obj/item/paper_bundle/proc/rename(mob/user)
var/n_name = sanitize(copytext(input(user, "What would you like to label the bundle?", "Bundle Labelling", name) as text, 1, MAX_MESSAGE_LEN))
if((loc == user && !user.stat))
if(loc == user && !user.stat)
name = "[(n_name ? "[n_name]" : "paper bundle")]"
add_fingerprint(user)
@@ -52,7 +52,7 @@
*/
/datum/organ/lungs/proc/check_breath(datum/gas_mixture/breath, mob/living/carbon/human/H)
if((H.status_flags & GODMODE))
if(H.status_flags & GODMODE)
return
if(HAS_TRAIT(H, TRAIT_NOBREATH))