GastinelGarde autotests : temoin C1 grace bornee corrige

L ancien temoin (acceleration 0,02/tick2 prolongee) entre dans la tolerance de VolVertical apres ~22 ticks
et ne pouvait pas etre puni apres la grace. Remplace par un plane constant a -0,05 bloc/tick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
gastineltetClaude Opus 5.5 a révisé 2026-10-16 05:58:28 +02:00
1 Parent 9335654541
révision d9530d0661
1 fichier modifié
+7 -2
+7 -2
Voir le fichier
@@ -115,9 +115,14 @@ class AutotestVolIncidentTest {
@Test
void CORRIGE_C1_laGraceDeFinDElytresEstBorneeDansLeTemps() {
// Témoin : un plané sans drapeau qui dure bien au-delà de la grâce finit par être vu.
List<List<Verdict>> vs = sautPuisPlaneSansDrapeau(cfg.graceFinElytresTicks + 30);
// 16/10 : témoin corrigé. L'ancien (accélération 0,02 bloc/tick² prolongée) entre dans la tolérance de
// VolVertical (0,05) dès ~22 ticks et n'était donc jamais puni après 50 ticks de grâce, même sans grâce.
// Plané constant à -0,05 bloc/tick : écart ~0,077 à chaque tick, nettement anormal.
sautPuisPlaneSansDrapeau(1);
double total = 0;
for (List<Verdict> v : vs) total += points(v, Controle.VOL);
for (int k = 0; k < cfg.graceFinElytresTicks + 30; k++) {
total += points(paquet(EtatJoueur.normal(), air(-0.05)), Controle.VOL);
}
assertTrue(total > 0, "après la grâce, un plané anormal est de nouveau puni");
}