Search in sources :

Example 1 with MACRO_PARAMS

use of main.content.values.parameters.MACRO_PARAMS 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();
}
Also used : MACRO_PROPS(main.content.values.properties.MACRO_PROPS) PROPERTY(main.content.values.properties.PROPERTY) MACRO_PARAMS(main.content.values.parameters.MACRO_PARAMS) Unit(eidolons.entity.obj.unit.Unit) PARAMETER(main.content.values.parameters.PARAMETER)

Aggregations

Unit (eidolons.entity.obj.unit.Unit)1 MACRO_PARAMS (main.content.values.parameters.MACRO_PARAMS)1 PARAMETER (main.content.values.parameters.PARAMETER)1 MACRO_PROPS (main.content.values.properties.MACRO_PROPS)1 PROPERTY (main.content.values.properties.PROPERTY)1