Files
duckhunt/shop.json
ComputerTech312 74f3afdf4b Restructure config.json with nested hierarchy and dot notation access
- Reorganized config.json into logical sections: connection, duck_spawning, duck_types, player_defaults, gameplay, features, limits
- Enhanced get_config() method to support dot notation (e.g., 'duck_types.normal.xp')
- Added comprehensive configurable parameters for all game mechanics
- Updated player creation to use configurable starting values
- Added individual timeout settings per duck type
- Made XP rewards, accuracy mechanics, and game limits fully configurable
- Fixed syntax errors in duck_spawn_loop function
2025-09-24 20:26:49 +01:00

41 lines
939 B
JSON

{
"items": {
"1": {
"name": "Single Bullet",
"price": 5,
"description": "1 extra bullet",
"type": "ammo",
"amount": 1
},
"2": {
"name": "Magazine",
"price": 15,
"description": "1 extra magazine",
"type": "magazine",
"amount": 1
},
"3": {
"name": "Sand",
"price": 10,
"description": "Throw sand in target's gun - increases jam chance by 15%",
"type": "sabotage_jam",
"amount": 15,
"target_required": true
},
"4": {
"name": "Gun Brush",
"price": 20,
"description": "Clean your gun - decreases jam chance by 10%",
"type": "clean_gun",
"amount": -10
},
"5": {
"name": "Bread",
"price": 50,
"description": "Attract ducks - increases duck spawn rate for 20 minutes",
"type": "attract_ducks",
"duration": 1200,
"spawn_multiplier": 2.0
}
}
}