Search in sources :

Example 56 with PROPERTY

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();
}
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)

Example 57 with PROPERTY

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);
}
Also used : PROPERTY(main.content.values.properties.PROPERTY)

Aggregations

PROPERTY (main.content.values.properties.PROPERTY)57 PARAMETER (main.content.values.parameters.PARAMETER)23 ObjType (main.entity.type.ObjType)17 OBJ_TYPE (main.content.OBJ_TYPE)6 ArrayList (java.util.ArrayList)5 VALUE (main.content.VALUE)5 Ref (main.entity.Ref)5 DC_TYPE (main.content.DC_TYPE)4 Node (org.w3c.dom.Node)4 DC_SpellObj (eidolons.entity.active.DC_SpellObj)3 Unit (eidolons.entity.obj.unit.Unit)3 XLinkedMap (main.data.XLinkedMap)3 Obj (main.entity.obj.Obj)3 EnumMaster (main.system.auxiliary.EnumMaster)3 AddBuffEffect (eidolons.ability.effects.attachment.AddBuffEffect)2 ModifyPropertyEffect (eidolons.ability.effects.common.ModifyPropertyEffect)2 File (java.io.File)2 List (java.util.List)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 MOD_PROP_TYPE (main.ability.effects.Effect.MOD_PROP_TYPE)2