Bug fixes and improvements
* Fixed wardrobe not initializing in replay context * Fixed unequip all clothes cheat * Fixed example mod file structure * Fixed ability to rollback to the broken past during the game's start * Simplified initialization * Simplified mods module importing and parsing, reducing possible number of fail points * Moved audio channel registration to options (config) file * Added default zorder for `cg` image tag * Added rpym format to .editorconfig
This commit is contained in:
parent
751575c556
commit
e0e9d23d2a
@ -9,6 +9,6 @@ end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{py,rpy}]
|
||||
[*.{py,rpy,rpym}]
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
|
@ -130,7 +130,7 @@ label tonks_summon_setup:
|
||||
|
||||
menu:
|
||||
"-Those clothes stay off!-":
|
||||
$ tonks.unequip("all")
|
||||
$ tonks.unequip("clothes")
|
||||
|
||||
ton "*Hmm*?" ("soft", "narrow", "raised", "down", hair="horny", cheeks="heavy_blush")
|
||||
gen "That's right... If they're so bothersome, why bother wearing them at all?" ("base", xpos="far_left", ypos="head")
|
||||
|
@ -13,3 +13,5 @@ init python:
|
||||
|
||||
outfit_last = outfit = get_character_outfit(c, type="last")
|
||||
outfit_last.save()
|
||||
|
||||
config.start_callbacks.append(wardrobe_init)
|
||||
|
@ -327,7 +327,7 @@ label cheats:
|
||||
"-Unequip all clothes-":
|
||||
python:
|
||||
for i in CHARACTERS:
|
||||
getattr(renpy.store, i).unequip("all")
|
||||
getattr(renpy.store, i).unequip("clothes")
|
||||
|
||||
">All characters are now naked."
|
||||
|
||||
|
@ -170,8 +170,5 @@ init python:
|
||||
|
||||
# define config.exception_handler = exception_handler
|
||||
|
||||
init:
|
||||
$ import_mods()
|
||||
$ config.after_load_callbacks.append(parse_mods)
|
||||
|
||||
|
||||
config.start_callbacks.extend([import_mods, parse_mods])
|
||||
config.after_load_callbacks.append(parse_mods)
|
||||
|
@ -21,6 +21,10 @@ init python:
|
||||
settings.default("animations", True)
|
||||
settings.default("updates", True)
|
||||
|
||||
renpy.music.register_channel("background", "sfx", True)
|
||||
renpy.music.register_channel("bg_sounds", "sfx", True)
|
||||
renpy.music.register_channel("weather", "weather", True)
|
||||
|
||||
# Configuration
|
||||
# https://www.renpy.org/doc/html/config.html
|
||||
|
||||
@ -77,6 +81,7 @@ define config.tag_zorder = {
|
||||
"xray_child": -1,
|
||||
"xray_overlay": -1,
|
||||
"xray_mask": -1,
|
||||
"cg": 17,
|
||||
}
|
||||
|
||||
# Saving and loading
|
||||
|
@ -1,11 +1,19 @@
|
||||
|
||||
# The game starts here
|
||||
label start:
|
||||
call game_init
|
||||
if not renpy.android:
|
||||
show screen tooltip
|
||||
|
||||
python:
|
||||
version = version_float()
|
||||
|
||||
renpy.block_rollback()
|
||||
|
||||
jump start_wt
|
||||
|
||||
label start_quick:
|
||||
call game_init
|
||||
if not renpy.android:
|
||||
show screen tooltip
|
||||
|
||||
python:
|
||||
game.difficulty = 2
|
||||
@ -14,11 +22,13 @@ label start_quick:
|
||||
map_unlocked = True
|
||||
game.cheats = True
|
||||
|
||||
renpy.block_rollback()
|
||||
|
||||
jump skip_to_hermione
|
||||
|
||||
# Quickstart for developer mode
|
||||
label start_dev:
|
||||
call game_init
|
||||
if not renpy.android:
|
||||
show screen tooltip
|
||||
|
||||
python:
|
||||
game.difficulty = 2
|
||||
@ -82,18 +92,6 @@ label start_dev:
|
||||
if not x.hidden:
|
||||
x.unlock()
|
||||
|
||||
renpy.block_rollback()
|
||||
|
||||
jump skip_to_hermione
|
||||
|
||||
label game_init:
|
||||
$ version = version_float()
|
||||
$ wardrobe_init()
|
||||
$ parse_mods()
|
||||
|
||||
if not renpy.android:
|
||||
show screen tooltip
|
||||
return
|
||||
|
||||
init python:
|
||||
renpy.music.register_channel("background", "sfx", True)
|
||||
renpy.music.register_channel("bg_sounds", "sfx", True)
|
||||
renpy.music.register_channel("weather", "weather", True)
|
||||
|
Loading…
Reference in New Issue
Block a user