mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix: the buff menu in tourn rogue cannot display
This commit is contained in:
@@ -80,6 +80,26 @@ public class CommandRogue : ICommand
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[CommandMethod("0 roll")]
|
||||
public async ValueTask RollBuff(CommandArg arg)
|
||||
{
|
||||
if (arg.Target == null)
|
||||
{
|
||||
await arg.SendMsg(I18NManager.Translate("Game.Command.Notice.PlayerNotFound"));
|
||||
return;
|
||||
}
|
||||
|
||||
var instance = arg.Target.Player!.RogueManager?.GetRogueInstance();
|
||||
if (instance == null)
|
||||
{
|
||||
await arg.SendMsg(I18NManager.Translate("Game.Command.Rogue.PlayerNotInRogue"));
|
||||
return;
|
||||
}
|
||||
|
||||
await instance.RollBuff(1);
|
||||
}
|
||||
|
||||
[CommandMethod("0 miracle")]
|
||||
public async ValueTask GetMiracle(CommandArg arg)
|
||||
{
|
||||
|
||||
@@ -130,7 +130,7 @@ public class LineupInfo
|
||||
Index = (uint)(LineupData?.Lineups?.Values.ToList().IndexOf(this) ?? 0)
|
||||
};
|
||||
|
||||
if (LineupType != (int)ExtraLineupType.LineupNone) info.Index = (uint)(LineupType + 10);
|
||||
if (LineupType != (int)ExtraLineupType.LineupNone) info.Index = 0;
|
||||
|
||||
if (BaseAvatars?.Find(item => item.BaseAvatarId == LeaderAvatarId) != null) // find leader,if not exist,set to 0
|
||||
info.LeaderSlot = (uint)BaseAvatars.IndexOf(BaseAvatars.Find(item => item.BaseAvatarId == LeaderAvatarId)!);
|
||||
|
||||
@@ -72,7 +72,6 @@ public class RogueTournInstance : BaseRogueInstance
|
||||
{ RogueTournRoomTypeEnum.Coin, 4 },
|
||||
{ RogueTournRoomTypeEnum.Shop, 4 },
|
||||
{ RogueTournRoomTypeEnum.Event, 7 },
|
||||
{ RogueTournRoomTypeEnum.Adventure, 6 },
|
||||
{ RogueTournRoomTypeEnum.Reward, 5 },
|
||||
{ RogueTournRoomTypeEnum.Hidden, 1 }
|
||||
};
|
||||
@@ -108,7 +107,6 @@ public class RogueTournInstance : BaseRogueInstance
|
||||
CurLevel.CurRoom?.Init(type);
|
||||
|
||||
// next room
|
||||
CurActionQueuePosition += 15;
|
||||
var next = CurLevel.Rooms.Find(x => x.RoomIndex == roomIndex + 1);
|
||||
if (next != null)
|
||||
next.Status = RogueTournRoomStatus.Inited;
|
||||
@@ -200,7 +198,7 @@ public class RogueTournInstance : BaseRogueInstance
|
||||
}
|
||||
|
||||
await Player.SendPacket(new PacketSyncRogueCommonActionResultScNotify(RogueSubMode,
|
||||
bless.ToResultProto(RogueCommonActionResultSourceType.Select)));
|
||||
bless.ToResultProto(RogueCommonActionResultSourceType.None), RogueCommonActionResultDisplayType.Multi));
|
||||
}
|
||||
|
||||
RogueActions.Remove(action.QueuePosition);
|
||||
@@ -358,7 +356,7 @@ public class RogueTournInstance : BaseRogueInstance
|
||||
RogueFormulas.Add(formula);
|
||||
await Player.SendPacket(new PacketSyncRogueCommonActionResultScNotify(RogueSubMode,
|
||||
formula.ToResultProto(RogueCommonActionResultSourceType.Select,
|
||||
RogueBuffs.Select(x => x.BuffId).ToList()), RogueCommonActionResultDisplayType.Single));
|
||||
RogueBuffs.Select(x => x.BuffId).ToList()), RogueCommonActionResultDisplayType.Multi));
|
||||
}
|
||||
|
||||
RogueActions.Remove(action.QueuePosition);
|
||||
@@ -554,7 +552,8 @@ public class RogueTournInstance : BaseRogueInstance
|
||||
TournModuleInfo = new RogueTournModuleInfo
|
||||
{
|
||||
AllowFood = true
|
||||
}
|
||||
},
|
||||
JMIDLLDKJBI = new()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ public class RogueTournManager(PlayerInstance player) : BasePlayerManager(player
|
||||
return new RogueTournSeasonInfo
|
||||
{
|
||||
SubTournId = GameConstants.CURRENT_ROGUE_TOURN_SEASON,
|
||||
MainTournId = 1
|
||||
MainTournId = 2
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ public class RogueTournEntityLoader(SceneInstance scene, PlayerInstance player)
|
||||
foreach (var group in Scene.FloorInfo?.Groups.Values!)
|
||||
if (rogue.CurLevel?.CurRoom?.GetLoadGroupList().Contains(group.Id) == true)
|
||||
await LoadGroup(group);
|
||||
else if (group.Category == GroupCategoryEnum.Normal) await LoadGroup(group);
|
||||
}
|
||||
|
||||
Scene.IsLoaded = true;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using EggLink.DanhengServer.Enums.TournRogue;
|
||||
using EggLink.DanhengServer.GameServer.Server.Packet.Send.RogueTourn;
|
||||
using EggLink.DanhengServer.GameServer.Server.Packet.Send.Scene;
|
||||
using EggLink.DanhengServer.Kcp;
|
||||
using EggLink.DanhengServer.Proto;
|
||||
|
||||
@@ -23,5 +24,6 @@ public class HandlerRogueTournEnterRoomCsReq : Handler
|
||||
|
||||
await inst.EnterRoom((int)(req.CurRoomIndex + 1), (RogueTournRoomTypeEnum)req.NextRoomType);
|
||||
await connection.SendPacket(new PacketRogueTournEnterRoomScRsp(Retcode.RetSucc, inst));
|
||||
await connection.SendPacket(new PacketEnterSceneByServerScNotify(player.SceneInstance!));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user