mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-13 15:04:37 +01:00
migration testing, manifesto editing
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user