Refactored poweractions

This commit is contained in:
2024-09-05 15:25:29 -04:00
parent 0fd6dfb648
commit 82cefce424
3 changed files with 8 additions and 17 deletions
@@ -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