Combat Data Protocol
About 261 wordsLess than 1 minute
Tips
This document describes the storage format and structure of combat-related data
Resource Location
Combat data is stored in the assets/resource/data/combat/ directory:
items.json- Combat item datadrop_index.json- Stage drop index
items.json - Combat Item Data
File Structure
{
"gold": {}, // Gold rarity items
"yellow": {}, // Yellow rarity items
"purple": {}, // Purple rarity items
"blue": {}, // Blue rarity items
"green": {} // Green rarity items
}Rarity Classification
Combat items are classified into five rarity levels:
gold- Gold (highest rarity)yellow- Yellow (high rarity)purple- Purple (medium rarity)blue- Blue (normal rarity)green- Green (basic rarity)
Item Data Format
Each item uses item ID as key, containing item name:
{
"gold": {
"111004": {"name": "Fruit of Discernment"},
"111005": {"name": "Evergreen Sword"},
"111006": {"name": "Golden Fleece"}
}
}drop_index.json - Stage Drop Index
File Structure
{
"stage_code": [item_id_list]
}Stage Code Format
Stage code format: "chapter-stage_difficulty"
- Chapter: Number (e.g.,
1,2,12) - Stage: Number (e.g.,
1,14,21) - Difficulty:
G- Story difficultyE- Perilous difficulty
Examples:
"1-1G"- Chapter 1 Stage 1 Story difficulty"12-21E"- Chapter 12 Stage 21 Perilous difficulty
Data Example
{
"1-1G": [110501, 110101, 110201, 110301, 110401],
"1-14E": [110102, 110101, 110201, 110301, 110401, 110501],
"12-21E": [110904, 110903, 110101, 111102, 110902, ...]
}Usage Guide
This data is primarily used for:
- Item Recognition: Identify items obtained during combat by ID or name
- Rarity Judgment: Determine rarity based on item's rarity classification
- Drop Prediction: Query possible item drops by stage code
- Drop Statistics: Record and analyze drop distributions across different stages
