Hi
I want to show all gems to pick them up.
I changed ItemsPlugin to shem them as other utility items, simple enough:
Code:
if (item.SnoItem.HasGroupCode("uber") || item.SnoItem.HasGroupCode("riftkeystone") || item.SnoItem.HasGroupCode("gems"))
{
UtilityDecorator.Paint(layer, item, item.FloorCoordinate, GetItemName(item));
}
Imgur: The magic of the Internet
Is it possible to have this customized in PluginEnablerOrDisablerPlugin so that do not have to do it again and again.
OFC it is easy to create my own plugin for this but it is just waste of CPU cycles as work would be done twice.
As a mobile game programmer myself it hurts to see code like this where a collection is hit twice in a loop when one query would be enough.
Code:
foreach (var item in items)
{
var inSet = Hud.Game.Me.ArmorySets.Any(set => set.ContainsItem(item));
if (inSet)
{
InArmorySetDecorator.Paint(layer, item, item.FloorCoordinate, Hud.Game.Me.ArmorySets.First(set => set.ContainsItem(item)).Name);
continue;
}
...
And I don't get the idea for InArmorySetDecorator at all.
If you drop the very same item you had equipped when an armory set was saved, it is shown in the ground with large red circle and cross.
But if you drop similar item it is not highlighted at all.
So only use for this seems to me is that you do not accidentally drop your items to the floor
But you can salvage them without any warnings still.