Skip to content

Commit 6850062

Browse files
committed
Updated the mods so they use the functions in the correct places
1 parent 480b840 commit 6850062

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mods/byekevin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def mod_info(self):
1616
def mod_load(self):
1717
# Find and remove where we find Kevin
1818
found = modast.search_for_node_type(modast.find_label("c4hatchery"), ast.Scene, 20)
19-
hook = ml.hook_opcode(found, None)
19+
hook = modast.hook_opcode(found, None)
2020
hook.chain(modast.search_for_node_type(found, ast.Scene))
2121

2222
# Remove Kevin from the main screen

mods/core/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ def mod_info(self):
2020
def mod_load(self):
2121
# This is called due to renpy's screen cache. Any modifications to screens with an
2222
# enabled cache will fail!
23-
ml.disable_slast_cache()
23+
modast.disable_slast_cache()
2424

2525
# Hook every point where the chapter is changed and set mod_currentChapter to the
2626
# integer value of the current chapter. This will allow route mods to make comparisons.
2727
home_hook = ml.get_home_hook()
2828
home_hook.hook_chapter_1(modast.find_label("_core_updateChapter"))
2929

3030
stmt = modast.find_python_statement('chapter2unplayed = False')
31-
ml.call_hook(stmt, modast.find_label("_core_updateChapter"))
31+
modast.call_hook(stmt, modast.find_label("_core_updateChapter"))
3232
stmt = modast.find_python_statement('chapter3unplayed = False')
33-
ml.call_hook(stmt, modast.find_label("_core_updateChapter"))
33+
modast.call_hook(stmt, modast.find_label("_core_updateChapter"))
3434
stmt = modast.find_python_statement('chapter4unplayed = False')
35-
ml.call_hook(stmt, modast.find_label("_core_updateChapter"))
35+
modast.call_hook(stmt, modast.find_label("_core_updateChapter"))
3636

3737
# How to abuse the ren'py parser for your own personal gain!
3838
target_display = None
@@ -54,4 +54,4 @@ def mod_load(self):
5454
def mod_complete(self):
5555
# This is called after all mods are loaded, preventing us from getting a partial list of
5656
# mods (say, if core was loaded before myMod1).
57-
ml.set_renpy_global('modsDesc', ', '.join([mod_name for mod_name in modinfo.modlist]))
57+
modast.set_renpy_global('modsDesc', ', '.join([mod_name for mod_name in modinfo.modlist]))

0 commit comments

Comments
 (0)