use of main.content.values.properties.MACRO_PROPS in project Eidolons by IDemiurge.
the class Party method toBase.
@Override
public void toBase() {
super.toBase();
if (game.isSimulation()) {
afterEffects();
} else {
// apply macro mode effects!
if (MacroManager.isMacroGame()) {
for (Unit h : members) {
RestMasterOld.applyMacroModeContinuous(h);
}
}
}
setParam(MACRO_PARAMS.CONSUMPTION, getParamSum(MACRO_PARAMS.CONSUMPTION, false));
setParam(MACRO_PARAMS.TRAVEL_SPEED, getMinParam(MACRO_PARAMS.TRAVEL_SPEED, false));
setParam(MACRO_PARAMS.EXPLORE_SPEED, getMaxParam(MACRO_PARAMS.EXPLORE_SPEED, false));
if (macroParty != null) {
for (PROPERTY p : propMap.keySet()) {
if (p instanceof MACRO_PROPS) {
macroParty.setProperty(p, getProperty(p));
}
}
for (PARAMETER p : paramMap.keySet()) {
if (p instanceof MACRO_PARAMS) {
macroParty.setParam(p, getParam(p));
}
}
}
// calculateWeight();
// calculateSpeed();
}
Aggregations