Skip to content

Commit

Permalink
Swappable converter overhaul
Browse files Browse the repository at this point in the history
* Deprecated old converter classes
* Created new converter classes
* Updated/cleaned up part configs
* Refactored monitor and manager classes
* Made kolony growth a standalone part module
  • Loading branch information
DoktorKrogg committed Oct 29, 2018
1 parent a1fbed6 commit 3998688
Show file tree
Hide file tree
Showing 36 changed files with 1,561 additions and 1,368 deletions.
114 changes: 53 additions & 61 deletions FOR_RELEASE/GameData/UmbraSpaceIndustries/LifeSupport/LSModule.cfg
Expand Up @@ -2,122 +2,114 @@
{
MODULE
{
name = ModuleLifeSupport
name = USI_SwapController
}
MODULE
{
name = USI_SwappableBay
bayName = Bay 1
moduleIndex = 0
}
MODULE
{
name = USI_Converter
UseSpecialistBonus = false
}

MODULE
{
name = ModuleHabitation
BaseKerbalMonths = 21
CrewCapacity = 4
BaseHabMultiplier = 0
name = USILS_HabitationSwapOption
ConverterName = Habitat
StartActionName = Start Habitat
StopActionName = Stop Habitat

BaseKerbalMonths = 21
CrewCapacity = 4
BaseHabMultiplier = 0

INPUT_RESOURCE
{
ResourceName = ElectricCharge
Ratio = 0.525
}
}

MODULE
{
name = USI_ModuleFieldRepair
}
}

@PART[cupola]
{
MODULE
{
name = ModuleLifeSupport
name = USI_SwapController
}
MODULE
{
name = USI_SwappableBay
bayName = Bay 1
moduleIndex = 0
}
MODULE
{
name = USI_Converter
UseSpecialistBonus = false
}

MODULE
{
name = ModuleHabitation
BaseKerbalMonths = 0
CrewCapacity = 2
BaseHabMultiplier = 1.65
name = USILS_HabitationSwapOption
ConverterName = Habitat
StartActionName = Start Habitat
StopActionName = Stop Habitat

BaseKerbalMonths = 0
CrewCapacity = 2
BaseHabMultiplier = 1.65

INPUT_RESOURCE
{
ResourceName = ElectricCharge
Ratio = 0.0825
}
}


MODULE
{
name = USI_ModuleFieldRepair
}
}

@PART[Large_Crewed_Lab]
{
MODULE
{
name = ModuleLifeSupport
name = USI_SwapController
}

MODULE
{
name = ModuleLifeSupportRecycler
CrewCapacity = 4
RecyclePercent = .5
name = USI_SwappableBay
bayName = Bay 1
moduleIndex = 0
}
MODULE
{
name = USI_Converter
UseSpecialistBonus = false
}
MODULE
{
name = USILS_LifeSupportRecyclerSwapOption
ConverterName = Life Support
tag = Life Support
StartActionName = Start Life Support
StopActionName = Stop Life Support

CrewCapacity = 4
RecyclePercent = 0.5

INPUT_RESOURCE
{
ResourceName = ElectricCharge
Ratio = 1
}
}

MODULE
{
name = USI_ModuleFieldRepair
}
}

@PART[*]:HAS[!MODULE[ModuleLifeSupport],#CrewCapacity[*],~CrewCapacity[0]]:FOR[USILifeSupport]
{
MODULE
{
name = ModuleLifeSupport
}

MODULE
{
name = USI_ModuleFieldRepair
}
}

@PART[*]:HAS[!MODULE[ModuleLifeSupport],MODULE[KerbalSeat]]:FOR[USILifeSupport]
{
MODULE
{
name = ModuleLifeSupport
}

MODULE
{
name = USI_ModuleFieldRepair
}
}

@PART[MiniISRU]
{
MODULE
{
name = ModuleResourceConverter_USI
name = ModuleResourceConverter
ConverterName = Fertilizer
StartActionName = Start ISRU [Ore -> Fertilizer]
StopActionName = Stop ISRU [Ore -> Fertilizer]
Expand Down
@@ -1,49 +1,48 @@
PART
{
name = Fert_Tank_125
module = Part
author = RoverDude
name = Fert_Tank_125
module = Part
author = RoverDude

MODEL
{
model = UmbraSpaceIndustries/LifeSupport/Assets/FertTank125
}

rescaleFactor = 1
MODEL
{
model = UmbraSpaceIndustries/LifeSupport/Assets/FertTank125
}

node_attach = 0,0,0.6,0,0,-1,1
node_stack_top = 0.0, .25, 0.0, 0.0, 1.0, 0.0, 1
node_stack_bottom = 0.0, -.25, 0.0, 0.0, -1.0, 0.0, 1
rescaleFactor = 1

node_attach = 0,0,0.6,0,0,-1,1
node_stack_top = 0.0, .25, 0.0, 0.0, 1.0, 0.0, 1
node_stack_bottom = 0.0, -.25, 0.0, 0.0, -1.0, 0.0, 1

TechRequired = survivability
entryCost = 3000
cost = 500
category = none
subcategory = 0
title = Fertilizer Tank (1.25)
manufacturer = USI - Life Support Division
description = A tank filled to the brim with Super-Gro Fertilizer. It's what plants crave!
attachRules = 1,1,1,1,0
tags = cck-lifesupport
// --- standard part parameters ---
mass = 0.1
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 2000 // = 3000
bulkheadProfiles = size1,srf
TechRequired = survivability
entryCost = 3000
cost = 500
category = none
subcategory = 0
title = Fertilizer Tank (1.25)
manufacturer = USI - Life Support Division
description = A tank filled to the brim with Super-Gro Fertilizer. It's what plants crave!
attachRules = 1,1,1,1,0
tags = cck-lifesupport
// --- standard part parameters ---
mass = 0.1
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 2000 // = 3000
bulkheadProfiles = size1,srf
RESOURCE
{
name = Fertilizer
amount = 500
maxAmount = 500
}
MODULE
{
name = USI_ModuleResourceWarehouse
}
RESOURCE
{
name = Fertilizer
amount = 500
maxAmount = 500
}
}
@@ -1,49 +1,48 @@
PART
{
name = Fert_Tank_250
module = Part
author = RoverDude
name = Fert_Tank_250
module = Part
author = RoverDude

MODEL
{
model = UmbraSpaceIndustries/LifeSupport/Assets/FertTank250
}

rescaleFactor = 1
MODEL
{
model = UmbraSpaceIndustries/LifeSupport/Assets/FertTank250
}

node_attach = 0,0,1.2,0,0,-1,2
node_stack_top = 0.0, .5, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, -.5, 0.0, 0.0, -1.0, 0.0, 2
rescaleFactor = 1

node_attach = 0,0,1.2,0,0,-1,2
node_stack_top = 0.0, .5, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, -.5, 0.0, 0.0, -1.0, 0.0, 2

TechRequired = survivability
entryCost = 3000
cost = 1000
category = none
subcategory = 0
title = Fertilizer Tank (2.5)
manufacturer = USI - Life Support Division
description = A tank filled to the brim with Super-Gro Fertilizer. It's what plants crave!
attachRules = 1,1,1,1,0
tags = cck-lifesupport
// --- standard part parameters ---
mass = 0.9
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 2000 // = 3000
bulkheadProfiles = size2,srf
TechRequired = survivability
entryCost = 3000
cost = 1000
category = none
subcategory = 0
title = Fertilizer Tank (2.5)
manufacturer = USI - Life Support Division
description = A tank filled to the brim with Super-Gro Fertilizer. It's what plants crave!
attachRules = 1,1,1,1,0
tags = cck-lifesupport
// --- standard part parameters ---
mass = 0.9
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 2000 // = 3000
bulkheadProfiles = size2,srf
RESOURCE
{
name = Fertilizer
amount = 4500
maxAmount = 4500
}
MODULE
{
name = USI_ModuleResourceWarehouse
}
RESOURCE
{
name = Fertilizer
amount = 4500
maxAmount = 4500
}
}

0 comments on commit 3998688

Please sign in to comment.