Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Snacks! #17

Closed
LouisCyfer opened this issue Aug 31, 2017 · 1 comment
Closed

Add support for Snacks! #17

LouisCyfer opened this issue Aug 31, 2017 · 1 comment
Assignees

Comments

@LouisCyfer
Copy link
Contributor

LouisCyfer commented Aug 31, 2017

As proposed here Snacks might be cool to have in CC

Either adding a simple new category "SnacksLS" or one that is rather complex but more reasonable, both will do the job.

first way:

TANKTYPE:NEEDS[Snacks] 
{
	name = SnacksLS
	UsefulVolumeRatio = 0.95
	TankCostPerSurface = 2
	AddMassPerVolume = 0.003
	PossibleResources = Snacks 1; Soil 1;
}
TANKCONF:NEEDS[Snacks]
{
	name = Snacks and Soil
	TANK
	{
		TankType = SnacksLS
		CurrentResource = Snacks
		InitialAmount = 1
		Volume = 50
	}
	TANK
	{
		TankType = SnacksLS
		CurrentResource = Soil
		InitialAmount = 0
		Volume = 50
	}
}

second way:

  • modify the Soil definition like this (I'm still unable to make the specific Soil --> Soil from Snacks! mod have UsefulVolumeRatio = 0.95, please help me out there)
TANKTYPE
{
	name = Soil
	UsefulVolumeRatio = 1
	TankCostPerSurface = 2
	PossibleResources = Ore 0.185; //cfd
}
@TANKTYPE[Soil]:NEEDS[KolonyTools] //cfd
{ @PossibleResources ^= :$: Dirt 1; Mulch 1; Fertilizer 1; ExoticMinerals 1; MetallicOre 1; Substrate 1; Minerals 1; Polymers 1; Hydrates 1; Gypsum 1; Silicates 1; Silicon 1; Organics 1; RefinedExotics  1;: }
@TANKTYPE[Soil]:NEEDS[WarpPlugin]
{ @PossibleResources ^= :$: Alumina 1;: } //cfd
@TANKTYPE[Soil]:NEEDS[Launchpad]
{ @PossibleResources ^= :$: MetalOre 0.7;: } //cfd
// @TANKTYPE[Soil]:NEEDS[Snacks]
// { @PossibleResources ^= :$: Soil 1;: }

// unsure how to implent the UsefulVolumeRatio = 0.95 Soil has same values as Snacks
TANKTYPE:NEEDS[Snacks] 
{
	name = Soil
	UsefulVolumeRatio = 0.95 // has same values as Snacks - arb
	PossibleResources = Soil 1;
}
TANKTYPE:NEEDS[TacLifeSupport|USILifeSupport|Snacks] //arb
@TANKTYPE[Food]:NEEDS[Snacks] // SnacksLS - arb
{ @PossibleResources ^= :$: Snacks 1;: }
TANKCONF:NEEDS[Snacks]
{
	name = Snacks and Soil
	TANK
	{
		TankType = Food
		CurrentResource = Snacks
		InitialAmount = 1
		Volume = 50
	}
	TANK
	{
		TankType = Soil
		CurrentResource = Soil
		InitialAmount = 0
		Volume = 50
	}
}

ty for your time!

@allista allista self-assigned this Aug 31, 2017
@allista
Copy link
Owner

allista commented Nov 11, 2017

Added in last release.

@allista allista closed this as completed Nov 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants