Browse Source

More PowerEntry work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
c0560ece47
  1. 9
      src/engine/wpak/PowersParser.java
  2. 19
      src/engine/wpak/data/EquipmentPreReq.java

9
src/engine/wpak/PowersParser.java

@ -10,6 +10,7 @@ package engine.wpak; @@ -10,6 +10,7 @@ package engine.wpak;
import engine.gameManager.ConfigManager;
import engine.mbEnums;
import engine.wpak.data.EquipmentPreReq;
import engine.wpak.data.PowerAction;
import engine.wpak.data.PowerData;
import engine.wpak.data.PowerEntry;
@ -180,6 +181,14 @@ public class PowersParser { @@ -180,6 +181,14 @@ public class PowersParser {
powerEntry.slopeType = arguments[0];
powerEntry.curve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
break;
case "EQPREREQ":
EquipmentPreReq equipmentPreReq = new EquipmentPreReq();
arguments = lineValues[1].trim().split(" ");
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(arguments[0]);
equipmentPreReq.skill = arguments[1].trim();
equipmentPreReq.level = Integer.parseInt(lineValues[2].trim());
break;
case "SOUNDS":
case "APPLYEFFECTOTHER":
case "FIZZLEOTHER":

19
src/engine/wpak/data/EquipmentPreReq.java

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2024
// www.magicbane.com
package engine.wpak.data;
import engine.mbEnums;
public class EquipmentPreReq {
public static mbEnums.EquipSlotType slot;
public static String skill;
public static int level;
}
Loading…
Cancel
Save