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

Remove max level requirements on tracking station for skopos contracts #2521

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Clayell
Copy link
Contributor

@Clayell Clayell commented Feb 17, 2025

Related: #2489

There already exists a spot in RP-1 where this is done with the Astronaut Complex for the First EVA contract, where minLevel is specified but maxLevel is not:

REQUIREMENT
{
name = FacilityEVA
type = Facility
facility = AstronautComplex
minLevel = 4
checkOnActiveContract = false
}

The contract configurator code also seems to be correctly set up to handle this situation:
https://github.com/KSP-RO/ContractConfigurator/blob/2d4ee9c189da88dc2edf08fd44b8ec6ac26fec1c/source/ContractConfigurator/Requirement/FacilityRequirement.cs#L63-L65
requirementmet is true if (((no minlevel) or (level ge minlevel)) and ((no maxlevel) or (level le maxlevel)))

This should be better for future proofing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant