Farmer: "Braucht Hilfe" auch bei schlechter Trefferquote (nicht nur cash<0)

Ben spielt bewusst schlecht (hit_rate ~10%), Konto aber wieder im Plus -> blinkte
nicht. needsHelp (teacher.html client + live.php server) jetzt: cash<0 ODER
(attempts>=6 UND hit_rate<30). Faengt dauerhaft falsche Boden/Klima-Wahl; Clara
(hit 75, 3 Krankheiten) bleibt bewusst ruhig.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-22 12:41:39 +02:00
parent fecd8bb9c9
commit 85ee58c56d
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -710,7 +710,10 @@ if ($method === 'GET') {
case 'weltkueche':
return ($state['mistakesInDish'] ?? 0) >= 12;
case 'farmer':
return ($state['cash'] ?? 1000) < 0;
// Konto im Minus ODER dauerhaft schlechte Trefferquote (falsche
// Boden/Klima-Wahl) — auch wenn das Konto (noch) im Plus ist.
return ($state['cash'] ?? 1000) < 0
|| (($state['attempts'] ?? 0) >= 6 && isset($state['hit_rate']) && $state['hit_rate'] < 30);
case 'logistik':
return ($state['balance'] ?? 1000) < 0;
case 'eu-werkstatt':
+1 -1
View File
@@ -1251,7 +1251,7 @@ function _liveNeedsHelp(simId, s) {
case 'heli': return (s.planAttempts||0) >= 10;
case 'klima': case 'klima-3d': return (s.budget||0) < 0;
case 'weltkueche': return (s.mistakesInDish||0) >= 12;
case 'farmer': return (s.cash==null?1000:s.cash) < 0;
case 'farmer': return (s.cash==null?1000:s.cash) < 0 || ((s.attempts||0) >= 6 && s.hit_rate != null && s.hit_rate < 30);
case 'logistik': return (s.balance==null?1000:s.balance) < 0;
case 'eu-werkstatt': return (s.attemptsThisStep||0) >= 6;
case 'tourismustal': return (s.money==null?1:s.money) < 0 || (s.lossStreak||0) >= 8;