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 tank types that can only contain EC #2915

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions GameData/RealismOverhaul/RO_RealFuels.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,38 @@ TANK_DEFINITION
}
}

+TANK_DEFINITION[SM-I]:FIRST
{
@name = Battery-I
}

+TANK_DEFINITION[SM-II]:FIRST
{
@name = Battery-II
}

+TANK_DEFINITION[SM-III]:FIRST
{
@name = Battery-III
}

+TANK_DEFINITION[SM-IV]:FIRST
{
@name = Battery-IV
}

@TANK_DEFINITION[Battery-I|Battery-II|Battery-III|Battery-IV]:FIRST
{
!highlyPressurized = DEL
!addResources = DEL
!addResourcesHP = DEL
!addResourcesSM = DEL
!addLead = DEL
!addPayload = DEL
!addSoundingPayload = DEL
@maxUtilization = 100
}

// PARTUPGRADEs for available types
// ServiceModule Upgrades
PARTUPGRADE
Expand Down Expand Up @@ -552,6 +584,47 @@ PARTUPGRADE
description = Level IV Service Module Tanks are similar to ones used by Apollo. These are heavy tanks with poor utilization that simulates the supporting structures and systems needed for the specialized payloads. <b><color=green>Max Utilization: 75% </color><color=white>Can Hold Satellite Payload, Electric Charge, and Life Support Supplies</b></color> These are 45% lighter than level III service module tanks while costing 14% more to tool and 7% more once tooled.
}

// PARTUPGRADEs for available types
// Battery Upgrades
PARTUPGRADE
{
name = RFTech-Battery-II
partIcon = RO-RFTank-Separate
techRequired = electronicsHuman
entryCost = 0
cost = 0
title = Battery Tank Upgrade
basicInfo = You can now use level II Battery tanks
manufacturer = Generic
description = Level II Battery Tanks are similar to ones used by Mercury and Vostok.
}

PARTUPGRADE
{
name = RFTech-Battery-III
partIcon = RO-RFTank-Separate
techRequired = electronicsAdvCapsules
entryCost = 0
cost = 0
title = Battery Tank Upgrade
basicInfo = You can now use level III Battery tanks
manufacturer = Generic
description = Level III Battery Tanks are similar to ones used by Gemini and Voskhod.
}

PARTUPGRADE
{
name = RFTech-Battery-IV
partIcon = RO-RFTank-Separate
techRequired = electronicsLunar
entryCost = 0
cost = 0
title = Battery Tank Upgrade
basicInfo = You can now use level IV Battery tanks
manufacturer = Generic
description = Level IV Battery Tanks are similar to ones used by Apollo.
}

PARTUPGRADE
{
name = RFTech-AddLifeSupport
Expand Down
35 changes: 35 additions & 0 deletions GameData/RealismOverhaul/RO_RealFuels_PartConfigs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,41 @@
}
}

@PART:HAS[#roTankType[battery]]:FOR[RealismOverhaulTankTypes]
{
@description = Specialized tanks for batteries. There are different levels of batteries that you can unlock. Each tank type has a different base mass, different cost, and different amounts of utilization it can have.

@MODULE[ModuleFuelTanks]
{
type = Battery-I
typeAvailable = Battery-I
%UPGRADES
{
UPGRADE
{
name__ = RFTech-Battery-II
description__ = You can now use level II Battery tanks
IsAdditiveUpgrade__ = true
typeAvailable = Battery-II
}
UPGRADE
{
name__ = RFTech-Battery-III
description__ = You can now use level III Battery tanks
IsAdditiveUpgrade__ = true
typeAvailable = Battery-III
}
UPGRADE
{
name__ = RFTech-Battery-IV
description__ = You can now use level IV Battery tanks
IsAdditiveUpgrade__ = true
typeAvailable = Battery-IV
}
}
}
}

@PART:HAS[#roTankTypeDescription]:FOR[RealismOverhaulTankTypes]
{
@description = #$roTankTypeDescription$
Expand Down
Loading