Browse Source

More PowerEntry work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
4b888b3d92
  1. 12
      src/engine/wpak/PowersParser.java

12
src/engine/wpak/PowersParser.java

@ -138,6 +138,18 @@ public class PowersParser {
case "MaxLevel": case "MaxLevel":
powerEntry.maxLevel = Integer.parseInt(lineValues[1].trim()); powerEntry.maxLevel = Integer.parseInt(lineValues[1].trim());
break; break;
case "HateValue":
arguments = lineValues[1].trim().split(" ");
powerEntry.hateValue = Integer.parseInt(arguments[0]);
powerEntry.hateCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
break;
case "LOOPANIMID":
powerEntry.loopAnimID = Integer.parseInt(lineValues[1].trim());
break;
case "GRANTOVERRIDEVAR":
powerEntry.grantOverrideVar = lineValues[1].trim();
break;
default: default:
Logger.error("Unhandled variable type:" + key); Logger.error("Unhandled variable type:" + key);
} }

Loading…
Cancel
Save