public static void Postfix(ItemCommon __instance, ref string __result) { if (!Enabled) { return; } try { var giftOptions = GetGiftOptions(__instance.ID) .OrderByDescending(p => p.Value.FeeLevel) .ThenByDescending(p => p.Value.FavorValue) .Distinct(p => p.Key) .ToList(); if (giftOptions.Any()) { __result = __result == null ? "" : __result + "\n\n"; __result += @"Gifting: ".Colored("#7fdbff"); __result += giftOptions.Select(p => FormatGiftOption(p.Value, p.Key)).StringJoin(", "); } } catch (Exception exception) { Main.Logger.Exception(exception); } }
public ItemEyeableInfo(ItemCommon item) { this.eyeableInfo = new EyeableInfo(item); this.vel = item.Vel; }