mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-15 00:07:39 -04:00
Added "Reset expertise" option to frog
This commit is contained in:
@@ -77,6 +77,7 @@ public class DevService implements INetworkDispatch {
|
||||
case 1: // Character
|
||||
suiOptions.put((long) 10, "Set combat level to 90");
|
||||
suiOptions.put((long) 11, "Give 100,000 credits");
|
||||
suiOptions.put((long) 12, "Reset expertise");
|
||||
break;
|
||||
case 2: // Items
|
||||
suiOptions.put((long) 20, "(Light) Jedi Robe");
|
||||
@@ -127,6 +128,9 @@ public class DevService implements INetworkDispatch {
|
||||
case 11: // Give 100,000 credits
|
||||
player.setCashCredits(player.getCashCredits() + 100000);
|
||||
return;
|
||||
case 12: // Reset expertise
|
||||
resetExpertiseSkills(player);
|
||||
return;
|
||||
|
||||
// Items
|
||||
case 20: // (Light) Jedi Robe
|
||||
@@ -273,7 +277,17 @@ public class DevService implements INetworkDispatch {
|
||||
|
||||
core.suiService.openSUIWindow(window);
|
||||
}
|
||||
|
||||
public void resetExpertiseSkills(CreatureObject creature)
|
||||
{
|
||||
for(int i = creature.getSkills().size() - 1; i >= 0; i-- )
|
||||
{
|
||||
String skill = creature.getSkills().get(i);
|
||||
if(skill.contains("expertise")) creature.removeSkill(skill);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void insertOpcodes(Map<Integer, INetworkRemoteEvent> swgOpcodes, Map<Integer, INetworkRemoteEvent> objControllerOpcodes) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user