Browse Source

calculate modified and base skill values

lakebane-ai
FatBoy-DOTC 3 weeks ago
parent
commit
fea39ffa85
  1. 6
      src/engine/objects/PlayerCombatStats.java

6
src/engine/objects/PlayerCombatStats.java

@ -729,12 +729,6 @@ public class PlayerCombatStats {
level += amount; level += amount;
//add any bonuses to the skill
Enum.SourceType sourceType = Enum.SourceType.GetSourceType(skillBase.getNameNoSpace());
if(sourceType != null && pc.bonuses != null) {
level += pc.bonuses.getFloat(Enum.ModType.Skill, sourceType);
level *= (1 + pc.bonuses.getFloatPercentAll(Enum.ModType.Skill, sourceType));
}
return Math.round(level); return Math.round(level);
} }
public static int calculateBuffedSkillLevel(String skillName, PlayerCharacter pc){ public static int calculateBuffedSkillLevel(String skillName, PlayerCharacter pc){

Loading…
Cancel
Save