Remove personal profile references from repo files
- config/params.ini: name=fistman -> name=profile1 - config/active_profile.txt: burr -> profile1 - src/ui/character_select.py: genericize OCR comment - Add generic profile1 and profile2 profile configs
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
; If you chicken/die repeatedly, drop to Nightmare first.
|
||||
difficulty=hell
|
||||
; name: bot profile name used in logs/messages and mod launch option replacement
|
||||
name=fistman
|
||||
name=profile1
|
||||
; randomize_runs: 0 = run in listed order, 1 = shuffle run order
|
||||
randomize_runs=0
|
||||
; target_tz: target Terror Zone id (leave as default unless you know the mapping)
|
||||
|
||||
@@ -236,7 +236,7 @@ def _select_char_by_ocr(char_name: str) -> bool:
|
||||
if result and result[0].text:
|
||||
detected = result[0].text.strip().lower()
|
||||
Logger.debug(f"Row {row}: OCR detected '{detected}'")
|
||||
# OCR mangles names badly ('fistman' reads as 'fabiman'), so
|
||||
# OCR mangles names badly ('profile1' reads as 'pro1file1'), so
|
||||
# fuzzy-match the first word of the row against the char name.
|
||||
import difflib
|
||||
first_line = detected.splitlines()[0].strip() if detected else ""
|
||||
|
||||
Reference in New Issue
Block a user