mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 08:09:02 +00:00
移动不再计算硬直
This commit is contained in:
parent
ccf09b478e
commit
13a6adb41b
@ -1263,12 +1263,10 @@ namespace Milimoe.FunGame.Core.Model
|
|||||||
{
|
{
|
||||||
if (_map != null)
|
if (_map != null)
|
||||||
{
|
{
|
||||||
baseTime += 4;
|
|
||||||
Grid target = await SelectTargetGridAsync(character, enemys, teammates, _map);
|
Grid target = await SelectTargetGridAsync(character, enemys, teammates, _map);
|
||||||
if (target.Id != -1)
|
if (target.Id != -1)
|
||||||
{
|
{
|
||||||
int steps = _map.CharacterMove(character, currentGrid, target);
|
int steps = _map.CharacterMove(character, currentGrid, target);
|
||||||
if (steps > 4) baseTime += 0.7 * steps;
|
|
||||||
moved = true;
|
moved = true;
|
||||||
WriteLine($"[ {character} ] 移动了 {steps} 步!");
|
WriteLine($"[ {character} ] 移动了 {steps} 步!");
|
||||||
await OnCharacterMoveAsync(character, target);
|
await OnCharacterMoveAsync(character, target);
|
||||||
@ -2942,6 +2940,13 @@ namespace Milimoe.FunGame.Core.Model
|
|||||||
/// <param name="skill"></param>
|
/// <param name="skill"></param>
|
||||||
public async Task SetCharacterPreCastSuperSkill(Character character, Skill skill)
|
public async Task SetCharacterPreCastSuperSkill(Character character, Skill skill)
|
||||||
{
|
{
|
||||||
|
if (character.CharacterState == CharacterState.Casting)
|
||||||
|
{
|
||||||
|
_castingSkills.Remove(character);
|
||||||
|
character.CharacterState = CharacterState.Actionable;
|
||||||
|
character.UpdateCharacterState();
|
||||||
|
WriteLine("[ " + character + " ] 取消吟唱。");
|
||||||
|
}
|
||||||
if (character.CharacterState == CharacterState.Actionable)
|
if (character.CharacterState == CharacterState.Actionable)
|
||||||
{
|
{
|
||||||
_castingSuperSkills[character] = skill;
|
_castingSuperSkills[character] = skill;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user