Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions python/scripts/escape_timing_average.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import math
import json

data = json.load(open("rust/data/escape_timings.json", "r"))
cnt = 0
total = 0
for room in data:
for from_group in room["timings"]:
for to_data in from_group["to"]:
igt_raw = to_data.get("in_game_time")
if igt_raw is None:
continue
i_part = math.floor(igt_raw)
f_part = (igt_raw - i_part) * 100 / 60
if f_part > 1:
raise RuntimeError("invalid time: " + igt_raw)
igt = i_part + f_part
cnt += 1
total += igt
avg = total / cnt
print(f"Timings: avg={avg}, cnt={cnt}")
2 changes: 1 addition & 1 deletion python/scripts/patch_practice_hack.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# "buffed_drops"
# 'complementary_suits',
# 'complementary_suits_noheat',
# 'escape',
'hyper_beam',
# 'fast_big_boy_cutscene',
# 'mb_barrier_clear',
# 'mb_left_entrance',
Expand Down
Loading