Heli: fehlende Wegpunkte-Datenluecke behoben + Routing-Score = Klick-Genauigkeit
- 5 Wegpunkte fehlten in geo_waypoints (bodensee_bregenz/kaiser_kufstein/felswand_raetikon/ schlucht_mellau/maria_saal) -> Missionen M5/M7 u.a. hingen nach dem vorletzten WP. In v3-DB eingespielt; Prod-SQL in .dontDeploy (Live-DB gleiche Luecke). waypoints.js: maria_saal ergaenzt. - GGS_LIVE_STATE score: Routing zaehlt jetzt Klick-Genauigkeit (richtige/alle) statt Fortschritt -> kein roter Tag-Balken mehr am Planungs-Anfang (0 Klicks = grau, nicht rot). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -492,7 +492,10 @@ window.GGS_LIVE_STATE = function () {
|
||||
if (!phase || phase === 'mission' || phase === 'briefing') return null;
|
||||
if (landingDone && game.totalStars != null) return Math.round(Math.max(0,Math.min(5,game.totalStars))/5*100);
|
||||
var parts = [];
|
||||
if (routeLen > 1) parts.push(Math.max(0, Math.min(100, (game.planTotal?(game.planCorrect||0)/game.planTotal:0)*100 - (game.planAttempts||0)*4)));
|
||||
// Routing = KLICK-GENAUIGKEIT (richtige / alle Klicks), nicht Fortschritt.
|
||||
// 0 Klicks → kein Score (grau), nicht rot: der Anfang ist kein Fehler.
|
||||
var clicks = (game.planCorrect||0) + (game.planAttempts||0);
|
||||
if (clicks > 0) parts.push(Math.round((game.planCorrect||0) / clicks * 100));
|
||||
if (startDone && game.startScore != null) parts.push(Math.max(0,Math.min(5,game.startScore))/5*100);
|
||||
if (landingDone && game.landingScore != null) parts.push(Math.max(0,Math.min(5,game.landingScore))/5*100);
|
||||
if (!parts.length) return null;
|
||||
|
||||
Reference in New Issue
Block a user