// Propellium	0.354
// SpiceGas		0.000001251
// Water		0.001000000
// XenonGas		0.000100000

B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_PLM
	tankMass = 0.00007085
	tankCost = 0.15
	// percentFilled = 100
	RESOURCE
	{
		name = Propellium
		unitsPerVolume = 2.7
	}
}

B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_PLOX
	tankMass = 0.00007085
	tankCost = 0.15
	// percentFilled = 100
	RESOURCE
	{
		name = Propellium
		unitsPerVolume = 1.35
	}
	RESOURCE
	{
		name = Oxidizer
		unitsPerVolume = 0.45
	}
}
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_ATM
	tankMass = 0
	tankCost = 0
	// percentFilled = 100
	RESOURCE
	{
		name = Atmosphere
		unitsPerVolume = 1
	}
}
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_ATMC
	tankMass = 0
	tankCost = 0
	// percentFilled = 100
	RESOURCE
	{
		name = CompressedAtmosphere
		unitsPerVolume = 1
	}
}
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_XE
	tankMass =  0.000233745
	tankCost = 0
	RESOURCE
	{
		name = XenonGas
		unitsPerVolume = 3
	}
}
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_NIT
	tankMass = 0
	tankCost = 0
	// percentFilled = 100
	RESOURCE
	{
		name = Nitronite
		unitsPerVolume = 1
	}
}
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_OXM
	tankMass = 0
	tankCost = 0
	// percentFilled = 100
	RESOURCE
	{
		name = Oxium
		unitsPerVolume = 1
	}
}
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_H2O
	tankMass = 0.0004
	tankCost = 0.75
	RESOURCE
	{
		name = Water
		unitsPerVolume = 1
	}
}
// 0.4632
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_OX
	tankMass = 0
	tankCost = 0
	RESOURCE
	{
		name = Oxidizer
		unitsPerVolume = 1
		percentFilled = 100
	}
}

B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_RPT
	tankMass = 0
	tankCost = 0
	RESOURCE
	{
		name = Raptium
		unitsPerVolume = 5
	}
}
B9_TANK_TYPE:NEEDS[B9PartSwitch]
{
	name = DS_RLOX
	tankMass = 0
	tankCost = 0
	RESOURCE
	{
		name = Raptium
		unitsPerVolume = 1.875
	}
	RESOURCE
	{
		name = Oxidizer
		unitsPerVolume = 0.625
	}
}

@PART[ds00_pres_mk1|ds00_pres_mk2|ds00_pres_mk2adap|ds00_pres_srf1|ds00_pres_250]:NEEDS[B9PartSwitch]
{
	MODULE
	{
		name = ModuleB9PartSwitch
		moduleID = PressureTanks
		switcherDescription = Pressure Tank
		switchInFlight = True
		SUBTYPE
		{
			name = AtmoStandard
			tankType = DS_ATM
			title = Atmosphere
			primaryColor = LightGrey
			secondaryColor = LightGrey
		}
		SUBTYPE
		{
			name = AtmoCompressed
			tankType = DS_ATMC
			title = Compressed Atm
			primaryColor = LightGrey
			secondaryColor = LightGrey
		}
		SUBTYPE
		{
			name = Xenon
			tankType = DS_XE
			title = XenonGas
		}
		// SUBTYPE
		// {
			// name = LFO
			// tankType = DS_LFO
			// title = LiquidFuel+Oxidizer
		// }
		SUBTYPE
		{
			name = Water
			tankType = DS_H2O
			title = Water
			primaryColor = Ocean
			secondaryColor = Ocean
		}
		SUBTYPE
		{
			name = Oxium
			tankType = DS_OXM
			title = Oxium
			primaryColor = ResourceColorOxidizer
			secondaryColor = ResourceColorOxidizer
		}
		SUBTYPE
		{
			name = Nitronite
			tankType = DS_NIT
			title = Propellium
			primaryColor = ResourceColorMonoPropellant
			secondaryColor = ResourceColorMonoPropellant
		}
		SUBTYPE
		{
			name = Propellium
			tankType = DS_PLM
			title = Propellium
			primaryColor = Lightblue
			secondaryColor = Lightblue
		}
		SUBTYPE
		{
			name = HydroLOX
			tankType = DS_PLOX
			title = Propellium + Oxidizer
			primaryColor = Lightblue
			secondaryColor = ResourceColorOxidizer
		}
		SUBTYPE
		{
			name = Raptium
			tankType = DS_RPT
			title = Raptium
			primaryColor = PurpleyPink
			secondaryColor = PurpleyPink
		}
		SUBTYPE
		{
			name = RaptaLOX
			tankType = DS_RLOX
			title = Raptium + Oxidizer
			primaryColor = PurpleyPink
			secondaryColor = ResourceColorOxidizer
		}
	}
}

@PART[ds00_pres_mk1|ds00_pres_mk2|ds00_pres_mk2adap]:NEEDS[B9PartSwitch]:FOR[00DeepSky]
{
	@MODULE[ModuleB9PartSwitch]
	{
		baseVolume = 400 // x/2.1587
	}
}
@PART[ds00_pres_srf1]:NEEDS[B9PartSwitch]:FOR[00DeepSky]
{
	@MODULE[ModuleB9PartSwitch]
	{
		baseVolume = 120
	}
}
@PART[ds00_pres_250]:NEEDS[B9PartSwitch]:FOR[00DeepSky]
{
	@MODULE[ModuleB9PartSwitch]
	{
		baseVolume = 1450
	}
}