Меньше попапов в чат (#143)

* add: less popups in chat

* fix: less brackets
This commit is contained in:
ThereDrD0
2024-02-29 13:36:13 +03:00
committed by GitHub
parent 97b0cb1acb
commit be32d673cb
21 changed files with 18 additions and 51 deletions

View File

@@ -50,8 +50,7 @@ public abstract class SharedCombatModeSystem : EntitySystem
if (!_netMan.IsClient || !Timing.IsFirstTimePredicted)
return;
var msg = component.IsInCombatMode ? "action-popup-combat-enabled" : "action-popup-combat-disabled";
_popup.PopupEntity(Loc.GetString(msg), args.Performer, args.Performer);
// WD edit
}
public void SetCanDisarm(EntityUid entity, bool canDisarm, CombatModeComponent? component = null)