Skip to content

Commit

Permalink
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions GameData/RP-0/TestFlightRnD.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// ==================================================
// Set the global TF RnD settings.
// ==================================================

TFRNDSETTINGS
{
updateFrequency = 86400

TEAM
{
points = 10.0
costFactor = 5
}

TEAM
{
points = 12.5
costFactor = 7.5
}

TEAM
{
points = 15.0
costFactor = 10
}
}

// ==================================================
// Before pass: check if any parts are missing an
// entry cost field. If so, add one and tag them.
// ==================================================

@PART[*]:HAS[~entryCost[]]:BEFORE[zTestFlight]
{
%entryCost = 1

@description ^= :$: (Missing entryCost field)
}

// ==================================================
// After pass: fix up RnD.
// ==================================================

@PART[*]:HAS[@MODULE[TestFlightCore],#entryCost[*]]:AFTER[zTestFlight]
{
@MODULE[TestFlightCore],*
{
rndMaxData = 2500
rndCost = #$../cost$
@rndCost *= 0.00020
@rndCost += 0.15

tmp = #$../cost$
@tmp *= 20
@tmp != 0.25
rndRate = 6
@rndRate /= #$tmp$
!tmp = DEL
}
}

0 comments on commit f97b9b8

Please sign in to comment.