migration testing, manifesto editing

This commit is contained in:
rfi
2024-02-21 19:12:32 +07:00
parent f58abb9534
commit c3bcb16f72
7 changed files with 274 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
using BLHX.Server.Common.Proto;
using BLHX.Server.Common.Database;
using BLHX.Server.Common.Proto;
using BLHX.Server.Common.Proto.p11;
namespace BLHX.Server.Game.Handlers
@@ -17,6 +18,22 @@ namespace BLHX.Server.Game.Handlers
});
}
[PacketHandler(Command.Cs11009)]
static void ChangeManifestoHandler(Connection connection, Packet packet)
{
var req = packet.Decode<Cs11009>();
connection.player.Adv = req.Adv;
DBManager.PlayerContext.SaveChanges();
connection.Send(new Sc11010());
}
[PacketHandler(Command.Cs11601)]
static void GetEmojiInfoHandler(Connection connection, Packet packet)
{
connection.Send(new Sc11602());
}
[PacketHandler(Command.Cs11603)]
static void FetchSecondaryPasswordHandler(Connection connection, Packet packet)
{
@@ -54,6 +71,7 @@ namespace BLHX.Server.Game.Handlers
Name = connection.player.Name,
Level = connection.player.Level,
Exp = connection.player.Exp,
Adv = connection.player.Adv,
ResourceLists = connection.player.Resources.Select(x => new Resource() { Num = x.Num, Type = x.Id }).ToList(),
Characters = [1],
ShipBagMax = 150,