# Basic Test Mode Inventory Update ✅

## Overview
Updated the basic `BattleTestMode.cs` to include health potions and other inventory items for test characters, so the inventory list actually shows items during testing.

## Changes Made

### 1. Enhanced CreateTestBattleData Method
- Added call to `CreateBasicInventoryData()` after creating characters
- Now creates both legacy BattleSetupData and modern CombatDataTransfer inventory data

### 2. Added CreateBasicInventoryData Method
- Creates `CombatDataTransfer.CombatSessionData` with basic battle context
- Generates `TeamCharacterCombatData` for each player with inventory
- Gives realistic stats (HP 15-25, AC 12, random attributes)
- Creates basic enemy data for completeness

### 3. Added CreateBasicTestInventory Method
- **All characters get**: 2x Health Potions, Bread, Bandage
- **Character-specific items**:
  - Character 0: Extra Health Potion + Iron Ration
  - Character 1: Antidote + Rope  
  - Character 2: Torch + Waterskin
- Provides variety while ensuring everyone has healing items

### 4. Updated Clear Test Data
- Now clears both `BattleSetupData` and `CombatDataTransfer` session data
- Ensures clean state between tests

## Inventory Items Provided

### Base Items (All Characters)
- **Health Potion** x2 - Primary healing items
- **Bread** - Basic food
- **Bandage** - Secondary healing

### Varied Items (By Character Index)
- **Fighter-type** (Index 0): Extra Health Potion, Iron Ration
- **Utility-type** (Index 1): Antidote, Rope
- **Explorer-type** (Index 2): Torch, Waterskin

## How It Works

### Hybrid System
The basic test mode now creates **both** data systems:
1. **BattleSetupData** (legacy): CharacterSelection objects for backward compatibility
2. **CombatDataTransfer** (modern): Full character data including inventory

### Inventory Access
When the battle scene loads:
1. BattleItemSelector looks for inventory data
2. Finds CombatDataTransfer session with character inventories
3. Displays actual inventory items instead of empty lists

## Testing Instructions

### Using Context Menu Commands
```csharp
// Right-click on BattleTestMode component:
1. "Create Test Battle Data" - Creates characters with inventory
2. "Create Random Test Data" - Random character counts + inventory
3. "Create 1v1 Test Battle" - Quick test with inventory
4. "Create Large Test Battle" - 4v6 battle with inventory
5. "Clear Test Data" - Clears both systems
```

### In Battle Scene
1. Create test battle using any context menu command
2. Select a character action that uses items (like "Use Item")
3. **Verify**: Item list shows Health Potions, Bread, Bandages, etc.
4. **Check quantities**: Should see "Health Potion x2" or similar
5. **Test usage**: Items should be usable and show proper descriptions

## Benefits

### For Quick Testing
- **No setup required**: Just enable test mode and get inventories
- **Realistic items**: Health potions for actual battle testing
- **Variety**: Different characters have different utility items
- **Backward compatible**: Works with existing BattleSetupData systems

### For Development
- **Dual system support**: Works with both old and new data systems
- **Easy debugging**: Clear logging of inventory creation
- **Flexible**: Can easily modify inventory contents
- **Clean state**: Proper cleanup between test sessions

## Files Modified
- `Assets/Scripts/BattleScene/BattleTestMode.cs`
  - Added `CreateBasicInventoryData()` method
  - Added `CreateBasicTestInventory()` method  
  - Enhanced `CreateTestBattleData()` to include inventory
  - Updated `ClearTestData()` to clear both systems

## Next Steps
1. Test the basic test mode in battle scene
2. Verify item selection shows health potions and other items
3. Test item usage functionality
4. Consider adding more item variety if needed

The basic test mode now provides realistic inventories for proper battle testing! 🎉
