Example #1
0
        static int getDescriptionWidth(int __result, Item __instance)
        {
            // increase the width so that effect descriptions stay on one line and do not break
            if (ItemDefinitions.GetEffect(__instance, out IEffect effect))
            {
                return(Math.Max(__result, EffectHelper.getDescriptionWidth(effect)));
            }

            return(__result);
        }