Search in sources :

Example 6 with DC_QuickItemAction

use of eidolons.entity.active.DC_QuickItemAction in project Eidolons by IDemiurge.

the class AnimMaster3d method getPotionKey.

private static String getPotionKey(DC_ActiveObj activeObj) {
    DC_QuickItemAction action = (DC_QuickItemAction) activeObj;
    boolean full = action.getItem().getIntParam(PARAMS.CHARGES) != 0;
    String suffix = full ? "_full" : "_half";
    return action.getItem().getName().replace(" ", "_") + suffix;
}
Also used : DC_QuickItemAction(eidolons.entity.active.DC_QuickItemAction)

Aggregations

DC_QuickItemAction (eidolons.entity.active.DC_QuickItemAction)6 ObjType (main.entity.type.ObjType)2 DC_WeaponObj (eidolons.entity.item.DC_WeaponObj)1 DC_Obj (eidolons.entity.obj.DC_Obj)1 COUNTER (main.content.enums.entity.UnitEnums.COUNTER)1