mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Add lints for idiomatic balloon alert usage (#72280)
Adds lints for `balloon_alert(span_xxx(...))` (which is always wrong), and balloon alert where the first letter is a capital (which is usually wrong). Fixes everything that failed them. As a reminder, abbreviations like "AI" and "GPS" shouldn't be capitalized in a balloon alert. In cases where this is intentional for flavor (there was one case), you can `UNLINT` like so: Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
return
|
||||
set_anchored(!anchored)
|
||||
tool.play_tool_sound(src)
|
||||
balloon_alert(user, "You [anchored?"secure":"unsecure"] [src].")
|
||||
balloon_alert(user, anchored ? "secured" : "unsecured")
|
||||
return TRUE
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
return
|
||||
set_anchored(!anchored)
|
||||
tool.play_tool_sound(src)
|
||||
balloon_alert(user, "You [anchored?"secure":"unsecure"] [src].")
|
||||
balloon_alert(user, anchored ? "secured" : "unsecured")
|
||||
return TRUE
|
||||
|
||||
/obj/structure/scanner_gate_shell/proc/on_entered(datum/source, atom/movable/AM)
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
/obj/structure/server/wrench_act(mob/living/user, obj/item/tool)
|
||||
set_anchored(!anchored)
|
||||
tool.play_tool_sound(src)
|
||||
balloon_alert(user, "You [anchored?"secure":"unsecure"] [src].")
|
||||
balloon_alert(user, anchored ? "secured" : "unsecured")
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user