Search in sources :

Example 1 with MicroGame

use of main.game.core.game.MicroGame in project Eidolons by IDemiurge.

the class ItemGenerator method createItem.

public DC_HeroItemObj createItem(ObjType type, Ref ref, boolean addMaterialParams) {
    // if (addMaterialParams)//if building from blueprint type
    // type = generateItem_(quality, material, type, params, mod_params);
    MicroGame game = (MicroGame) ref.getGame();
    DC_HeroItemObj item = (type.getOBJ_TYPE_ENUM() == DC_TYPE.WEAPONS) ? new DC_WeaponObj(type, ref.getPlayer(), game, ref) : new DC_ArmorObj(type, ref.getPlayer(), game, ref);
    return item;
}
Also used : DC_WeaponObj(eidolons.entity.item.DC_WeaponObj) MicroGame(main.game.core.game.MicroGame) DC_HeroItemObj(eidolons.entity.item.DC_HeroItemObj) DC_ArmorObj(eidolons.entity.item.DC_ArmorObj)

Aggregations

DC_ArmorObj (eidolons.entity.item.DC_ArmorObj)1 DC_HeroItemObj (eidolons.entity.item.DC_HeroItemObj)1 DC_WeaponObj (eidolons.entity.item.DC_WeaponObj)1 MicroGame (main.game.core.game.MicroGame)1