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

5
src/engine/wpak/PowersParser.java

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

Loading…
Cancel
Save