fixed a tooltip bug from earlier
This commit is contained in:
1 parent
d916a47af8
commit
cc73dda111
1 file changed
+6
-15
@@ -1166,21 +1166,12 @@ namespace CalamityMod.Items
|
||||
IsModifier = true
|
||||
};
|
||||
|
||||
try
|
||||
{
|
||||
// Insert the tooltip after the last prefix line
|
||||
// Goes to catch if index out of bounds, meaning it should just get tacked onto the end or there were no prefix tooltips
|
||||
tooltips.Insert(tooltips.IndexOf(line) + 1, StealthDmg);
|
||||
}
|
||||
catch
|
||||
{
|
||||
// If price/expert line doesn't exist, just add it to the end
|
||||
if (line2 == null)
|
||||
tooltips.Add(StealthDmg);
|
||||
// Otherwise, insert it right before the sell price (or expert line)
|
||||
else
|
||||
tooltips.Insert(tooltips.IndexOf(line2), StealthDmg);
|
||||
}
|
||||
// If price/expert line doesn't exist, just add it to the end
|
||||
if (line2 == null)
|
||||
tooltips.Add(StealthDmg);
|
||||
// Otherwise, insert it right before the sell price (or expert line)
|
||||
else
|
||||
tooltips.Insert(tooltips.IndexOf(line2), StealthDmg);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user