Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Oct 6, 2024
1 parent a180127 commit b9c4791
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions src/GameServer/RemoteView/ItemSerializerExtended.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b9c4791

Please sign in to comment.