Skip to content

Commit

Permalink
Fix moon orbit optional in Uncrewed Lunar Surface sharing a count wit…
Browse files Browse the repository at this point in the history
…h the oribt contract in Early Lunar Probes, and fix it being trivially completable.
  • Loading branch information
NathanKell committed Jul 2, 2023
1 parent ae2afe5 commit dfbdcd9
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ CONTRACT_TYPE
DATA
{
type = int
index = $LunarOrbiterOptional_Count + 0
index = $LunarOrbiterMapperOptional_Count + 0
biomes = @index + 1
}

BEHAVIOUR
Expand All @@ -75,7 +76,7 @@ CONTRACT_TYPE

CONTRACT_COMPLETED_SUCCESS
{
LunarOrbiterOptional_Count = $LunarOrbiterOptional_Count + 1
LunarOrbiterMapperOptional_Count = $LunarOrbiterMapperOptional_Count + 1
}
}

Expand Down Expand Up @@ -112,9 +113,9 @@ CONTRACT_TYPE
targetBody = Moon
experiment = RP0visibleImaging2
situation = InSpaceLow
fractionComplete = 1
minSubjectsToComplete = 1
title = Have at least 1 Visible Imaging Device of Level 2 or higher & collect science in at least 1 biome
fractionComplete = 75
minSubjectsToComplete = @/biomes
title = Have at least 1 Visible Imaging Device of Level 2 or higher & collect most of the science in at least @/biomes biomes
}

PARAMETER
Expand Down

1 comment on commit dfbdcd9

@Teykn
Copy link
Contributor

@Teykn Teykn commented on dfbdcd9 Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to set fractionComplete to ".75". fractionComplete is a double with range 0 to 1, with 1 being 100% completion (e.g. 0.01 = 1%, as seen in the First Sci Sat contracts). Setting it to 75 requires 7500% completion

Please sign in to comment.