KerbalKore / CWPT

Cold War Progression
GNU General Public License v3.0
1 stars 4 forks source link

Structuring idea #6

Closed KerbalKore closed 4 years ago

KerbalKore commented 4 years ago

A set of MM patches that on the :FIRST tag for example the BDB LR87-5 as techtag = titan 2 on the :FOR tag @PART:HAS[techtag=titan2]:FOR[CWPT] { techrequired = titan2 } and the :AFTER would remove the techtag field :LAST would be saved for making precision adjustments

KerbalKore commented 4 years ago

@DeltaDizzy @IronCretin what do you think

DeltaDizzy commented 4 years ago
@PART[name]:FIRST:NEEDS[mod]
{
    techTag = x
}
@PART:HAS[#techtag[x]]:NEEDS[mod]
{
    @techRequired = y
}

@KerbalKore like this?

KerbalKore commented 4 years ago

@DeltaDizzy Yep. Then:


@PART[name]:LAST:NEEDS[mod]
{
    !techtag[x]
}
KerbalKore commented 4 years ago

As well, BDB stuff will make this easier due to naming conventions. ex:


@PART[bluedog_Titan2*]:FIRST:NEEDS:[BluedogDesignBureau]
{
    techtag = titan2
}
DeltaDizzy commented 4 years ago

Wait why are we deleting the tag?

KerbalKore commented 4 years ago

For cleanliness. in RO they use a similiar system and delete the tags afterwards to avoid issues

KerbalKore commented 4 years ago

Now that this is being implemented, I’m closing this issue