Browse Source

Merge pull request #624 from eesast/dev

fix: 🐛 try to fix the bug about CD
tags/v0.1.0
shangfengh GitHub 2 years ago
parent
commit
37e4af2ee7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      logic/Preparation/Interface/ISkill.cs
  2. +2
    -2
      logic/Server/CopyInfo.cs

+ 1
- 1
logic/Preparation/Interface/ISkill.cs View File

@@ -48,8 +48,8 @@ namespace Preparation.Interface
openStartTime = Environment.TickCount;
return true;
}
else return false;
}
return false;
}

public int isBeingUsed = 0;//实为bool


+ 2
- 2
logic/Server/CopyInfo.cs View File

@@ -82,7 +82,7 @@ namespace Server

foreach (var keyValue in player.ActiveSkillDictionary)
{
int progress = keyValue.Value.SkillCD - Environment.TickCount + keyValue.Value.OpenStartTime;
int progress = keyValue.Value.SkillCD - time + keyValue.Value.OpenStartTime;
msg.StudentMessage.TimeUntilSkillAvailable.Add(progress < 0 ? 0 : progress);
}
for (int i = 0; i < GameData.maxNumOfSkill - player.ActiveSkillDictionary.Count; ++i)
@@ -126,7 +126,7 @@ namespace Server
};
foreach (var keyValue in player.ActiveSkillDictionary)
{
int progress = keyValue.Value.SkillCD - Environment.TickCount + keyValue.Value.OpenStartTime;
int progress = keyValue.Value.SkillCD - time + keyValue.Value.OpenStartTime;
msg.TrickerMessage.TimeUntilSkillAvailable.Add(progress < 0 ? 0 : progress);
}
for (int i = 0; i < GameData.maxNumOfSkill - player.ActiveSkillDictionary.Count; ++i)


Loading…
Cancel
Save