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

Station Science #1684

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
42 changes: 42 additions & 0 deletions GameData/RP-0/Contracts/RP0_Contract_Resources.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,32 @@ RESOURCE_DEFINITION
volume = 1
}

// =================================================================
// Resources related to the station science mechanics
// =================================================================

RESOURCE_DEFINITION
{
name = ResearchPayload
density = 0.001
unitCost = 2.0
flowMode = ALL_VESSEL
transfer = NONE
isTweakable = true
volume = 1
}

RESOURCE_DEFINITION
{
name = ProcessedPayload
density = 0.005
unitCost = 0.0
flowMode = ALL_VESSEL
transfer = NONE
isTweakable = true
fillable = false
volume = 10
}


@TANK_DEFINITION[Fuselage|ServiceModule]:FOR[RP-0]:NEEDS[RealFuels]
Expand All @@ -59,6 +85,22 @@ RESOURCE_DEFINITION
{
-addPayload = DEL
TANK
{
name = ResearchPayload
utilization = 1
fillable = True
amount = 0.0
maxAmount = 0.0
}
TANK
{
name = ProcessedPayload
utilization = 1
fillable = True
amount = 0.0
maxAmount = 0.0
}
TANK
{
name = ComSatPayload
utilization = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CONTRACT_TYPE
{
type = Vessel
requiredValue = true
targetVessel1 = AllVessels().Where(v => v.VesselType() == Station && v.FreeDockingPorts()>0 && (v.ResourceCapacity(Food) / v.ResourceQuantity(Food))>0.26 || (v.ResourceCapacity(Water) / v.ResourceQuantity(Water))>0.26 || (v.ResourceCapacity(Oxygen) / v.ResourceQuantity(Oxygen))>0.26).Random()
targetVessel1 = AllVessels().Where(v => v.VesselType() == Station && v.FreeDockingPorts()>0 && (v.ResourceCapacity(Food) / v.ResourceQuantity(Food))<0.26 || (v.ResourceCapacity(Water) / v.ResourceQuantity(Water))<0.26 || (v.ResourceCapacity(Oxygen) / v.ResourceQuantity(Oxygen))<0.26).Random()
title = Must have an open Docking Port and 25% or less of Life Support Supplies
}
DATA
Expand Down