-
Member
Remove AncientRank (A & P) from unidentified items only
Hello All!
Is it possible to remove the AncientRank text "A" for ancient and "P" for primal from unidentified items only?
I know absolutely zero about programming and code, but I did notice "item.Unidentified" mentioned, which leads me to believe it's possible...
I love having the AncientRank present on the gear that is already identified but I find myself wanting to slightly prolong the disappointment that the item I just found isn't the primal I wanted... Looking to build suspense I suppose?
Any help will be greatly appreciated!
Thanks
-
Just need to add this line to the file in plugins/User/PluginEnablerOrDisablePlugin.cs
Code:
Hud.GetPlugin<InventoryAndStashPlugin>().AncientRankEnabled = false;
Here's the whole file:
Code:
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// *.txt files are not loaded automatically by TurboHUD
// you have to change this file's extension to .cs to enable it
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
{
public PluginEnablerOrDisablerPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
// "Customize" methods are automatically executed after every plugin is loaded.
// So these methods can use Hud.GetPlugin<class> to access the plugin instances' public properties (like decorators, Enabled flag, parameters, etc)
// Make sure you test the return value against null!
public void Customize()
{
/*
// basic examples
// turn on MultiplayerExperienceRangePlugin
Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(true);
// turn off sell darkening
Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
// disable arcane affix label
Hud.GetPlugin<EliteMonsterAffixPlugin>().AffixDecorators.Remove(MonsterAffix.Arcane);
// override an elite affix's text
Hud.GetPlugin<EliteMonsterAffixPlugin>().CustomAffixNames.Add(MonsterAffix.Desecrator, "DES");
*/
Hud.GetPlugin<InventoryAndStashPlugin>().AncientRankEnabled = false;
}
}
}
Edit: Just noticed you mentioned on unidentified only. That would take a custom plugin I believe.
-
Post Thanks / Like - 1 Thanks
cow_kng (1 members gave Thanks to Xewl for this useful post)
-
Member
Yea I had already tried your suggestion and I agree, whatever it is that needs to be done is beyond my ability. Thanks for responding though!
-
Member
Just checking back! Anyone have a solution?
-
Member
Add this in InventoryAndStashPlugin.cs, right after
var ancientRankText = ancientRank == 1 ? "AAA" : "PPP";
if (!item.Unidentified) { ancientRankText = " " }
-
Member
Hey thanks for the response! No luck on my end though. It is a possibility that I have made some rookie mistake while inputting your suggestion, but I have since attempted a few format variations and still nothing. Well, not nothing, but not the desired effect.
The result (somehow) removed the ancient rank from all identified items in my stash and inventory while still leaving the Caldessan's rank.
Somehow or another it almost did the exact opposite of what I was shooting for hahaha...
I'm not able to include a screenshot because my .png image is the wrong .jpeg fornat? Wtf does that mean?? Of course it's wrong... it's a .png... SIlly forum.
It is attempting to do something - I just have to figure out how to change it from my currently equipped items, to unidentified ones .
-
Member
sorry, I got two mistakes.
var ancientRankText = ancientRank == 1 ? "A" : "P"; // find this line
if (item.Unidentified) { ancientRankText = " "; } // just add this line after that.
this will work fine
-
Post Thanks / Like - 2 Thanks
-
Member
Works like a charm! Thank you very much .