mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-10 00:13:42 -04:00
Characters start with 5% block, dodge, evasion, parry, critical and strikethrough chance #178
This commit is contained in:
+10
@@ -121,6 +121,7 @@ public class SkillModService extends Service {
|
||||
|
||||
updateLevelHAMValues(creature, newLevel, profession);
|
||||
updateLevelSkillModValues(creature, newLevel, profession, race);
|
||||
grantBaseCombatChances(creature);
|
||||
}
|
||||
|
||||
@IntentHandler
|
||||
@@ -215,6 +216,15 @@ public class SkillModService extends Service {
|
||||
}
|
||||
}
|
||||
|
||||
private void grantBaseCombatChances(CreatureObject creatureObject) {
|
||||
creatureObject.adjustSkillmod("display_only_block", 500, 0);
|
||||
creatureObject.adjustSkillmod("display_only_dodge", 500, 0);
|
||||
creatureObject.adjustSkillmod("display_only_evasion", 500, 0);
|
||||
creatureObject.adjustSkillmod("display_only_parry", 500, 0);
|
||||
creatureObject.adjustSkillmod("display_only_critical", 500, 0);
|
||||
creatureObject.adjustSkillmod("display_only_strikethrough", 500, 0);
|
||||
}
|
||||
|
||||
private int getLevelSkillModValue(int level, String professionModName, String raceModName){
|
||||
int skillModValue = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user