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;
}
Aggregations