Skip to content

Commit

Permalink
linter fix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendaxe committed Nov 14, 2023
1 parent c827835 commit 2378760
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion modular_ss220/clothing/code/mask.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/obj/item/clothing/mask/equipped(mob/M, slot)
. = ..()

if ((slot & SLOT_HUD_WEAR_MASK) && modifies_speech)
if((slot & SLOT_HUD_WEAR_MASK) && modifies_speech)
RegisterSignal(M, COMSIG_MOB_SAY, PROC_REF(handle_speech))
else
UnregisterSignal(M, COMSIG_MOB_SAY)
Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/detective_rework/code/sample_kits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
if(!has_hand)
to_chat(user, span_warning("А рук то у него нет."))
return FALSE
if (!do_after(user, 2 SECONDS, target = user))
if(!do_after(user, 2 SECONDS, target = user))
return FALSE

user.visible_message("[user] делает копию отмечатков [H].")
Expand Down
4 changes: 2 additions & 2 deletions modular_ss220/detective_rework/code/swabs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
return

if(sample_type)
if (!dispenser)
if(!dispenser)
dna = target_dna
gsr = target_gsr
set_used(sample_type, H)
Expand Down Expand Up @@ -154,7 +154,7 @@

if(sample_type)
user.visible_message("[user] берёт мазок с [A] для анализа.", "Вы берёте мазок с [A] для анализа.")
if (!dispenser)
if(!dispenser)
dna = target_dna
gsr = target_gsr
set_used(sample_type, A)
Expand Down
4 changes: 2 additions & 2 deletions modular_ss220/discord_link/code/discord.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
return

if(href_list["observe"] || href_list["ready"] || href_list["late_join"])
if (GLOB.configuration.database.enabled && GLOB.configuration.ss220_misc.force_discord_verification)
if(GLOB.configuration.database.enabled && GLOB.configuration.ss220_misc.force_discord_verification)
if(!client.prefs.discord_id || !(client.prefs.get_discord_id() && client.prefs.discord_id))
to_chat(usr, span_danger("Вам необходимо привязать дискорд-профиль к аккаунту!"))
to_chat(usr, span_warning("Нажмите 'Привязка Discord' во вкладке 'Special Verbs' для получения инструкций."))
Expand Down Expand Up @@ -81,7 +81,7 @@

/datum/preferences/load_preferences(datum/db_query/query)
. = ..()
if (!.)
if(!.)
return

return get_discord_id()
2 changes: 1 addition & 1 deletion modular_ss220/fullscreen/code/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

fullscreen = !fullscreen

if (fullscreen)
if(fullscreen)
winset(usr, "mainwindow", "on-size=")
winset(usr, "mainwindow", "titlebar=false")
winset(usr, "mainwindow", "can-resize=false")
Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/jukebox/code/jukebox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
volume = max_volume
return TRUE
else if(text2num(new_volume) != null)
if (text2num(new_volume) > max_volume)
if(text2num(new_volume) > max_volume)
volume = max_volume
else
volume = text2num(new_volume)
Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/maps220/code/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@

/mob/living/simple_animal/hostile/deadwizard/Shoot(atom/targeted_atom)
..()
if (get_dist(src, targeted_atom) > 9)
if(get_dist(src, targeted_atom) > 9)
rapid = 1
ranged_cooldown_time = 15
projectiletype = /obj/item/projectile/magic/fireball/infernal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
DF.obj_color = inventory_head.color


if (icon_state == icon_resting)
if(icon_state == icon_resting)
head_icon = DF.get_overlay()
head_icon.pixel_y = -2
else
Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/mobs/code/simple_animal/pets/slugcat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
usr.unset_machine()
return

if (stat == DEAD)
if(stat == DEAD)
return 0

if(href_list["remove_inv"])
Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/objects/code/plastic_chair.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Mob.pixel_y -= 2

/obj/structure/chair/plastic/proc/snap_check(mob/living/carbon/M)
if (M.nutrition >= NUTRITION_LEVEL_FAT)
if(M.nutrition >= NUTRITION_LEVEL_FAT)
to_chat(M, span_warning("Стул начинает хрустеть и трещать, ты слишком тяжёлый!"))
if(do_after(M, 6 SECONDS, progress = FALSE))
M.visible_message(span_notice("\improper [M] садится на пластиковый стул, и проламывает его своим весом!"))
Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/objects/code/weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
return ..()

/obj/item/gun/projectile/revolver/reclinable/process_fire(atom/target, mob/living/user, message, params, zone_override, bonus_spread)
if (!reclined)
if(!reclined)
return ..()

to_chat(user, "<span class='danger'>*click*</span>")
Expand Down
8 changes: 4 additions & 4 deletions modular_ss220/silicon_hats/code/silicon_hats.dm
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@
hat_offset_y = -6

if(inventory_head)
if (!can_be_hatted)
if(!can_be_hatted)
remove_from_head(usr)
return
if (!can_wear_blacklisted_hats && is_type_in_list(inventory_head, blacklisted_hats))
if(!can_wear_blacklisted_hats && is_type_in_list(inventory_head, blacklisted_hats))
remove_from_head(usr)
return

Expand Down Expand Up @@ -146,7 +146,7 @@
borgI.alpha = hat_alpha
borgI.color = hat_color
borgI.pixel_y = hat_offset_y
if (!is_centered)
if(!is_centered)
borgI.transform = matrix(1.125, 0, 0.5, 0, 1, 0)
return borgI

Expand Down Expand Up @@ -174,7 +174,7 @@
to_chat(user, span_warning("[item_to_add] застрял в ваших руках, вы не можете его надеть на голову [src]!"))
return FALSE

if (!can_wear_blacklisted_hats && is_type_in_list(item_to_add, blacklisted_hats))
if(!can_wear_blacklisted_hats && is_type_in_list(item_to_add, blacklisted_hats))
to_chat(user, span_warning("[item_to_add] не помещается на голову [src]!"))
return FALSE

Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/silicon_hats/code/silicon_interactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
usr.unset_machine()
return FALSE

if (!can_be_hatted)
if(!can_be_hatted)
return FALSE

if(href_list["remove_inv"])
Expand Down

0 comments on commit 2378760

Please sign in to comment.