mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-11 21:45:43 -04:00
Fixed some more stuff
This commit is contained in:
@@ -119,12 +119,12 @@ public class DevService implements INetworkDispatch {
|
||||
return;
|
||||
case 2: // Items
|
||||
sendCharacterBuilderSUI(player, 2);
|
||||
return;
|
||||
return;
|
||||
|
||||
// Character
|
||||
case 10: // Set combat level to 90
|
||||
//core.playerService.grantLevel(player, 90); // Commented out until fixed
|
||||
core.playerService.giveExperience(player, 999999999);
|
||||
core.playerService.grantLevel(player, 90); // Commented out until fixed
|
||||
//core.playerService.giveExperience(player, 999999999);
|
||||
return;
|
||||
case 11: // Give 100,000 credits
|
||||
player.setCashCredits(player.getCashCredits() + 100000);
|
||||
|
||||
@@ -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