![[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.2 ⚔️
Every time you grow stronger, your Nemesis evolves
🎯 Major Improvements
1. 🩸 Health Display Fix
Issue: Monsters displaying abnormal health values like 100/110
Fix: Modified applyHealthBonus method in EnemyScalingHandler.java using two-stage health setting
| Stage | Operation | Purpose |
|---|---|---|
| Immediate | mob.setHealth(mob.getMaxHealth()) | Ensure attributes take effect instantly |
| Delayed 1 tick | Server-scheduled second setting | Ensure full health after attribute propagation |
💡 Principle: Attribute modifications require server sync; 1-tick delay ensures correct client display
2. 🌍 World Stage System Refactor
| Improvement | Description |
|---|---|
| 🔄 Server-Wide Sharing | World stages no longer separated by dimension; all dimensions share a single stage |
| 🎮 Player Kill Detection | Only player boss kills count, preventing false triggers from natural deaths |
| 🧹 Code Deduplication | Extracted onBossKilled() common method, eliminating duplicate code |
| 💾 Persistence Framework | Added WorldStageSavedData utility class (reserved for full implementation) |
3. 📈 Difficulty Smoothing Optimization
| Improvement | Description |
|---|---|
| 👥 Per-Player Differentiation | Supports independent smoothing states per player (API reserved) |
| 📈 Smoothstep Algorithm | Uses smooth easing curves for more natural difficulty transitions |
Math formula:
smoothstep(t) = t²(3-2t)— making difficulty transitions silky smooth
4. 🧹 Test Command Cleanup
Removed world stage test commands from TestCommand.java:
worldstageworldstage_scenarioworldstage_dragonworldstage_witherworldstage_warden
⚙️ Config Updates
New configurations synchronized to config file:
# Difficulty smoothing config
[difficultySmoothing]
enableDifficultySmoothing = true
difficultySmoothingFactor = 0.05
difficultySmoothingTickInterval = 5
# World stage config
[worldStage]
enableWorldStage = true
worldStageMultiplierPerStage = 0.5
worldStageMaxStage = 10
⚔️ As the Nemesis evolves, so do we ⚔️
