mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed some more stuff
This commit is contained in:
@@ -710,17 +710,61 @@ public class PlayerService implements INetworkDispatch {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*creature.setMaxHealth((int) health + healthGranted);
|
||||
creature.setHealth(creature.getMaxHealth());
|
||||
creature.setMaxAction((int) action);
|
||||
creature.setAction(creature.getMaxAction());
|
||||
creature.setGrantedHealth(healthGranted);
|
||||
|
||||
core.skillModService.addSkillMod(creature, "luck", (int) luck);
|
||||
core.skillModService.addSkillMod(creature, "precision", (int) precision);
|
||||
core.skillModService.addSkillMod(creature, "strength", (int) strength);
|
||||
core.skillModService.addSkillMod(creature, "constitution", (int) constitution);
|
||||
core.skillModService.addSkillMod(creature, "stamina", (int) stamina);
|
||||
core.skillModService.addSkillMod(creature, "agility", (int) agility);
|
||||
creature.setMaxHealth((int) health + healthGranted);
|
||||
creature.setHealth(creature.getMaxHealth());
|
||||
creature.setMaxAction((int) action);
|
||||
creature.setAction(creature.getMaxAction());
|
||||
core.skillModService.addSkillMod(creature, "agility", (int) agility);*/
|
||||
if (luck >= 1) {
|
||||
core.skillModService.addSkillMod(creature, "luck", (int) luck);
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_0", (int) luck, 0);
|
||||
}
|
||||
|
||||
if (precision >= 1) {
|
||||
core.skillModService.addSkillMod(creature, "precision", (int) precision);
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_1", (int) precision, 0);
|
||||
}
|
||||
|
||||
if (strength >= 1) {
|
||||
core.skillModService.addSkillMod(creature, "strength", (int) strength);
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_2", (int) strength, 0);
|
||||
}
|
||||
|
||||
if (constitution >= 1) {
|
||||
core.skillModService.addSkillMod(creature, "constitution", (int) constitution);
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_3", (int) constitution, 0);
|
||||
}
|
||||
|
||||
if (stamina >= 1) {
|
||||
core.skillModService.addSkillMod(creature, "stamina", (int) stamina);
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_4", (int) stamina, 0);
|
||||
}
|
||||
|
||||
if (agility >= 1) {
|
||||
core.skillModService.addSkillMod(creature, "agility", (int) agility);
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_5", (int) agility, 0);
|
||||
}
|
||||
|
||||
if (health >= 1) {
|
||||
creature.setMaxHealth((creature.getMaxHealth() + (int) health + (healthGranted - creature.getGrantedHealth())));
|
||||
creature.setHealth(creature.getMaxHealth());
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_6", (((int) health) + (((int) constitution)) + (((int) stamina))), 0);
|
||||
}
|
||||
|
||||
if (action >= 1) {
|
||||
creature.setMaxAction((creature.getMaxAction() + (int) action));
|
||||
creature.setAction(creature.getMaxAction());
|
||||
creature.sendSystemMessage("spam", "level_up_stat_gain_7", (((int) action) + (((int) stamina) * 8) + (((int) constitution) * 2)), 0);
|
||||
}
|
||||
|
||||
creature.setGrantedHealth(healthGranted);
|
||||
|
||||
System.out.print("Health: " + creature.getHealth());
|
||||
|
||||
Reference in New Issue
Block a user