Skip to content

Commit

Permalink
tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolony committed May 20, 2024
1 parent bc107f7 commit dc3cbe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/bytezone/wizardry/ExperienceCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ private void setExperienceTotal ()
int expUnaffect = values[MAGIC_RESISTANCE] == 0 ? 0
: getBonus (40, (values[MAGIC_RESISTANCE] / 10 + 1));

int expFlags1 = getBonus (35, Integer.bitCount (values[RESISTANCE] & 0x7E)); // 6 bits
int expFlags2 = getBonus (40, Integer.bitCount (values[ABILITY] & 0x7F)); // 7 bits
int expFlags1 = getBonus (35, Integer.bitCount (values[RESISTANCE] & 0x7E)); // 6 bits
int expFlags2 = getBonus (40, Integer.bitCount (values[ABILITY] & 0x7F)); // 7 bits

int total = expHitPoints + expAc + expMage + expPriest + expDrain + expHeal
+ expDamage + expUnaffect + expFlags1 + expFlags2;
Expand Down

0 comments on commit dc3cbe3

Please sign in to comment.