diff --git a/IntelOrca.Biohazard.BioRand/RECV/ReCvRandomiser.cs b/IntelOrca.Biohazard.BioRand/RECV/ReCvRandomiser.cs index af7cfbe3..0cf9775b 100644 --- a/IntelOrca.Biohazard.BioRand/RECV/ReCvRandomiser.cs +++ b/IntelOrca.Biohazard.BioRand/RECV/ReCvRandomiser.cs @@ -244,17 +244,11 @@ void SetInventoryItem(int index, byte type, byte quantity) { rrdt!.AdditionalOpcodes.Add(new UnknownOpcode(0, 0xC7, new byte[] { 0x00, type, 0x00 })); } - if (type != 0 && HasQuantity(type)) + if (type != 0) { rrdt.AdditionalOpcodes.Add(new UnknownOpcode(0, 0xC9, new byte[] { type, quantity, 0x00 })); } } - - bool HasQuantity(byte type) - { - var mask = ItemAttribute.Ammo | ItemAttribute.Gunpowder | ItemAttribute.InkRibbon | ItemAttribute.Weapon; - return (ItemHelper.GetItemAttributes(type) & mask) != 0; - } } private unsafe void TestEdits()