Skip to content

Commit

Permalink
feat(packets): add missing 0xaa StateAdd packet
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 4, 2020
1 parent ad5d3a2 commit c31f565
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/packets/src/packets-pod/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,14 @@ export const StateEnd = Diablo2Packet.create(0xa9, 'StateEnd', {
// POD Specific?
unk1: bp.u8,
});

export const StateAdd = Diablo2Packet.create(0xaa, 'StateAdd', {
unitType: bp.u8,
unitId: bp.lu32,
packetLength: bp.variable('count', bp.u8),
stateEffects: bp.array('StateEffects', bp.u8, 'count', true),
});

export const NpcHeal = Diablo2Packet.create(0xab, 'NpcHeal', { unitType: bp.u8, unitId: bp.lu32, unitLife: bp.u8 });
export const NpcAssign = new Diablo2Packet(0xac, 'NpcAssign', new DataTypeNpc());
export const GameTerminated = Diablo2Packet.empty(0xb0, 'GameTerminated');
Expand Down Expand Up @@ -554,6 +562,7 @@ export const ServerPacketsPod = {
StateDelayed,
StateSet,
StateEnd,
StateAdd,
NpcHeal,
NpcAssign,
GameTerminated,
Expand Down

0 comments on commit c31f565

Please sign in to comment.