Fixed healing and started working on item collection tracking
This commit is contained in:
@@ -105,6 +105,14 @@ class GameStats():
|
||||
elif stat_type == VisibilityType.Overall:
|
||||
return self.history[StatType.Combat].combined(self.zone[StatType.Combat]).players_healing()
|
||||
|
||||
def get_total_healing_stats(self, stat_type):
|
||||
if stat_type == VisibilityType.Zone:
|
||||
return self.zone[StatType.Combat].players_total_healing()
|
||||
elif stat_type == VisibilityType.LastFight:
|
||||
return self.last_fight[StatType.Combat].players_total_healing()
|
||||
elif stat_type == VisibilityType.Overall:
|
||||
return self.history[StatType.Combat].combined(self.zone[StatType.Combat]).players_total_healing()
|
||||
|
||||
def fame_stats(self, stat_type):
|
||||
if stat_type == VisibilityType.Zone:
|
||||
return self.zone[StatType.Fame].stats()
|
||||
@@ -156,6 +164,18 @@ def last_fight_stats(combat_stat_type: str):
|
||||
return get_stats(VisibilityType.LastFight, combat_stat_type)
|
||||
|
||||
|
||||
def zone_total_healing_stats():
|
||||
return game_stats.get_total_healing_stats(VisibilityType.Zone)
|
||||
|
||||
|
||||
def overall_total_healing_stats():
|
||||
return game_stats.get_total_healing_stats(VisibilityType.Overall)
|
||||
|
||||
|
||||
def last_fight_total_healing_stats():
|
||||
return game_stats.get_total_healing_stats(VisibilityType.LastFight)
|
||||
|
||||
|
||||
cached_players = () # do not compute values if there is nothing in queue
|
||||
cached_stat_type = None
|
||||
cached_combat_stat_type = None
|
||||
|
||||
Reference in New Issue
Block a user