fix harm mode popup (#15823)
* fix harm mode popup * fix enable/disable message
This commit is contained in:
@@ -53,8 +53,8 @@ namespace Content.Shared.CombatMode
|
|||||||
if (!_timing.IsFirstTimePredicted)
|
if (!_timing.IsFirstTimePredicted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var msg = component.IsInCombatMode ? "action-popup-combat" : "action-popup-combat-enabled";
|
var msg = component.IsInCombatMode ? "action-popup-combat-enabled" : "action-popup-combat-disabled";
|
||||||
_popup.PopupEntity(Loc.GetString(msg), args.Performer);
|
_popup.PopupEntity(Loc.GetString(msg), args.Performer, args.Performer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetCanDisarm(EntityUid entity, bool canDisarm, CombatModeComponent? component = null)
|
public void SetCanDisarm(EntityUid entity, bool canDisarm, CombatModeComponent? component = null)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
action-name-combat = [color=red]Combat Mode[/color]
|
action-name-combat = [color=red]Combat Mode[/color]
|
||||||
action-description-combat = Enter combat mode
|
action-description-combat = Enter combat mode
|
||||||
|
|
||||||
action-popup-combat = Combat mode disabled
|
action-popup-combat-disabled = Combat mode disabled
|
||||||
action-popup-combat-enabled = Combat mode enabled
|
action-popup-combat-enabled = Combat mode enabled
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user