Only show gun examines in detail range (#10697)
The most important 2 are fire mode and how much ammo is left.
This commit is contained in:
@@ -24,6 +24,9 @@ public abstract partial class SharedGunSystem
|
||||
|
||||
private void OnMagazineExamine(EntityUid uid, MagazineAmmoProviderComponent component, ExaminedEvent args)
|
||||
{
|
||||
if (!args.IsInDetailsRange)
|
||||
return;
|
||||
|
||||
var (count, _) = GetMagazineCountCapacity(component);
|
||||
args.PushMarkup(Loc.GetString("gun-magazine-examine", ("color", AmmoExamineColor), ("count", count)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user