battlepoint show

This commit is contained in:
2026-05-05 20:29:35 +03:00
parent 138841b027
commit 4f7e0fae51
6 changed files with 56 additions and 2 deletions

View File

@@ -109,3 +109,33 @@ window.addEventListener('beforeunload', () => {
# Make sure the generator yields spaces/heartbeats actively so the OS
# throws an IOError/GeneratorExit the moment the client drops.
```
## 4. Auto-Culture / Auto-Celebrations
**Inspired by:** `3rdparty/AutoFarm - AutoUpgrade villages lvl 6 - AutoCelebrations-NoOrpheus.user.js`
**Current State:**
Players manually check their towns for sufficient resources (Wood, Stone, Silver), Gold, or Battle Points, and manually trigger City Festivals, Olympic Games, Victory Processions, or Theater Plays.
**Proposed Implementation:**
- Add a new bot module (e.g., `Auto-Culture`) containing a background loop that periodically checks the resource counts, gold, and battle points for each active town.
- When conditions are met (e.g., 15000 Wood, 18000 Stone, 15000 Silver for a City Festival, or 300 Battle Points for a Victory Procession), send the appropriate API request (action: `start_celebration` or `start_all_celebrations`) to queue the celebration.
- Provide dashboard controls so users can selectively enable or disable specific celebration types (keeping Olympic Games off by default to avoid accidental gold spending).
**Benefits:**
- Automates the generation of Culture Points across all towns without user intervention.
- Ensures resources aren't maxed out and wasted while the player is away.
## 5. Auto-WW Donator / Resource Balancer
**Inspired by:** `3rdparty/WW Trade Helper.user.js`
**Current State:**
Players manually open the World Wonder window and use UI helpers to calculate how much Wood, Stone, and Silver they can send based on their town's trade capacity and available resources. They then manually click the "Send Resources" button.
**Proposed Implementation:**
- Integrate the calculation logic from `WW Trade Helper` which effectively balances resource distribution (e.g., Even distribution, No Wood, No Stone, No Silver).
- Create a bot module that periodically checks cities for excess resources and available trade capacity.
- Automatically construct and send the `ajaxPost` payload to the World Wonder endpoint (`model_url: 'WorldWonder'`, `action_name: 'sendResources'`, etc.) without requiring the World Wonder window to be open or requiring manual button clicks.
**Benefits:**
- Maximizes alliance contributions to World Wonders around the clock.
- Perfectly balances resources sent so the player doesn't accidentally empty their town of a critical resource.