What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to get ItemStats for +%Spells? "ElementalArrow" for instance

doesntdoit

New Member
Joined
Apr 29, 2014
Messages
14
Reaction score
0
Looking at making some additions to cachedACDItem.cs so that items with spell affixes on them can be used in loot rules.

For instance, an M6 helm drops - I want to be able to read the % affix of "ElementalArrow" or "ClusterArrow" if there is one.


At the moment there doesn't seem to be a way to do this - Any ideas?
 
Take a look at ItemRules\Interpreter.cs

in particular the line

itemDic.Add("[SKILLDMG%]", SkillBySlot.GetSkillDamagePercent(item));

I would add an overload in SkillbySlot to leverage the dictionary of applicable spells to items - so that interpreter doesn't have to check the attribute (can be costly) for skills we know are impossible to appear on a particular item.

SkillBySlot.GetSkillDamagePercent(item, Skills.DemonHunter.ClusterArrow);

or you could just add them straight into interpreter

itemDic.Add("[FRENZY%]", item.GetSkillDamageIncrease(SNOPower.Barbarian_Frenzy));
 
Last edited:
Back
Top