v0.5.109: hero role toolbar, skill side-by-side layout, taller detail panel.
Move role filters between grid and detail, fix skill video/text layout and detail height jump, unify item dividers, drop OpenDota matchup cross, sync docs and assets. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -102,14 +102,13 @@ def stats_from_opendota(raw: dict) -> dict:
|
||||
"vision_day": int(_num(raw, "day_vision", 1800)),
|
||||
"vision_night": int(_num(raw, "night_vision", 800)),
|
||||
}
|
||||
# turn_rate is null in OpenDota for heroes using the game default — omit
|
||||
# rather than inventing 0.6 so the UI only shows an explicit value.
|
||||
# OpenDota leaves turn_rate null for the engine default (0.6); match
|
||||
# dota2.com.cn and always surface a value for the combat panel.
|
||||
turn = raw.get("turn_rate")
|
||||
if turn is not None:
|
||||
try:
|
||||
result["turn_rate"] = _round1(float(turn))
|
||||
except (TypeError, ValueError):
|
||||
pass
|
||||
try:
|
||||
result["turn_rate"] = _round1(float(turn)) if turn is not None else 0.6
|
||||
except (TypeError, ValueError):
|
||||
result["turn_rate"] = 0.6
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user