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
This commit is contained in:
@@ -28,6 +28,14 @@
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user