Command seam: the stance press resolves its target at the step, after the step's target verbs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-22 08:39:46 +02:00
commit 8692cf8600
2 changed files with 11 additions and 11 deletions

View file

@ -406,14 +406,9 @@ public class ActionGameManager : MonoBehaviour
// Flips the player's own stance on the current target between hostile and neutral. Going
// neutral mid-fight safes weapons (Weapon.StanceAllowsFire); an unmarked/undetected target
// reads as non-hostile, so the first press declares hostile. The flip reads the stance when applied, so two
// presses in a step cancel.
Input.Player.ToggleStance.performed += context =>
{
var target = CurrentEntity.Target.Value.Entity;
if (target == null) return;
CurrentEntity.Command.ToggleStance(target);
};
// reads as non-hostile, so the first press declares hostile. The flip reads the target and its stance when applied,
// after the step's target presses, so two presses in a step cancel.
Input.Player.ToggleStance.performed += context => CurrentEntity.Command.ToggleStance();
#region Targeting