mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-12 02:13:48 -04:00
Added some medic specials, minor combat fixes
This commit is contained in:
@@ -77,6 +77,7 @@ public class CombatCommand extends BaseSWGCommand {
|
||||
private String cooldownGroup;
|
||||
private float executeTime;
|
||||
private float warmupTime;
|
||||
private float vigorCost; // for commando kill meter and bm specials
|
||||
|
||||
public CombatCommand(String commandName) {
|
||||
super(commandName);
|
||||
@@ -135,6 +136,7 @@ public class CombatCommand extends BaseSWGCommand {
|
||||
bypassArmor = (Float) visitor.getObject(i, 48);
|
||||
healthCost = (Float) visitor.getObject(i, 54);
|
||||
actionCost = (Float) visitor.getObject(i, 55);
|
||||
setVigorCost((Float) visitor.getObject(i, 56));
|
||||
dotType = (String) visitor.getObject(i, 60);
|
||||
dotIntensity = (Integer) visitor.getObject(i, 61);
|
||||
dotDuration = (Integer) visitor.getObject(i, 62);
|
||||
@@ -695,6 +697,14 @@ public class CombatCommand extends BaseSWGCommand {
|
||||
public void setWarmupTime(float warmupTime) {
|
||||
this.warmupTime = warmupTime;
|
||||
}
|
||||
|
||||
public float getVigorCost() {
|
||||
return vigorCost;
|
||||
}
|
||||
|
||||
public void setVigorCost(float vigorCost) {
|
||||
this.vigorCost = vigorCost;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -140,6 +140,18 @@ public class CommandService implements INetworkDispatch {
|
||||
|
||||
}
|
||||
|
||||
public BaseSWGCommand getCommandByName(String name) {
|
||||
|
||||
Vector<BaseSWGCommand> commands = new Vector<BaseSWGCommand>(commandLookup); // copy for thread safety
|
||||
|
||||
for(BaseSWGCommand command : commands) {
|
||||
if(command.getCommandName().equalsIgnoreCase(name))
|
||||
return command;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
private void processCombatCommand(CreatureObject attacker, SWGObject target, CombatCommand command, int actionCounter, String commandArgs) {
|
||||
|
||||
boolean success = true;
|
||||
|
||||
Reference in New Issue
Block a user