// priority: 0
"use strict";

const registerAdAstraMaterials = (event) => {

	event.create('armalcolite')
		.gem(2)
		.components('1x magnesium', '1x rutile', '1x ilmenite')
		.color(0x443333)
		.secondaryColor(0x5e2c21)
		.iconSet(GTMaterialIconSet.getByName('tfc_emerald'))
		.ore()
		.addOreByproducts('rutile', 'rutile', 'ilmenite')

	// #region ad astra ores

	// moon
	event.create('desh')
		.components('2x olivine', '1x rutile', '4x nitrogen')
		.color(0xF39A4C)
		.secondaryColor(0xF35A6C)
		.iconSet(GTMaterialIconSet.getByName('tfc_hematite'))
		.ore()
		.addOreByproducts('olivine', 'rutile', 'rutile')
		.ingot()
		.liquid()
		.blastTemp(2000, 'low', GTValues.VA[GTValues.MV])
		.flags(
			GTMaterialFlags.FORCE_GENERATE_BLOCK, 
			GTMaterialFlags.GENERATE_PLATE, 
			GTMaterialFlags.GENERATE_ROD,
			GTMaterialFlags.GENERATE_DENSE,
			GTMaterialFlags.GENERATE_GEAR,
			GTMaterialFlags.GENERATE_FRAME,
			GTMaterialFlags.DISABLE_ALLOY_BLAST
		)

	// mars
	event.create('ostrum')
		//.components('3x scheelite', '2x hematite', '2x thorium', '4x oxygen')
		.color(0xbd7980)
		.secondaryColor(0xA66C8D)
		.iconSet(GTMaterialIconSet.getByName('tfc_cassiterite'))
		.dust()
		.ingot()
		.liquid()
		.blastTemp(2900, 'mid', GTValues.VA[GTValues.HV])
		.flags(
			GTMaterialFlags.FORCE_GENERATE_BLOCK, 
			GTMaterialFlags.GENERATE_PLATE,
			GTMaterialFlags.DISABLE_ALLOY_BLAST

		)

	// venus?
	event.create('calorite')
		//.components('2x mercury', '1x tungsten', '1x rhodium', '2x sulfur')
		.color(0xC94D4E)
		.secondaryColor(0x9A296A)
		.iconSet(GTMaterialIconSet.getByName('tfc_copper'))
		.ore()
		.ingot()
		.flags(
			GTMaterialFlags.FORCE_GENERATE_BLOCK,
			GTMaterialFlags.GENERATE_PLATE
		)

	// ???
	event.create('etrium')
		//.components('1x niobium', '1x molybdenum', '1x ruthenium', '3x carbon', '1x monochloramine')
		.color(0x7BFCD7)
		.secondaryColor(0x3582D2)
		.iconSet(GTMaterialIconSet.getByName('tfc_silver'))
		.ore()
		.ingot()
		.flags(
			GTMaterialFlags.FORCE_GENERATE_BLOCK,
			GTMaterialFlags.GENERATE_PLATE, 
			GTMaterialFlags.GENERATE_ROD
		)

	// #endregion
}