@@ -13,7 +13,46 @@ namespace DOL.GS
1313 /// </summary>
1414 public static class GamePlayerUtils
1515 {
16- private static readonly int [ ] _bonusesToBeDisplayed = [ 9 , 10 , 150 , 151 , 153 , 154 , 155 , 173 , 174 , 179 , 180 , 182 , 183 , 184 , 185 , 186 , 187 , 188 , 189 , 190 , 191 , 192 , 193 , 194 , 195 , 196 , 197 , 198 , 199 , 200 , 210 , 247 , 248 , 251 , 252 , 253 , 254 ] ;
16+ private static readonly HashSet < eProperty > _bonusesToBeDisplayed =
17+ [
18+ eProperty . MaxMana ,
19+ eProperty . MaxHealth ,
20+ eProperty . HealthRegenerationAmount ,
21+ eProperty . PowerRegenerationAmount ,
22+ eProperty . SpellRange ,
23+ eProperty . ArcheryRange ,
24+ eProperty . MeleeSpeed ,
25+ eProperty . MeleeDamage ,
26+ eProperty . RangedDamage ,
27+ eProperty . BladeturnReinforcement ,
28+ eProperty . DefensiveBonus ,
29+ eProperty . NegativeReduction ,
30+ eProperty . PieceAblative ,
31+ eProperty . ReactionaryStyleDamage ,
32+ eProperty . SpellPowerCost ,
33+ eProperty . StyleCostReduction ,
34+ eProperty . ToHitBonus ,
35+ eProperty . ArcherySpeed ,
36+ eProperty . ArrowRecovery ,
37+ eProperty . BuffEffectiveness ,
38+ eProperty . CastingSpeed ,
39+ eProperty . OffhandDamageAndChance ,
40+ eProperty . DebuffEffectiveness ,
41+ eProperty . Fatigue ,
42+ eProperty . HealingEffectiveness ,
43+ eProperty . PowerPool ,
44+ eProperty . ResistPierce ,
45+ eProperty . SpellDamage ,
46+ eProperty . SpellDuration ,
47+ eProperty . StyleDamage ,
48+ eProperty . MaxHealthCapBonus ,
49+ eProperty . BountyPoints ,
50+ eProperty . XpPoints ,
51+ eProperty . Conversion ,
52+ eProperty . StyleAbsorb ,
53+ eProperty . RealmPoints ,
54+ eProperty . ArcaneSyphon
55+ ] ;
1756
1857 #region Spot and Area Description / Translation
1958 /// <summary>
@@ -265,7 +304,7 @@ Outpost Bonuses
265304
266305 foreach ( eProperty property in Enum . GetValues < eProperty > ( ) )
267306 {
268- if ( player . ItemBonus [ property ] <= 0 || Array . BinarySearch ( _bonusesToBeDisplayed , ( int ) property ) < 0 )
307+ if ( player . ItemBonus [ property ] <= 0 || ! _bonusesToBeDisplayed . Contains ( property ) )
269308 continue ;
270309
271310 if ( property is eProperty . PowerPool )
0 commit comments