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:
2025-09-24 20:26:49 +01:00
parent 6ca624bd2f
commit 74f3afdf4b
18 changed files with 306 additions and 189 deletions

View File

@@ -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
}
}
}