use of main.content.values.properties.PROPERTY 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();
}
use of main.content.values.properties.PROPERTY in project Eidolons by IDemiurge.
the class AnimationConstructor method findResourceForSpell.
public static String findResourceForSpell(DC_SpellObj spell, String partPath, String size, PROPERTY[] props, String pathRoot, boolean closest) {
String path = StringMaster.buildPath(pathRoot, partPath);
// spell.getTargeting();
String file = null;
for (PROPERTY p : props) {
String name = spell.getProperty(p);
if (name.isEmpty())
continue;
file = FileManager.findFirstFile(path, name, closest);
if (file != null) {
break;
}
name = spell.getProperty(p);
file = FileManager.findFirstFile(path, name, closest);
if (file != null) {
break;
}
name = spell.getProperty(p) + " " + partPath + size;
file = FileManager.findFirstFile(path, name, closest);
if (file != null) {
break;
}
}
if (CoreEngine.isJar())
System.out.println(pathRoot + " root; file found " + file);
return file;
// return findResourceForSpell(spell, partPath, size, props, pathRoot, true);
}
Aggregations