Added display for amount of hits left in stun batons/stunprods.
Co-authored-by: Plykiya <plykiya@protonmail.com>
? Loc.GetString("comp-stunbaton-examined-on")
: Loc.GetString("comp-stunbaton-examined-off");
args.PushMarkup(onMsg);
+
+ if (TryComp<BatteryComponent>(entity.Owner, out var battery))
+ {
+ var count = (int) (battery.CurrentCharge / entity.Comp.EnergyPerUse);
+ args.PushMarkup(Loc.GetString("melee-battery-examine", ("color", "yellow"), ("count", count)));
+ }
}
private void ToggleDone(Entity<StunbatonComponent> entity, ref ItemToggledEvent args)
melee-inject-failed-hardsuit = Your {$weapon} cannot inject through hardsuits!
melee-balloon-pop = {CAPITALIZE(THE($balloon))} popped!
+
+
+#BatteryComponent
+melee-battery-examine = It has enough charge for [color={$color}]{$count}[/color] hits.