ddon-server/Arrowgene.Ddon.GameServer/Handler/ItemSortSetItemSortdataBinHandler.cs
Ryan Yappert 52efa51fa6
Fix: Bugfix Stack 08-21 ~ 09-02 (#958)
* Improve /godmode to also heal to full.
Add the moon phase name to /time.
Address edge bug in /fashion.
Fix bugs in /il and /sl chat commands.

Fix bug involving leftover invite records when joining an EntryBoard.
Fix bug when selling the materials gained from recycling equipment.
Fix BBM mangling inventory sort data.
Fix null reference edge case in InstanceGatheringItemManager::EmptySpots.
Fix key doors not properly sharing their state with party members.
Fix missing profile information when examining potential pawn hires.
Fix issue where certain pawn data handlers didn't properly return all the sub-notices they should.

When embodying BBM items that can stack (in unusual circumstances), attempt to merge stacks when possible.
Identify Seabell as the Extreme Mission Group 3.
Move the base stats from CharacterManager to CharacterCommon so they're a bit more convenient to access for CData conversions.

Add Megado Craft Room to safe stages.

Fix missing furniture crafting recipes that would normally be unlocked by achievements. Fix mis-attributed node for hunt board quests.
Expose the training room monsters as a new asset.
Fix missing Num for slayer stone crafting recipes.
Fix illegal items being handed out as part of S3 area supply rewards.

Cache the last LobbyLobbyDataMsg and gather it alongside contexts when you move into a hub to prevent players who were doing emotes from being invisible.
Don't allow writing the transient PawnState.Party to the DB; always write PawnState.None instead.
Make sure hub memory is wiped when changing game modes, to prevent ghost characters from standing around.
Be more consistent about only providing the clan short namein certain spots?

* Packet research: C2SConnectionPingReq, S2C_GET_CHEAT_INFO_REQ, C2S_GET_CHEAT_INFO_RES, CDataCycleContentsNews.

* Review comments.

* Expose BBM GG reset cost as setting at request.
2025-09-17 02:17:30 -07:00

25 lines
1 KiB
C#

using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Shared.Entity.PacketStructure;
using Arrowgene.Ddon.Shared.Model;
using Arrowgene.Logging;
namespace Arrowgene.Ddon.GameServer.Handler
{
public class ItemSortSetItemSortDataBinHandler : GameRequestPacketHandler<C2SItemSortSetItemSortDataBinReq, S2CItemSortSetItemSortDataBinRes>
{
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(ItemSortSetItemSortDataBinHandler));
public ItemSortSetItemSortDataBinHandler(DdonGameServer server) : base(server)
{
}
public override S2CItemSortSetItemSortDataBinRes Handle(GameClient client, C2SItemSortSetItemSortDataBinReq request)
{
Storage storage = client.Character.Storage.GetStorage(request.SortData.StorageType);
storage.SortData = request.SortData.Bin;
Server.Database.UpdateStorage(client.Character.ContentCharacterId, request.SortData.StorageType, storage);
return new();
}
}
}