Energy guns' fire mode text formating fix (#42103)

issue
This commit is contained in:
GeneralGaws
2025-12-26 19:28:02 +03:00
committed by GitHub
parent 8b33f4734f
commit 2aa29de1ee
2 changed files with 4 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ public sealed class BatteryWeaponFireModesSystem : EntitySystem
if (!_prototypeManager.TryIndex<EntityPrototype>(fireMode.Prototype, out var proto))
return;
args.PushMarkup(Loc.GetString("gun-set-fire-mode", ("mode", proto.Name)));
args.PushMarkup(Loc.GetString("gun-set-fire-mode-examine", ("mode", proto.Name)));
}
private BatteryWeaponFireMode GetMode(BatteryWeaponFireModesComponent component)
@@ -124,7 +124,7 @@ public sealed class BatteryWeaponFireModesSystem : EntitySystem
_appearanceSystem.SetData(uid, BatteryWeaponFireModeVisuals.State, prototype.ID, appearance);
if (user != null)
_popupSystem.PopupClient(Loc.GetString("gun-set-fire-mode", ("mode", prototype.Name)), uid, user.Value);
_popupSystem.PopupClient(Loc.GetString("gun-set-fire-mode-popup", ("mode", prototype.Name)), uid, user.Value);
}
if (TryComp(uid, out BatteryAmmoProviderComponent? batteryAmmoProviderComponent))

View File

@@ -4,7 +4,8 @@ gun-fire-rate-examine = Fire rate is [color={$color}]{$fireRate}[/color] per sec
gun-selector-verb = Change to {$mode}
gun-selected-mode = Selected {$mode}
gun-disabled = You can't use guns!
gun-set-fire-mode = Set to [color=yellow]{$mode}[/color].
gun-set-fire-mode-examine = Set to [color=yellow]{$mode}[/color].
gun-set-fire-mode-popup = Changed to {$mode}
gun-magazine-whitelist-fail = That won't fit into the gun!
gun-magazine-fired-empty = No ammo left!