Skip to content

BDB contracts patch not working for all contracts #5

@Morphisor244

Description

@Morphisor244

I noticed that not all BDB contracts were generating correctly. The cause is that the tech node patches are being incorrectly addressed. I've fixed the issue on my own install and will provide it here, just so I don't need to fork the whole thing for this. Just replace everything inside the bdb_contracts.cfg file with this:


// patch to fix tech requirements in bdb contracts

@CONTRACT_TYPE[BDB_AIMP]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_mag1
}
}
@CONTRACT_TYPE[BDB_Apollo]:NEEDS[Bluedog_DB]
{
@requirement[AllB]
{
@requirement[TechResearchedA]
{
@Tech = gptt_surface1
}
@requirement[TechResearchedB]
{
@Tech = gptt_liquid2
}
}
}
@CONTRACT_TYPE[BDB_Corona_KH1]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_film1
}
@requirement[Any]
{
@requirement[TechResearchedB]
{
@Tech = gptt_film2
}
@requirement[TechResearchedC]
{
@Tech = gptt_film3
}
}
}
@CONTRACT_TYPE[BDB_Corona_KH4]:NEEDS[Bluedog_DB]
{
@requirement[Any]
{
@requirement[TechResearchedA]
{
@Tech = gptt_film2
}
@requirement[TechResearchedB]
{
@Tech = gptt_film3
}
}
}
@CONTRACT_TYPE[BDB_Gambit]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_film2
}
}
@CONTRACT_TYPE[BDB_Gemini_ATV]:NEEDS[Bluedog_DB]
{
@requirement[All]
{
@requirement[TechResearchedA]
{
@Tech = gptt_dock1
}
@requirement[TechResearchedB]
{
@Tech = gptt_scienceMat1
}
}
}
@CONTRACT_TYPE[BDB_Lunar_Orbiter]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_film2
}
}
@CONTRACT_TYPE[BDB_Mariner]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_scienceEnv
}
}
@CONTRACT_TYPE[BDB_Nimbus]:NEEDS[Bluedog_DB]
{
@requirement[Any]
{
@requirement[TechResearchedA]
{
@Tech = gptt_atmo2
}
@requirement[TechResearchedB]
{
@Tech = gptt_film4
}
}
}
@CONTRACT_TYPE[BDB_GeoStudy]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_sciRad1
}
}
@CONTRACT_TYPE[BDB_SolarStudy]:NEEDS[Bluedog_DB]
{
@requirement[Any]
{
@requirement[TechResearchedA]
{
@Tech = gptt_sciRad2
}
@requirement[TechResearchedB]
{
@Tech = gptt_atmo1
}
}
}
@CONTRACT_TYPE[BDB_Ranger_Block2]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_film2
}
}
@CONTRACT_TYPE[BDB_Ranger]:NEEDS[Bluedog_DB]
{
@requirement[TechResearched]
{
@Tech = gptt_mag1
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions