Revert to original working code - clean slate

- Start from original code that was known to work
- Will add features back incrementally
- This ensures we know exactly what breaks/works
This commit is contained in:
3nd3r
2025-12-28 17:43:11 -06:00
parent 90b604ba72
commit 5db4ce0ab3
5 changed files with 186 additions and 728 deletions

View File

@@ -388,49 +388,6 @@ class ShopManager:
"spawn_multiplier": spawn_multiplier,
"duration": duration // 60 # return duration in minutes
}
elif item_type == 'perfect_aim':
# Temporarily force shots to hit (bot/game enforces this)
if 'temporary_effects' not in player:
player['temporary_effects'] = []
duration = int(item.get('duration', 1800)) # seconds
effect = {
'type': 'perfect_aim',
'expires_at': time.time() + max(1, duration)
}
player['temporary_effects'].append(effect)
return {
"type": "perfect_aim",
"duration": duration
}
elif item_type == 'duck_radar':
# DM alert on duck spawns (game loop sends the DM)
if 'temporary_effects' not in player:
player['temporary_effects'] = []
duration = int(item.get('duration', 21600)) # seconds
effect = {
'type': 'duck_radar',
'expires_at': time.time() + max(1, duration)
}
player['temporary_effects'].append(effect)
return {
"type": "duck_radar",
"duration": duration
}
elif item_type == 'summon_duck':
# Actual spawning is handled by the bot (needs channel context)
delay = int(item.get('delay', 0))
delay = max(0, min(delay, 86400)) # cap to 24h
return {
"type": "summon_duck",
"delay": delay
}
elif item_type == 'insurance':
# Add insurance protection against friendly fire