From 699f68742f0e7a59121c2fb224de20ee187612b0 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Wed, 19 Jul 2023 16:39:24 +0100 Subject: [PATCH] Bug fixes * Fixed cardgame TypeError crash during random matches * Fixed mistakenly excluded ExampleMod from releases --- game/mods/.gitignore | 5 +++++ game/scripts/minigames/cardgame/__card_game_init__.rpy | 2 +- game/scripts/options.rpy | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 game/mods/.gitignore diff --git a/game/mods/.gitignore b/game/mods/.gitignore new file mode 100644 index 00000000..f1bcb3c7 --- /dev/null +++ b/game/mods/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything in this directory +* +# Except this file and ExampleMod +!.gitignore +!ExampleMod/ diff --git a/game/scripts/minigames/cardgame/__card_game_init__.rpy b/game/scripts/minigames/cardgame/__card_game_init__.rpy index 6d859b81..69923e68 100644 --- a/game/scripts/minigames/cardgame/__card_game_init__.rpy +++ b/game/scripts/minigames/cardgame/__card_game_init__.rpy @@ -579,7 +579,7 @@ init python: while min > get_deck_score(new_deck) or max < get_deck_score(new_deck): replace_index = 0 - if new_deck < min: + if get_deck_score(new_deck) < min: replace_index = find_index_func(temp_pool, smalles_func) else: replace_index = find_index_func(temp_pool, gretest_func) diff --git a/game/scripts/options.rpy b/game/scripts/options.rpy index d934fc34..86d59851 100644 --- a/game/scripts/options.rpy +++ b/game/scripts/options.rpy @@ -167,7 +167,7 @@ init python: build.classify("icon.ico", "windows") build.classify("game/presplash_*.png", "renpy") build.classify("game/outfits/**", "all") - build.classify("game/mods/MyMod/**", "all") + build.classify("game/mods/ExampleMod/**", "all") build.classify("**.py", None) build.classify("**.txt", None)