Implement 32x32 BFS visitor navigation and daily contracts system with companion .npc journals; add native assembly scenes for Clover slots, Pyramid cards, Blackjack Party and Russian Party; package animation and sprite packs; add comprehensive offline test suites and rebuild shipping binaries.
22 lines
851 B
Python
22 lines
851 B
Python
# -*- coding: utf-8 -*-
|
|
import sys
|
|
|
|
with open('tools/generators/generate_npc_mind.py', 'r', encoding='utf-8') as f:
|
|
c = f.read()
|
|
|
|
c = c.replace('invoke PrintStr, OFFSET chipText', 'invoke PrintStr, OFFSET mpkChipsPrefix')
|
|
c = c.replace('invoke PrintStr, OFFSET cheatCodePrompt', 'invoke PrintStr, OFFSET mpkThoughtPrefix')
|
|
|
|
old_str = 'mpkWaitNextStr db 13,10,"[Нажмите любую клавишу для следующей раздачи, 0 для выхода]...",0\n'
|
|
new_str = old_str + 'mpkChipsPrefix db " Стек: $",0\nmpkThoughtPrefix db " [Мысли]: ",0\n'
|
|
|
|
if old_str in c:
|
|
c = c.replace(old_str, new_str)
|
|
print("Added prefix strings")
|
|
else:
|
|
print("Target string not found in c")
|
|
|
|
with open('tools/generators/generate_npc_mind.py', 'w', encoding='utf-8') as f:
|
|
f.write(c)
|
|
|
|
print("Saved generate_npc_mind.py")
|