Compare commits
3 Commits
f3b3d70b2b
...
bca322d8ef
Author | SHA1 | Date |
---|---|---|
Kyle Belanger | bca322d8ef | |
Kyle Belanger | e0ef1d1c78 | |
Kyle Belanger | 2189316381 |
|
@ -8,7 +8,6 @@ using AscNet.Table.V2.share.character;
|
||||||
using AscNet.Table.V2.share.character.quality;
|
using AscNet.Table.V2.share.character.quality;
|
||||||
using AscNet.Table.V2.share.equip;
|
using AscNet.Table.V2.share.equip;
|
||||||
using AscNet.Table.V2.share.item;
|
using AscNet.Table.V2.share.item;
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace AscNet.GameServer.Game
|
namespace AscNet.GameServer.Game
|
||||||
{
|
{
|
||||||
|
@ -447,10 +446,10 @@ namespace AscNet.GameServer.Game
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
// Weapon
|
// TODO: Weapon gacha
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
// CUB
|
// TODO: CUB gacha
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace AscNet.GameServer.Game
|
namespace AscNet.GameServer.Game
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,15 @@ namespace AscNet.GameServer.Handlers
|
||||||
[MessagePackObject(true)]
|
[MessagePackObject(true)]
|
||||||
public class UseCdKeyResponse
|
public class UseCdKeyResponse
|
||||||
{
|
{
|
||||||
|
[MessagePackObject(true)]
|
||||||
|
public class CdKeyRewardGoods
|
||||||
|
{
|
||||||
|
public RewardType RewardType;
|
||||||
|
public int TemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
public int Code;
|
public int Code;
|
||||||
|
public List<CdKeyRewardGoods>? RewardGoods;
|
||||||
}
|
}
|
||||||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -144,7 +152,7 @@ namespace AscNet.GameServer.Handlers
|
||||||
[RequestPacketHandler("UseCdKeyRequest")]
|
[RequestPacketHandler("UseCdKeyRequest")]
|
||||||
public static void UseCdKeyRequestHandler(Session session, Packet.Request packet)
|
public static void UseCdKeyRequestHandler(Session session, Packet.Request packet)
|
||||||
{
|
{
|
||||||
session.SendResponse(new UseCdKeyResponse() { Code = 1 }, packet.Id);
|
session.SendResponse(new UseCdKeyResponse() { Code = 20054001 }, packet.Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Move somewhere else, also split.
|
// TODO: Move somewhere else, also split.
|
||||||
|
|
|
@ -8,6 +8,7 @@ namespace AscNet.GameServer.Handlers
|
||||||
[MessagePackObject(true)]
|
[MessagePackObject(true)]
|
||||||
public class DormEnterRequest
|
public class DormEnterRequest
|
||||||
{
|
{
|
||||||
|
public dynamic? Content;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MessagePackObject(true)]
|
[MessagePackObject(true)]
|
||||||
|
|
|
@ -182,9 +182,9 @@ namespace AscNet.GameServer.Handlers.Drops
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Progressive chance of getting the item based on item quality and commandant level
|
/// TODO: Progressive chance of getting the item based on item quality and commandant level
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static bool GetProgressiveChance(int level, int quality)
|
static bool GetProgressiveChance(int level, int quality)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue