Record sweep rewards and add local drop and stamina analysis

This commit is contained in:
AttilaNet
2026-11-08 11:56:29 +08:00
parent e3d806a167
commit b172d1ffb9
10 changed files with 890 additions and 16 deletions
+5 -2
View File
@@ -26,6 +26,8 @@ class Views:
map_source: str
maps: list
stage_cache: object = None
statistics_store: object = None
drop_statistics: dict = None
@dataclass
@@ -36,6 +38,7 @@ class Presented:
worker_ms: float = 0
def prepare_views(catalog, snapshot, managed, stage_cache=None):
def prepare_views(catalog, snapshot, managed, stage_cache=None, statistics=None):
return Views(snapshot, repr(snapshot.raw["monsters"]), set(managed), monster_rows(catalog, snapshot, managed),
str(snapshot.raw["master"]["id"]), stage_cache.get(snapshot) if stage_cache else stages(catalog, snapshot), stage_cache)
str(snapshot.raw["master"]["id"]), stage_cache.get(snapshot) if stage_cache else stages(catalog, snapshot), stage_cache,
statistics, statistics.snapshot(snapshot.raw["master"]["id"]) if statistics else None)