Tribal Wars Battle Report Production Calculator

Calculates total resource production from battle report spy information

作者
ricardofauch
日安装量
0
总安装量
5
评分
0 0 0
版本
1.4
创建于
2024-10-28
更新于
2024-10-28
许可证
MIT
适用于

# Tribal Wars Report Resource Analyzer and Auto-Attack

## Overview
This script analyzes battle reports in Tribal Wars to:
1. Calculate theoretical resource production based on building levels
2. Estimate current resources based on spy information and time elapsed
3. Calculate required light cavalry (LC) for farming
4. Automatically send attacks with calculated LC numbers

## Features
- **Resource Production Analysis**
- Calculates hourly and daily production for all resources
- Accounts for building levels
- Considers resource bonuses and village effects

- **Resource Estimation**
- Uses spy report data as baseline
- Calculates resource accumulation since spy report
- Estimates current available resources

- **Light Cavalry Calculator**
- Calculates required LC to carry 90% of estimated resources
- Accounts for LC carrying capacity (80 resources per unit)

- **Auto-Attack Feature**
- One-click attack button
- Automatically fills in calculated LC numbers
- Auto-confirms attack with precise timing
- Includes safety confirmation dialog

## How to Use
1. Open any battle report containing spy information
2. The script will automatically analyze and display:
- Theoretical resource production
- Current estimated resources
- Required LC count
3. Click the "Send X LC" button to:
- Navigate to rally point
- Auto-fill troops
- Execute attack with proper timing

## Important Notes
- Works only on battle reports with spy information
- Requires script permissions for the rally point page
- Always verify calculations before attacking
- Use at your own risk and in accordance with game rules

## Known Limitations
- Requires 300ms for initial page load
- May need page refresh if report loads too slowly
- Only calculates for light cavalry (no other unit combinations)

## Support
For issues or suggestions, please create an issue on GitHub or comment on Greasy Fork.

## Changelog
### v1.2
- Added auto-attack feature
- Improved page load handling
- Added 90% resource target
- Fixed coordinate handling

### v1.1
- Added resource estimation
- Added LC calculator
- Fixed production calculations

### v1.0
- Initial release
- Basic production calculations