我说次元斩
This commit is contained in:
@@ -21,32 +21,32 @@ namespace Cielonos.MainGame.Inventory.Collections
|
||||
feedbackSc.PlayFeedback(feedbackName);
|
||||
}
|
||||
|
||||
private void SetBlock(BlockData blockData = null)
|
||||
private void SetBlock(BlockData blockData = null, bool hasReaction = true)
|
||||
{
|
||||
blockData ??= this.blockData;
|
||||
BlockSource blockSource = blockData.CreateBlockSource(player, this);
|
||||
player.landMovementSc.canDash = false;
|
||||
player.landMovementSc.canDodge = false;
|
||||
|
||||
blockSource.onNormalBlock = (attackArea) =>
|
||||
if (hasReaction)
|
||||
{
|
||||
PlayBlockReaction("NormalBlock", 1f);
|
||||
};
|
||||
|
||||
blockSource.onPerfectBlock = (attackArea) =>
|
||||
{
|
||||
PlayBlockReaction("PerfectBlock", 2f);
|
||||
blockSource.onNormalBlock = (attackArea) => { PlayBlockReaction("NormalBlock", 1f); };
|
||||
|
||||
if (attackArea is NormalArea)
|
||||
blockSource.onPerfectBlock = (attackArea) =>
|
||||
{
|
||||
if (HasExtender<PhotonPolarizer>()) // 如果有Photon Polarizer,完美格挡会弹开并打断敌人
|
||||
PlayBlockReaction("PerfectBlock", 2f);
|
||||
|
||||
if (attackArea is NormalArea)
|
||||
{
|
||||
attackArea.creator.GetHit(Breakthrough.Type.Forced, out _);
|
||||
attackArea.creator.movementSc.impulseSm.ApplyKnockback(player.transform.forward, 6f);
|
||||
if (HasExtender<PhotonPolarizer>()) // 如果有Photon Polarizer,完美格挡会弹开并打断敌人
|
||||
{
|
||||
attackArea.creator.GetHit(Breakthrough.Type.Forced, out _);
|
||||
attackArea.creator.movementSc.impulseSm.ApplyKnockback(player.transform.forward, 6f);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
player.reactionSc.blockSm.ApplyBlock(blockSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user