Compare commits

..

No commits in common. "4658a97b4aa2671f862aa6c8afdc0124fde02b3b" and "b41a4263eadc121b21cf11b1df6617da160fe017" have entirely different histories.

23 changed files with 63 additions and 84 deletions

View File

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

View File

@ -38,7 +38,7 @@ init python:
emote=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): emote=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):
def show(): def show():
astoria.show(force=True) astoria.show()
if not renpy.in_rollback(): if not renpy.in_rollback():
renpy.with_statement(trans or d2) renpy.with_statement(trans or d2)

View File

@ -36,7 +36,7 @@ init python in character:
emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):
def show(): def show():
renpy.store.cho.show(force=True) renpy.store.cho.show()
if not renpy.in_rollback(): if not renpy.in_rollback():
renpy.with_statement(trans or renpy.store.d2) renpy.with_statement(trans or renpy.store.d2)

View File

@ -31,7 +31,7 @@ init python:
emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):
def show(): def show():
hermione.show(force=True) hermione.show()
if not renpy.in_rollback(): if not renpy.in_rollback():
renpy.with_statement(trans or d2) renpy.with_statement(trans or d2)

View File

@ -22,7 +22,7 @@ init python:
emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):
def show(): def show():
hooch.show(force=True) hooch.show()
if not renpy.in_rollback(): if not renpy.in_rollback():
renpy.with_statement(trans or d2) renpy.with_statement(trans or d2)

View File

@ -34,7 +34,7 @@ init python:
emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):
def show(): def show():
luna.show(force=True) luna.show()
if not renpy.in_rollback(): if not renpy.in_rollback():
renpy.with_statement(trans or d2) renpy.with_statement(trans or d2)

View File

@ -33,7 +33,7 @@ init python:
emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):
def show(): def show():
susan.show(force=True) susan.show()
if not renpy.in_rollback(): if not renpy.in_rollback():
renpy.with_statement(trans or d2) renpy.with_statement(trans or d2)

View File

@ -44,7 +44,7 @@ init python:
emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):
def show(): def show():
tonks.show(force=True) tonks.show()
if not renpy.in_rollback(): if not renpy.in_rollback():
renpy.with_statement(trans or d2) renpy.with_statement(trans or d2)

View File

@ -126,7 +126,7 @@ label tonks_favor_menu:
$ result = show_events_menu(tonks_requests) $ result = show_events_menu(tonks_requests)
if result in ("disabled", "noncompliant"): if result == "disabled":
"You haven't unlocked this request opportunity yet." "You haven't unlocked this request opportunity yet."
jump .requests jump .requests
elif result == "exit": elif result == "exit":

View File

@ -383,8 +383,7 @@ init python:
def clone(self): def clone(self):
"""Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue.""" """Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue."""
modpath = self.modpath.lstrip("mods/") return DollCloth(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, self.modpath, self)
return DollCloth(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, modpath, self)
def is_modded(self): def is_modded(self):
"""Returns True if item comes from a mod.""" """Returns True if item comes from a mod."""

View File

@ -183,5 +183,4 @@ init python:
def clone(self): def clone(self):
"""Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue.""" """Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue."""
modpath = self.modpath.lstrip("mods/") return DollClothDynamic(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, self.modpath, self._tracking, self)
return DollClothDynamic(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, modpath, self._tracking, self)

View File

@ -78,11 +78,8 @@ init -1 python:
def DollRebuild(): def DollRebuild():
for i in states.dolls: for i in states.dolls:
doll = getattr(store, i) doll = getattr(store, i)
doll.build_image()
if doll.is_stale() and not settings.get("multithreading"):
doll.show(ignore_skipping=True)
renpy.restart_interaction() renpy.restart_interaction()
config.after_load_callbacks.append(DollRebuild) config.after_load_callbacks.append(DollRebuild)
end_skip_callbacks.append(DollRebuild) # end_skip_callbacks.append(DollRebuild)

File diff suppressed because it is too large Load Diff

View File

@ -62,5 +62,4 @@ init python:
def clone(self): def clone(self):
"""Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue.""" """Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue."""
modpath = self.modpath.lstrip("mods/") return DollMakeup(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, self.modpath, self, self.tracking)
return DollMakeup(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, modpath, self, self.tracking)

View File

@ -255,7 +255,7 @@ screen navigation(title=None):
if not title: if not title:
if not renpy.mobile: if not renpy.mobile:
if version_float(UPDATE_VER) > version_float(): if version_float(UPDATE_VER) < version_float():
textbutton "Install updates" action InstallUpdates() style_prefix "update_available" sensitive (not prerelease) textbutton "Install updates" action InstallUpdates() style_prefix "update_available" sensitive (not prerelease)
else: else:
textbutton "Check for updates" action CheckUpdates(300) sensitive (not prerelease) textbutton "Check for updates" action CheckUpdates(300) sensitive (not prerelease)

View File

@ -63,7 +63,7 @@ screen mods():
text "[name]": text "[name]":
style "mods_text" style "mods_text"
size 16 size 16
if not compat >= mods_compatible: if not compat >= compatible_version:
color "#ff8000" color "#ff8000"
text "[version]": text "[version]":
@ -101,7 +101,7 @@ screen mods():
add logo xalign 0.5 size (320, 240) add logo xalign 0.5 size (320, 240)
text "[name]\n[version]" offset (6, 6) text "[name]\n[version]" offset (6, 6)
if not compat >= mods_compatible: if not compat >= compatible_version:
text "{color=#ff8000}[compat]{/color}" align (1.0, 1.0) offset (-6, -3) text "{color=#ff8000}[compat]{/color}" align (1.0, 1.0) offset (-6, -3)
else: else:
text "{color=#228B22}[compat]{/color}" align (1.0, 1.0) offset (-6, -3) text "{color=#228B22}[compat]{/color}" align (1.0, 1.0) offset (-6, -3)

View File

@ -63,7 +63,6 @@ screen preferences_general():
textbutton _("Tooltips") action settings.Toggle("tooltip") textbutton _("Tooltips") action settings.Toggle("tooltip")
textbutton _("System Cursor") action Preference("system cursor", "toggle") textbutton _("System Cursor") action Preference("system cursor", "toggle")
textbutton _("Automatic Updates") action settings.Toggle("updates") textbutton _("Automatic Updates") action settings.Toggle("updates")
textbutton _("Autosave") action ToggleField(store, "_autosave")
default trans = config.intra_transition default trans = config.intra_transition

View File

@ -83,9 +83,6 @@ init python:
return self.achievements.get(id)[3] return self.achievements.get(id)[3]
def unlock(self, id, silent=False): def unlock(self, id, silent=False):
if _in_replay:
return
if persistent.achievements[id][3] == False: if persistent.achievements[id][3] == False:
self.achievements[id][3] = True self.achievements[id][3] = True
persistent.achievements[id][3] = True persistent.achievements[id][3] = True

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 get_deck_score(new_deck) < min: if 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

@ -38,7 +38,7 @@ define config.debug = config.developer or prerelease
define config.console = True define config.console = True
# Game version and naming # Game version and naming
define config.version = "1.45.3" define config.version = "1.45.2"
define compatible_version = 1.451 define compatible_version = 1.451
define config.name = "Witch Trainer Silver" define config.name = "Witch Trainer Silver"
@ -167,8 +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/ExampleMod/**", "all") build.classify("game/mods/MyMod/**", "all")
build.classify("update/generic.webp", "pc mac")
build.classify("**.py", None) build.classify("**.py", None)
build.classify("**.txt", None) build.classify("**.txt", None)

Some files were not shown because too many files have changed in this diff Show More