Bug fixes

* Fixed cardgame TypeError crash during random matches
* Fixed mistakenly excluded ExampleMod from releases
This commit is contained in:
LoafyLemon 2023-07-19 16:39:24 +01:00
parent 316aea6a5a
commit 699f68742f
3 changed files with 7 additions and 2 deletions

5
game/mods/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
# Ignore everything in this directory
*
# Except this file and ExampleMod
!.gitignore
!ExampleMod/

View File

@ -579,7 +579,7 @@ init python:
while min > get_deck_score(new_deck) or max < get_deck_score(new_deck): while min > get_deck_score(new_deck) or max < get_deck_score(new_deck):
replace_index = 0 replace_index = 0
if new_deck < min: if get_deck_score(new_deck) < min:
replace_index = find_index_func(temp_pool, smalles_func) replace_index = find_index_func(temp_pool, smalles_func)
else: else:
replace_index = find_index_func(temp_pool, gretest_func) replace_index = find_index_func(temp_pool, gretest_func)

View File

@ -167,7 +167,7 @@ init python:
build.classify("icon.ico", "windows") build.classify("icon.ico", "windows")
build.classify("game/presplash_*.png", "renpy") build.classify("game/presplash_*.png", "renpy")
build.classify("game/outfits/**", "all") build.classify("game/outfits/**", "all")
build.classify("game/mods/MyMod/**", "all") build.classify("game/mods/ExampleMod/**", "all")
build.classify("**.py", None) build.classify("**.py", None)
build.classify("**.txt", None) build.classify("**.txt", None)