![[AN]Adaptive Nemesis](/_next/image?url=%2Fapi%2Fproxy-image%3Furl%3Dhttps%253A%252F%252Fcdn.modrinth.com%252Fdata%252FanacxDIl%252Ff63c99aa9be78e31253e68c2c8368f95ea97d58e.gif&w=256&q=75)
[AN]Adaptive Nemesis
The dynamic difficulty balancing module specifically designed for integration packs aims to address the issue of difficulty imbalance in current mainstream integration packs, where the early game is too easy and the late game is too challenging.
Список изменений
⚔️ Adaptive Nemesis v1.0.4 ⚔️
Every time you grow stronger, your Nemesis evolves
✨ New Features
🎯 Boss Identification System Refactor
Adopted Strategy Pattern + Chain of Responsibility for unified Boss identification logic:
| Strategy | Priority | Description |
|---|---|---|
| Type-Based | 1 | instanceof check for vanilla Bosses |
| Name-Based | 2 | Keyword matching for modded Bosses |
| Health Threshold | 3 | Auto-identify when MaxHealth ≥ 200 |
New configs:
bossIdentificationKeywords,bossHealthThreshold
🛡️ Dangerous Enchantment Protection
Added dangerous enchantment detection to prevent mobs from obtaining game-breaking enchants:
| Detection Keywords | Examples |
|---|---|
| English | immune, invulnerable, god, divine_protection |
| Chinese | 免伤, 无敌, 免疫 |
Auto-skips dangerous enchants, logs WARN message
🤝 Mod Compatibility Enhancement
L2Hostility Compatibility
| Config | Effect |
|---|---|
modCompatL2HostilityEnabled | Skips health/speed scaling to prevent HP explosion from ADD_MULTIPLIED_TOTAL mechanic |
Epic Fight & Iron's Spells NaN/Infinity Protection
| Protection | Description |
|---|---|
safeSetAttribute() | Prevents NaN/Infinity attribute value propagation |
safeDouble() | Falls back to safe defaults on abnormal values |
💎 Soul Stone Marker System
Solves duplicate scaling after soul stone capture/release:
| Marker Method | Persistence | Purpose |
|---|---|---|
| NBT Marker | ❌ Cleared by soul stone | Standard detection path |
| LUCK Attribute Marker | ✅ Retained by soul stone | Secondary detection path |
Uses characteristic value
0.0420as cross-NBT clearing marker
📝 Debug Log File
Fixed config shell issue, implemented complete log file output:
[debug]
debugLogToFile = true
debugLogFilePath = "logs/adaptive_nemesis_debug.log"
🐛 Bug Fixes
| Fix | Description |
|---|---|
| Mob State Validation | Clears Invulnerable flag, fixes invalid health/attack/armor attributes |
| Config Screen Update | Added "Mod Compatibility" category with 4 toggleable switches |
| Localization Added | Added EN/ZH translations for 6 new config options |
⚙️ New Config Options
| Config Key | Type | Default | Description |
|---|---|---|---|
bossIdentificationKeywords | String | boss,dragon,wither,warden | Boss identification keywords |
bossHealthThreshold | Double | 200.0 | Boss health identification threshold |
modCompatL2HostilityEnabled | Boolean | true | L2Hostility compatibility |
modCompatEpicFightEnabled | Boolean | true | Epic Fight compatibility |
modCompatIronsSpellsEnabled | Boolean | true | Iron's Spells compatibility |
modCompatApotheosisEnabled | Boolean | true | Apotheosis compatibility |
⚔️ As the Nemesis evolves, so do we ⚔️
