0.4.2 : vraies sanctions pour auto-totem et velocite, seuils propres
- bride ALERTE retiree en ENFORCE ; auto-totem : palier SETBACK ramene a ALERTE, expulsion appliquee - velocite : SETBACK = retour en arriere (setback mouvement existant), expulsion - seuils optionnels dans [nouveauxControles] : autoTotemSeuilSetback (0 = global), autoTotemSeuilExpulsion = 9, velociteSeuilSetback = 8, velociteSeuilExpulsion = 16 (0 = seuil global de [sanctions]) - version 0.4.2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
26d610f79a
révision
e87b8374ef
10 fichiers modifiés
+197
-14
Aucun fichier ne correspond à votre recherche
@@ -120,6 +120,19 @@ class CablageTest {
|
||||
|
||||
// --- Setback (C2, C3) ---
|
||||
|
||||
@Test
|
||||
void v042_setbackVelociteRameneLaPositionEtExpulsionAutoTotemDeconnecte() {
|
||||
Moteur moteur = new Moteur(new GardeConfig());
|
||||
FauxJoueur p = new FauxJoueur();
|
||||
moteur.suivi(ID).memoriserPosition(10.5, 64.0, -3.5, 90f, 10f, MONDE);
|
||||
Cablage.appliquerSanction(moteur, p, Sanction.SETBACK, List.of(verdict(Controle.VELOCITE, Sanction.SETBACK)));
|
||||
assertEquals(List.of("annonce SETBACK", "teleport 10.5 64.0 -3.5 90 10", "journal Tricheur SETBACK (velocite)"),
|
||||
p.actions);
|
||||
Cablage.appliquerSanction(moteur, p, Sanction.EXPULSION, List.of(verdict(Controle.AUTO_TOTEM, Sanction.EXPULSION)));
|
||||
assertEquals(1, p.compte("deconnexion"));
|
||||
assertTrue(moteur.estExpulse(ID));
|
||||
}
|
||||
|
||||
@Test
|
||||
void C2_setbackVersLaPositionAuSolPuisRemiseAZeroDuVol() {
|
||||
Moteur moteur = new Moteur(new GardeConfig());
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur