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:
2026-08-23 14:03:53 +02:00
parent aaa40e9f1a
commit 77023ff7a3
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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;
+1
View File
@@ -71,6 +71,7 @@ var WP = {
verkehr_a14:{lat:47.26500,lon:9.64750,name:'Unfall A14 Rankweil'},
felswand_raetikon:{lat:47.10000,lon:9.70000,name:'Kletterunfall Rätikon-Felswand'},
bodensee_bregenz:{lat:47.51000,lon:9.72000,name:'Schwimmer Bodensee bei Bregenz'},
maria_saal:{lat:46.67972,lon:14.34361,name:'Maria Saal'},
schlucht_mellau:{lat:47.34000,lon:9.86000,name:'Canyoning-Unfall Schlucht Mellau'},
kaiser_kufstein:{lat:47.56000,lon:12.25000,name:'Wanderunfall Kaisergebirge'},