mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
Removed Reset Expertise From Frog
This is no longer needed now that you can respec expertise properly from NPC.
This commit is contained in:
@@ -31,7 +31,6 @@ import java.util.Vector;
|
||||
import org.apache.mina.core.buffer.IoBuffer;
|
||||
import org.apache.mina.core.session.IoSession;
|
||||
|
||||
import protocol.swg.ExpertiseRequestMessage;
|
||||
import resources.common.Console;
|
||||
import resources.common.FileUtilities;
|
||||
import resources.common.Opcodes;
|
||||
@@ -79,7 +78,6 @@ 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, "Armor");
|
||||
@@ -171,18 +169,7 @@ public class DevService implements INetworkDispatch {
|
||||
case 11: // Give 100,000 credits
|
||||
player.setCashCredits(player.getCashCredits() + 100000);
|
||||
return;
|
||||
case 12: // Reset expertise
|
||||
// Seefo->Light: I commented out the below line because it gave us an error and didn't properly remove the skill, could you try the method SWGList.reverseGet that I added?
|
||||
//player.getSkills().get().stream().filter(s -> s.contains("expertise")).forEach(s -> core.skillService.removeSkill(creature, s));
|
||||
|
||||
// Using this for now
|
||||
for(int i = creature.getSkills().size() - 1; i >= 0; i-- )
|
||||
{
|
||||
String skill = creature.getSkills().get(i);
|
||||
if(skill.contains("expertise")) core.skillService.removeSkill(player, skill);
|
||||
}
|
||||
return;
|
||||
|
||||
|
||||
// Items
|
||||
case 20: // Armor
|
||||
sendCharacterBuilderSUI(player, 5);
|
||||
|
||||
Reference in New Issue
Block a user