Skip to content

Commit

Permalink
Fix RE 1 item opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Mar 24, 2024
1 parent 5989a28 commit 9ef8a69
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/IntelOrca.Biohazard/Script/Opcodes/ItemAotSetOpcode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public class ItemAotSetOpcode : OpcodeBase, IItemAotSetOpcode
public byte Action { get; set; }

public ulong Re1Unk0C { get; set; }
public uint Re1Unk14 { get; set; }
public byte Re1Unk14 { get; set; }
public byte Re1Unk15 { get; set; }
public byte Re1Unk17 { get; set; }
public byte TakeAnimation { get; set; }
public uint Re1Unk19 { get; set; }

Expand All @@ -44,7 +46,10 @@ public static ItemAotSetOpcode Read(BinaryReader br, int offset)
op.Type = br.ReadByte();
op.Amount = br.ReadByte();
op.Re1Unk0C = br.ReadUInt64();
op.Re1Unk14 = br.ReadUInt32();
op.Re1Unk14 = br.ReadByte();
op.Re1Unk15 = br.ReadByte();
op.GlobalId = br.ReadByte();
op.Re1Unk17 = br.ReadByte();
op.TakeAnimation = br.ReadByte();
op.Re1Unk19 = br.ReadByte();
return op;
Expand Down Expand Up @@ -89,8 +94,11 @@ public override void Write(BinaryWriter bw)
bw.Write((byte)Amount);
bw.Write(Re1Unk0C);
bw.Write(Re1Unk14);
bw.Write(Re1Unk15);
bw.Write((byte)GlobalId);
bw.Write(Re1Unk17);
bw.Write(TakeAnimation);
bw.Write(Re1Unk19);
bw.Write((byte)Re1Unk19);
}
else
{
Expand Down

0 comments on commit 9ef8a69

Please sign in to comment.