Final stable v1.0: Fixed Breaker NameError, restored pure Python environment, and finalized 4K broadcast suite.
This commit is contained in:
parent
f9db06d1c2
commit
193370a7a8
2 changed files with 10 additions and 6 deletions
8
START_TOOL.bat
Normal file
8
START_TOOL.bat
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@echo off
|
||||
title DashLeague Broadcast Tool
|
||||
echo Checking Dependencies...
|
||||
pip install -r requirements.txt
|
||||
echo.
|
||||
echo Launching...
|
||||
python dashleague_cast_tool.py
|
||||
pause
|
||||
|
|
@ -1,12 +1,6 @@
|
|||
def build_player_summary(player):
|
||||
"""
|
||||
Builds a caster-ready summary block for a single player.
|
||||
Uses:
|
||||
- Slayer
|
||||
- Payload Objective
|
||||
- Sharpshooter
|
||||
- Consistency
|
||||
- Clutch
|
||||
"""
|
||||
|
||||
def safe_pct(value):
|
||||
|
|
@ -20,11 +14,13 @@ def build_player_summary(player):
|
|||
|
||||
name = player.get("name", "Unknown Player")
|
||||
|
||||
# --- DEFINE ALL TAGS HERE ---
|
||||
slayer = player.get("slayer", {})
|
||||
payload = player.get("objective_payload", {})
|
||||
sharp = player.get("sharpshooter", {})
|
||||
consistency = player.get("consistency", {})
|
||||
clutch = player.get("clutch", {})
|
||||
breaker = player.get("breaker", {}) # <--- FIXED: Added this line
|
||||
|
||||
lines = []
|
||||
lines.append(f"{name}\n")
|
||||
|
|
|
|||
Loading…
Reference in a new issue