ExaminableDamage now puts its message at the bottom and in color (#32820)

* the examineableDamage component now puts its messages at the bottom, and in color

* god help us if something is priority -100 :godo:
This commit is contained in:
Moomoobeef
2024-10-31 17:21:05 -07:00
committed by GitHub
parent 45aa782ec4
commit cf0d6c482e
2 changed files with 6 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ public sealed class ExaminableDamageSystem : EntitySystem
var level = GetDamageLevel(uid, component);
var msg = Loc.GetString(messages[level]);
args.PushMarkup(msg);
args.PushMarkup(msg,-99);
}
private int GetDamageLevel(EntityUid uid, ExaminableDamageComponent? component = null,

View File

@@ -2,13 +2,14 @@
# Shown when examining the window. Each entry represents the window's health condition
comp-window-damaged-1 = It looks fully intact.
comp-window-damaged-2 = It has a few scratches
comp-window-damaged-2 = It has a few scratches.
comp-window-damaged-3 = It has a few small cracks.
comp-window-damaged-4 = It has several big cracks running along its surface.
comp-window-damaged-5 = It has deep cracks across multiple layers.
comp-window-damaged-6 = It's extremely cracked and on the verge of shattering.
comp-window-damaged-4 = [color=yellow]It has several big cracks running along its surface.[/color]
comp-window-damaged-5 = [color=orange]It has deep cracks across multiple layers.[/color]
comp-window-damaged-6 = [color=red]It's extremely cracked and on the verge of shattering.[/color]
### Interaction Messages
# Shown when knocking on a window
comp-window-knock = *knock knock*