Bug fix, save compatibility

* Fixed zorder issue with Tonks' office outfit accessory
This commit is contained in:
LoafyLemon 2024-03-30 20:11:56 +00:00
parent b54a65a7ee
commit f06d33cd8d
3 changed files with 5 additions and 2 deletions

View File

@ -206,7 +206,7 @@ default ton_outfit_mechanic = DollOutfit([ton_hair_mechanic, ton_top_vest_mechan
default ton_robe_office = DollCloth("tonks", ("upper body", "robes"), "robe", "office",["#353843ff", "#fff24aff"])
default ton_top_office = DollCloth("tonks", ("upper body", "shirts"), "top", "office", ["#e7e7e7ff", "#d1cebbff"])
default ton_bottoms_office = DollCloth("tonks", ("lower body", "trousers"), "bottom", "office",["#353843ff"])
default ton_accessory_office = DollCloth("tonks", ("misc", "accessory"), "accessory", "office_pin", ["#e7e7e7ff", "#fff24aff", "#d8422cff"], zorder=225)
default ton_accessory_office = DollCloth("tonks", ("misc", "accessory"), "accessory", "office_pin", ["#e7e7e7ff", "#fff24aff", "#d8422cff"], zorder=235)
default ton_outfit_office = DollOutfit([ton_hair_base, ton_robe_office, ton_top_office, ton_bottoms_office, ton_accessory_office], price=450, name="SECS Outfit", desc="A smart suit for a clever girl.")

View File

@ -37,7 +37,7 @@ define config.debug = config.developer or prerelease
define config.console = True
# Game version and naming
define config.version = "1.46"
define config.version = "1.46.1"
define compatible_version = 1.451
define config.name = "Witch Trainer Silver"

View File

@ -211,6 +211,9 @@ init python:
doll.body.matrix = IdentityMatrix()
if current < 1.461:
getattr(store, "ton_accessory_office").zorder = 235
if current > latest:
raise Exception(f"Loaded save file is incompatible. (Save Version: {current}, Game Version: {latest})")