Browse Source

fix: 🚑 fix the bug about climbing the windows

tags/v0.1.0
shangfengh 2 years ago
parent
commit
c152b05b60
3 changed files with 10 additions and 4 deletions
  1. +5
    -2
      docs/版本更新说明.md
  2. +3
    -1
      logic/GameClass/GameObj/Map/Window.cs
  3. +2
    -1
      logic/Gaming/ActionManager.cs

+ 5
- 2
docs/版本更新说明.md View File

@@ -79,7 +79,10 @@
- fix:修复了可以学习完成作业的问题
- fix:修复了HaveTea越界的问题

# 5月25日更新
# 5月25日24:00更新
- fix:修复了终局得分的问题
- fix:修复了开校门的问题
- docs:摧毁一个TechOtaku的机器人,得50分。
- docs:摧毁一个TechOtaku的机器人,得50分。

# 5月26日更新
- fix:修复了卡窗的问题

+ 3
- 1
logic/GameClass/GameObj/Map/Window.cs View File

@@ -48,13 +48,15 @@ namespace GameClass.GameObj
public bool TryToClimb(ICharacter character)
{
lock (gameObjLock)
{
if (whoIsClimbing == null)
{
stage = new(0, 0);
whoIsClimbing = (Character)character;
return true;
}
else return false;
}
return false;
}
public void FinishClimbing()
{


+ 2
- 1
logic/Gaming/ActionManager.cs View File

@@ -469,8 +469,8 @@ namespace Gaming
lock (player.ActionLock)
{
if (!player.StartThread(stateNum, RunningStateType.RunningActively)) return;
player.ReSetPos(windowToPlayer + windowForClimb.Position);
windowForClimb.Enter2Stage(windowForClimb.Position - 2 * windowToPlayer);
player.ReSetPos(windowToPlayer + windowForClimb.Position);
}

player.MoveSpeed = player.SpeedOfClimbingThroughWindows;
@@ -484,6 +484,7 @@ namespace Gaming
{
if (stateNum == player.StateNum)
{
player.ReSetPos(windowForClimb.Stage);
player.SetPlayerStateNaturally();
windowForClimb.FinishClimbing();
}


Loading…
Cancel
Save