Browse Source

added missing source types

feature-config-usage
FatBoy-DOTC 2 weeks ago
parent
commit
ef234beeb7
  1. 4
      src/engine/mbEnums.java
  2. 5
      src/engine/wpak/PowersParser.java

4
src/engine/mbEnums.java

@ -1016,7 +1016,9 @@ public class mbEnums {
Wizardry, Wizardry,
HealthRecoverRate, HealthRecoverRate,
ManaRecoverRate, ManaRecoverRate,
StaminaRecoverRate; StaminaRecoverRate,
MeleeDamageModifier,
PowerDamageModifier;
public static SourceType GetSourceType(String modName) { public static SourceType GetSourceType(String modName) {
SourceType returnMod; SourceType returnMod;

5
src/engine/wpak/PowersParser.java

@ -156,7 +156,7 @@ public class PowersParser {
if(power.powerBase.equalsIgnoreCase("none")) if(power.powerBase.equalsIgnoreCase("none"))
continue; continue;
String loggerString = "PARSING: " + power.powerBase + " KEY: " + key; String loggerString = "PARSING: " + power.powerBase + " KEY: " + key;
Logger.info(loggerString); try {
switch (key) { switch (key) {
case "ACTION": case "ACTION":
actionEntry = new ActionEntry(); actionEntry = new ActionEntry();
@ -298,6 +298,9 @@ public class PowersParser {
default: default:
Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id); Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id);
} }
}catch(Exception e){
Logger.info(loggerString + " ERROR: " + e);
}
} }
// Parse power conditions // Parse power conditions

Loading…
Cancel
Save