Skip to content

Commit 60c9a89

Browse files
committed
Reset time if singleplayer flag is false
1 parent f76e996 commit 60c9a89

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

howlongtobeatpy/howlongtobeatpy/JSONResultParser.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ def parse_json_element(self, input_game_element):
8989
current_entry.complexity_lvl_sp = bool(input_game_element.get("comp_lvl_sp", 0))
9090
current_entry.complexity_lvl_co = bool(input_game_element.get("comp_lvl_co", 0))
9191
current_entry.complexity_lvl_mp = bool(input_game_element.get("comp_lvl_mp", 0))
92+
# Auto-Nullify values based on the flags
9293
if self.auto_filter_times:
93-
# Auto-Nullify values based on the flags
94+
if current_entry.complexity_lvl_sp is False:
95+
current_entry.main_story = None
96+
current_entry.main_extra = None
97+
current_entry.completionist = None
98+
current_entry.all_styles = None
9499
if current_entry.complexity_lvl_co is False:
95100
current_entry.coop_time = None
96101
if current_entry.complexity_lvl_mp is False:

0 commit comments

Comments
 (0)