File size: 1,113 Bytes
12d64f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 🎮 Red Alert Complete Gameplay Implementation

## Systems to Fix

### 1. ❌ Resource/Economy System (CRITICAL)
**Problem:** Credits don't decrease when building/producing
**Red Alert Behavior:** 
- Infantry: 100 credits
- Tank: 500 credits  
- Harvester: 200 credits
- Barracks: 500 credits
- War Factory: 1000 credits
- Refinery: 600 credits

### 2. ❌ Harvester AI (CRITICAL)
**Problem:** Harvesters don't collect resources
**Red Alert Behavior:**
- Find nearest ore/gem automatically
- Move to ore patch
- Harvest (fill cargo)
- Return to Refinery/HQ when full
- Deposit credits
- Repeat cycle

### 3. ❌ Unit AI (Player & Enemy)
**Problem:** Units don't auto-attack nearby enemies
**Red Alert Behavior:**
- Auto-acquire targets when idle
- Pursue and attack enemies in range
- Infantry/Tanks patrol and engage
- Enemy AI should attack player base

### 4. ❌ Auto-Defense
**Problem:** Units don't defend when attacked
**Red Alert Behavior:**
- When attacked, retaliate immediately
- Stop current order and fight back
- Return to original order after threat eliminated

---

## Complete Implementation