-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add cancel handler - Fix bug when party ready/unready logic - Add missing connectionIn to DB queries - Fix argument id in om command - Fix issue where repop NTC was only sent to the player who killed the enemy. - Changed certain OM update packets to only send to the client who requested. - Fix barrier purchase so it only unlocks for the person who bought.
- Loading branch information
1 parent
ebd1277
commit 423eb1e
Showing
17 changed files
with
165 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
Arrowgene.Ddon.GameServer/Handler/SeasonDungeonSoulOrdealCancelReadyHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using Arrowgene.Ddon.Server; | ||
using Arrowgene.Ddon.Shared.Entity.PacketStructure; | ||
using Arrowgene.Ddon.Shared.Model.EpitaphRoad; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class SeasonDungeonSoulOrdealCancelReadyHandler : GameRequestPacketHandler<C2SSeasonDungeonSoulOrdealCancelReadyReq, S2CSeasonDungeonSoulOrdealCancelReadyRes> | ||
{ | ||
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(SeasonDungeonSoulOrdealCancelReadyHandler)); | ||
|
||
public SeasonDungeonSoulOrdealCancelReadyHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override S2CSeasonDungeonSoulOrdealCancelReadyRes Handle(GameClient client, C2SSeasonDungeonSoulOrdealCancelReadyReq request) | ||
{ | ||
if (client.IsPartyLeader()) | ||
{ | ||
Server.DungeonManager.EndPartyReadyCheck(client.Party); | ||
|
||
client.Party.SendToAll(new S2CSeasonDungeonEndSoulOrdealNtc() | ||
{ | ||
EndState = SoulOrdealEndState.Cancel | ||
}); | ||
} | ||
else | ||
{ | ||
Server.DungeonManager.MarkNotReady(client.Party, client.Character); | ||
#if false | ||
client.Send(new S2CSeasonDungeonEndSoulOrdealNtc() | ||
{ | ||
EndState = SoulOrdealEndState.Cancel | ||
}); | ||
#endif | ||
} | ||
|
||
return new S2CSeasonDungeonSoulOrdealCancelReadyRes() | ||
{ | ||
Unk0 = true | ||
}; | ||
} | ||
} | ||
} | ||
|
3 changes: 0 additions & 3 deletions
3
Arrowgene.Ddon.GameServer/Handler/SeasonDungeonUpdateKeyPointDoorStatusHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Arrowgene.Ddon.Shared/Entity/PacketStructure/C2SSeasonDungeonSoulOrdealCancelReadyReq.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Arrowgene.Buffers; | ||
using Arrowgene.Ddon.Shared.Network; | ||
|
||
namespace Arrowgene.Ddon.Shared.Entity.PacketStructure | ||
{ | ||
public class C2SSeasonDungeonSoulOrdealCancelReadyReq : IPacketStructure | ||
{ | ||
public C2SSeasonDungeonSoulOrdealCancelReadyReq() | ||
{ | ||
} | ||
|
||
public PacketId Id => PacketId.C2S_SEASON_DUNGEON_SOUL_ORDEAL_CANCEL_READY_REQ; | ||
|
||
public uint Unk0 { get; set; } | ||
|
||
public class Serializer : PacketEntitySerializer<C2SSeasonDungeonSoulOrdealCancelReadyReq> | ||
{ | ||
public override void Write(IBuffer buffer, C2SSeasonDungeonSoulOrdealCancelReadyReq obj) | ||
{ | ||
WriteUInt32(buffer, obj.Unk0); | ||
} | ||
|
||
public override C2SSeasonDungeonSoulOrdealCancelReadyReq Read(IBuffer buffer) | ||
{ | ||
C2SSeasonDungeonSoulOrdealCancelReadyReq obj = new C2SSeasonDungeonSoulOrdealCancelReadyReq(); | ||
obj.Unk0 = ReadUInt32(buffer); | ||
return obj; | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
Arrowgene.Ddon.Shared/Entity/PacketStructure/S2CSeasonDungeonSoulOrdealCancelReadyRes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Arrowgene.Buffers; | ||
using Arrowgene.Ddon.Shared.Network; | ||
|
||
namespace Arrowgene.Ddon.Shared.Entity.PacketStructure | ||
{ | ||
public class S2CSeasonDungeonSoulOrdealCancelReadyRes : ServerResponse | ||
{ | ||
public override PacketId Id => PacketId.S2C_SEASON_DUNGEON_SOUL_ORDEAL_CANCEL_READY_RES; | ||
|
||
public S2CSeasonDungeonSoulOrdealCancelReadyRes() | ||
{ | ||
} | ||
|
||
public bool Unk0 { get; set; } | ||
|
||
public class Serializer : PacketEntitySerializer<S2CSeasonDungeonSoulOrdealCancelReadyRes> | ||
{ | ||
public override void Write(IBuffer buffer, S2CSeasonDungeonSoulOrdealCancelReadyRes obj) | ||
{ | ||
WriteServerResponse(buffer, obj); | ||
WriteBool(buffer, obj.Unk0); | ||
} | ||
|
||
public override S2CSeasonDungeonSoulOrdealCancelReadyRes Read(IBuffer buffer) | ||
{ | ||
S2CSeasonDungeonSoulOrdealCancelReadyRes obj = new S2CSeasonDungeonSoulOrdealCancelReadyRes(); | ||
ReadServerResponse(buffer, obj); | ||
obj.Unk0 = ReadBool(buffer); | ||
return obj; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters