diff --git a/App/admin-weltkueche.html b/App/admin-weltkueche.html index 3c29ec5..63ee46f 100644 --- a/App/admin-weltkueche.html +++ b/App/admin-weltkueche.html @@ -96,7 +96,10 @@ function classify(ingKey, heimat){ var grav = function(c){ return (producers[c].t || 0) / wkDist(heimat, c); }; var realistic = keys.filter(function(c){ return c !== heimat && mrank(producers[c].market) < 2; }) .sort(function(a,b){ return (mrank(producers[a].market)-mrank(producers[b].market)) || (grav(b)-grav(a)); }); - var correct = [heimat]; if (realistic[0]) correct.push(realistic[0]); + // Kuratierte Zweitlieferanten (correct_for) übersteuern die Gravitation — wie im Spiel. + var curated = ((ing.correct_for && ing.correct_for[heimat]) || []).filter(function(c){ return C[c] && c !== heimat; }); + var correct = curated.length ? [heimat].concat(curated) : [heimat]; + if (!curated.length && realistic[0]) correct.push(realistic[0]); if (correct.length < 2){ var any = keys.filter(function(c){ return c!==heimat && correct.indexOf(c)<0; }) .sort(function(a,b){ return (producers[b].t||0)-(producers[a].t||0); }); if(any[0]) correct.push(any[0]); } var farP = keys.filter(function(c){ return correct.indexOf(c)<0 && mrank(producers[c].market)===2; }); diff --git a/App/sims/weltkueche/game.html b/App/sims/weltkueche/game.html index 0e5b378..0650ec6 100644 --- a/App/sims/weltkueche/game.html +++ b/App/sims/weltkueche/game.html @@ -1533,7 +1533,9 @@ function showSolved(ing,pts,bonus){ const factLine = ing.fact ? `