public IList <byte> ToByteArray() { List <byte> result = new List <byte>(23); result.Add((byte)Type); result.Add((byte)BraveFaith); result.Add(idBytes[0]); result.Add(idBytes[1]); result.Add(PriceIndex1); result.Add(PriceIndex2); result.Add(MinDays); result.Add(MaxDays); result.Add(idBytes[2]); result.Add((byte)BaseSmallReward); result.Add((byte)(internalReward == Reward.Nothing ? Reward.Gil : internalReward)); result.Add((byte)(EligibleForBonusCash ? 0x01 : 0x00)); result.Add((byte)BaseLargeReward); result.Add(idBytes[3]); result.Add(idBytes[4]); result.Add(Unknown0x0F); result.Add((byte)Town); result.Add((byte)PrereqType); result.Add(idBytes[5]); result.Add(dontCareByte); result.Add((byte)RandomSuccessClass); result.Add(WhenUnlocked.ToByte()); result.Add(PrereqByte); return(result.AsReadOnly()); }
protected List <byte> ToByteArray() { List <byte> result = new List <byte>(12); result.Add(Palette); result.Add(Graphic); result.Add(EnemyLevel); result.Add(PatcherLib.Utilities.Utilities.ByteFromBooleans(weapon, shield, head, body, accessory, blank1, rare, blank2)); result.Add(SecondTableId); result.Add((byte)ItemType); result.Add(Unknown1); result.Add(SIA); result.AddRange(Price.ToBytes()); result.Add(ShopAvailability.ToByte()); result.Add(Unknown2); return(result); }