From b9c4791eaab567c418c067eb3e2c1e1cd3025a0b Mon Sep 17 00:00:00 2001 From: sven-n Date: Sun, 6 Oct 2024 17:28:39 +0200 Subject: [PATCH] removed commented code --- .../RemoteView/ItemSerializerExtended.cs | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/src/GameServer/RemoteView/ItemSerializerExtended.cs b/src/GameServer/RemoteView/ItemSerializerExtended.cs index 258f21f22..2eb476e84 100644 --- a/src/GameServer/RemoteView/ItemSerializerExtended.cs +++ b/src/GameServer/RemoteView/ItemSerializerExtended.cs @@ -211,40 +211,6 @@ private OptionFlags GetOptionFlags(Item item) return result; } - //private static byte GetExcellentByte(Item item) - //{ - // byte result = 0; - // var excellentOptions = item.ItemOptions.Where(o => o.ItemOption?.OptionType == ItemOptionTypes.Excellent || o.ItemOption?.OptionType == ItemOptionTypes.Wing); - - // foreach (var option in excellentOptions) - // { - // result |= (byte)(1 << (option.ItemOption!.Number - 1)); - // } - - // return result; - //} - - //private static byte GetFenrirByte(Item item) - //{ - // byte result = 0; - // if (item.ItemOptions.Any(o => o.ItemOption?.OptionType == ItemOptionTypes.BlackFenrir)) - // { - // result |= BlackFenrirFlag; - // } - - // if (item.ItemOptions.Any(o => o.ItemOption?.OptionType == ItemOptionTypes.BlueFenrir)) - // { - // result |= BlueFenrirFlag; - // } - - // if (item.ItemOptions.Any(o => o.ItemOption?.OptionType == ItemOptionTypes.GoldFenrir)) - // { - // result |= GoldFenrirFlag; - // } - - // return result; - //} - private static byte GetHarmonyByte(Item item) { byte result = 0; @@ -430,12 +396,6 @@ public byte Harmony set => this._data[this.HarmonyIndex] = value; } - //public byte Guardian - //{ - // get => this.Options.HasFlag(OptionFlags.HasGuardian) ? this._data[this.GuardianIndex] : default; - // set => this._data[this.GuardianIndex] = value; - //} - public byte SocketBonus { get => this.Options.HasFlag(OptionFlags.HasSockets) ? (byte)((this._data[this.SocketStartIndex] & 0xF0) >> 4) : default; @@ -498,8 +458,6 @@ public int Length private int HarmonyIndex => this.Options.HasFlag(OptionFlags.HasHarmony) ? this.AncientIndex + 1 : this.AncientIndex; - //private int GuardianIndex => this.Options.HasFlag(OptionFlags.HasGuardian) ? this.HarmonyIndex + 1 : this.HarmonyIndex; - private int SocketStartIndex => this.Options.HasFlag(OptionFlags.HasSockets) ? this.HarmonyIndex + 1 : this.HarmonyIndex; }