Files
duckhunt/duckhunt.json
ComputerTech312 25226a460b Fix magazine and bullet usage limits
- Fixed bug where players could use magazines beyond their level's maximum limit
- Added validation to prevent using bullets when magazine is already full
- Magazine items now respect level-based limits (e.g., 3 magazines at level 1)
- Items are not consumed from inventory if they can't be used due to limits
- Added proper error messages for when limits are reached
- Updated ShopManager to work with LevelManager for limit validation
2025-09-26 19:13:52 +01:00

39 lines
839 B
JSON

{
"players": {
"computertech": {
"nick": "ComputerTech",
"xp": 2,
"ducks_shot": 6,
"ducks_befriended": 2,
"shots_fired": 2,
"shots_missed": 1,
"accuracy": 63,
"gun_confiscated": false,
"current_ammo": 6,
"magazines": 7,
"bullets_per_magazine": 6,
"jam_chance": 5,
"inventory": {
"1": 1
},
"temporary_effects": []
},
"seokly": {
"nick": "seokly",
"xp": 0,
"ducks_shot": 0,
"ducks_befriended": 0,
"shots_fired": 0,
"shots_missed": 0,
"accuracy": 75,
"gun_confiscated": false,
"current_ammo": 6,
"magazines": 3,
"bullets_per_magazine": 6,
"jam_chance": 15,
"inventory": {},
"temporary_effects": []
}
},
"last_save": "1758910394.7242796"
}