Browse Source

fix: 🐛 fix the deficiency of skill

tags/0.1.0
shangfengh 2 years ago
parent
commit
b1b7587ede
4 changed files with 7 additions and 3 deletions
  1. +1
    -1
      logic/GameClass/GameObj/Character/Character.cs
  2. +4
    -0
      logic/GameClass/Skill/ActiveSkill.cs
  3. +1
    -1
      logic/Preparation/Utility/EnumType.cs
  4. +1
    -1
      logic/Preparation/Utility/GameData.cs

+ 1
- 1
logic/GameClass/GameObj/Character/Character.cs View File

@@ -65,7 +65,7 @@ namespace GameClass.GameObj
} }
set set
{ {
if (!(value == PlayerStateType.IsMoving || value == PlayerStateType.Null))
if (!(value == PlayerStateType.IsMoving))
lock (gameObjLock) lock (gameObjLock)
IsMoving = false; IsMoving = false;




+ 4
- 0
logic/GameClass/Skill/ActiveSkill.cs View File

@@ -214,6 +214,10 @@ namespace GameClass.Skill
{ {
case BecomeInvisible: case BecomeInvisible:
return ActiveSkillType.BecomeInvisible; return ActiveSkillType.BecomeInvisible;
case UseKnife:
return ActiveSkillType.UseKnife;
case BeginToCharge:
return ActiveSkillType.BeginToCharge;
default: default:
return ActiveSkillType.Null; return ActiveSkillType.Null;
} }


+ 1
- 1
logic/Preparation/Utility/EnumType.cs View File

@@ -82,7 +82,7 @@ namespace Preparation.Utility
NuclearWeapon = 3, NuclearWeapon = 3,
SuperFast = 4, SuperFast = 4,
UseKnife = 5, UseKnife = 5,
ASkill5 = 6
BeginToCharge = 6
} }
public enum PassiveSkillType public enum PassiveSkillType
{ {


+ 1
- 1
logic/Preparation/Utility/GameData.cs View File

@@ -7,7 +7,7 @@ namespace Preparation.Utility
{ {
#region 基本常数与常方法 #region 基本常数与常方法
public const int numOfPosGridPerCell = 1000; // 每格的【坐标单位】数 public const int numOfPosGridPerCell = 1000; // 每格的【坐标单位】数
public const int numOfStepPerSecond = 100; // 每秒行走的步数
public const int numOfStepPerSecond = 20; // 每秒行走的步数
public const int frameDuration = 50; // 每帧时长 public const int frameDuration = 50; // 每帧时长


public const int lengthOfMap = 50000; // 地图长度 public const int lengthOfMap = 50000; // 地图长度


Loading…
Cancel
Save