Found movement vulnurability
This commit is contained in:
1 parent
0288afb00a
commit
9203f269db
31 files changed
+212319
-4344
No files matched your search
@@ -139,6 +139,7 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
public override BattleActionType ActionType => BattleActionType.Move;
|
||||
public override DeciderType DeciderType => DeciderType.Position;
|
||||
|
||||
// TODO всегда выдаёт разное количество кадров
|
||||
public override BattleActionData MountAndGetFrames(EntityProperties entity, BattleActionDecisionResult result)
|
||||
{
|
||||
MovementBattleActionData movementBattleActionData = new();
|
||||
@@ -173,6 +174,7 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
Vector3 segment = corners[i] - corners[i - 1];
|
||||
segment.y = 0f;
|
||||
totalDistanceXZ += segment.magnitude;
|
||||
Debug.Log($"{i} corner is {segment.magnitude}");
|
||||
}
|
||||
|
||||
float effectiveDistance = Mathf.Max(0f, totalDistanceXZ - StoppingDistance);
|
||||
|
||||
Reference in new issue
Block a user