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 à :
gastineltetClaude Opus 5.5 a révisé 2026-10-23 19:38:40 +02:00
1 Parent 26d610f79a
révision e87b8374ef
10 fichiers modifiés
+197 -14

Aucun fichier ne correspond à votre recherche

+13 -1
Voir le fichier
@@ -52,7 +52,7 @@ public final class GardeSpec {
private static final ModConfigSpec.IntValue SERIE_PING_MARGE;
private static final ModConfigSpec.IntValue TIMER_SOLDE_MAX;
private static final ModConfigSpec.IntValue ELY_MONTEE, ELY_STATIONNAIRE, VEL_FENETRE, VEL_SERIE, TOTEM_DELAI, TOTEM_PING;
private static final ModConfigSpec.DoubleValue VEL_RAPPORT, VEL_FORCE, VEL_POINTS;
private static final ModConfigSpec.DoubleValue VEL_RAPPORT, VEL_FORCE, VEL_POINTS, TOTEM_SEUIL_SB, TOTEM_SEUIL_EXP, VEL_SEUIL_SB, VEL_SEUIL_EXP;
private static final ModConfigSpec.BooleanValue SUSP_ACTIVE;
private static final ModConfigSpec.DoubleValue SUSP_SURVEILLER, SUSP_SUSPECT, SUSP_FORT, SUSP_DEMI_VIE,
SUSP_PLAFOND_FIABLE, SUSP_PLAFOND_MOYEN, SUSP_PLAFOND_FAIBLE, SUSP_DIVERSITE_FENETRE;
@@ -200,6 +200,14 @@ public final class GardeSpec {
VEL_FORCE = b.defineInRange("velociteForceMin", 0.15, 0.0, 5.0);
VEL_POINTS = b.comment("0.4.1 : points ajoutes par recul absent (en serie). 4 : 6 reculs absents espaces de 3 s depassent le SETBACK (10).")
.defineInRange("velocitePoints", 4.0, 0.0, 20.0);
TOTEM_SEUIL_SB = b.comment("0.4.2 : seuils propres (0 = seuil global de [sanctions]). Auto-totem : le palier SETBACK reste une alerte.")
.defineInRange("autoTotemSeuilSetback", 0.0, 0.0, 1000.0);
TOTEM_SEUIL_EXP = b.comment("Auto-totem : expulsion en ENFORCE (9 = trois detections rapprochees a +3).")
.defineInRange("autoTotemSeuilExpulsion", 9.0, 0.0, 1000.0);
VEL_SEUIL_SB = b.comment("Velocite : retour en arriere (setback) en ENFORCE.")
.defineInRange("velociteSeuilSetback", 8.0, 0.0, 1000.0);
VEL_SEUIL_EXP = b.comment("Velocite : expulsion en ENFORCE.")
.defineInRange("velociteSeuilExpulsion", 16.0, 0.0, 1000.0);
TOTEM_DELAI = b.comment("Réaction humaine minimale (ms) entre l'éclatement et le totem remis en main, ping en plus.")
.defineInRange("totemDelaiMinMs", 150, 0, 2000);
TOTEM_PING = b.defineInRange("totemPingMaxMs", 200, 0, 1000);
@@ -352,6 +360,10 @@ public final class GardeSpec {
c.velociteSerieMin = VEL_SERIE.get();
c.velociteForceMin = VEL_FORCE.get();
c.velocitePoints = VEL_POINTS.get();
c.autoTotemSeuilSetback = TOTEM_SEUIL_SB.get();
c.autoTotemSeuilExpulsion = TOTEM_SEUIL_EXP.get();
c.velociteSeuilSetback = VEL_SEUIL_SB.get();
c.velociteSeuilExpulsion = VEL_SEUIL_EXP.get();
c.totemDelaiMinMs = TOTEM_DELAI.get();
c.totemPingMaxMs = TOTEM_PING.get();
c.volFenetreGlissante = VOL_FENETRE_GLISSANTE.get();