forked from MagicBane/Server
Refactored poweractions
This commit is contained in:
@@ -22,9 +22,9 @@ import engine.net.client.msg.PetMsg;
|
||||
import engine.objects.*;
|
||||
import engine.powers.ActionsBase;
|
||||
import engine.powers.PowersBase;
|
||||
import engine.wpak.data.PowerAction;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
|
||||
@@ -33,19 +33,11 @@ public class CreateMobPowerAction extends AbstractPowerAction {
|
||||
private int mobID;
|
||||
private int mobLevel;
|
||||
|
||||
public CreateMobPowerAction(ResultSet rs) throws SQLException {
|
||||
public CreateMobPowerAction(PowerAction rs) throws SQLException {
|
||||
super(rs);
|
||||
|
||||
this.mobID = rs.getInt("mobID");
|
||||
this.mobLevel = rs.getInt("mobLevel");
|
||||
}
|
||||
|
||||
public int getMobID() {
|
||||
return this.mobID;
|
||||
}
|
||||
|
||||
public int getMobLevel() {
|
||||
return this.mobLevel;
|
||||
this.mobID = rs.petRace;
|
||||
this.mobLevel = rs.petLevel;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user