[BUGFIX] AIRBOSS:_LSOGrades When points are deducted for a 1-wire pass, we also need to change the grade according to the new points.

This commit is contained in:
Rolln-dev
2026-04-13 19:20:20 -06:00
parent 6223b8e1a7
commit aebb6ac0db
+8
View File
@@ -12903,6 +12903,14 @@ function AIRBOSS:_LSOgrade( playerData )
-- Circuit edit only take points awary from a 1 wire if there are more than 4 other deviations
if playerData.wire == 1 and points >= 3 and N > 4 then
points = points -1
-- We also need to change the grade based on the new points.
if points == 4 then
grade = "OK"
elseif points == 3 then
grade = "(OK)"
elseif points == 2 then
grade = "--"
end
end
env.info("Returning: " .. grade .. " " .. points .. " " .. G)