Record sweep rewards and add local drop and stamina analysis
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user