forked from SilverStudioGames/WTS
Bugfix
* Fixed numbered additional layers ignoring their assigned number layer * Added save compatibility patch
This commit is contained in:
parent
a0b0c074d3
commit
c278e9d551
@ -58,6 +58,8 @@ init python:
|
|||||||
path = "{}{}_{}.webp".format(self.imagepath, i, x)
|
path = "{}{}_{}.webp".format(self.imagepath, i, x)
|
||||||
if renpy.loadable(path):
|
if renpy.loadable(path):
|
||||||
self.__dict__[x].append(path)
|
self.__dict__[x].append(path)
|
||||||
|
else:
|
||||||
|
self.__dict__[x].append(None)
|
||||||
|
|
||||||
path = "{}outline_{}.webp".format(self.imagepath, x)
|
path = "{}outline_{}.webp".format(self.imagepath, x)
|
||||||
self.__dict__[x+"_outline"] = path if renpy.loadable(path) else None
|
self.__dict__[x+"_outline"] = path if renpy.loadable(path) else None
|
||||||
@ -147,7 +149,7 @@ init python:
|
|||||||
def get_back(self):
|
def get_back(self):
|
||||||
"""Returns a list of layers displayed in the back of object/character"""
|
"""Returns a list of layers displayed in the back of object/character"""
|
||||||
back_outline = [self.back_outline] if self.back_outline else []
|
back_outline = [self.back_outline] if self.back_outline else []
|
||||||
sprites = [self.apply_color(x, n) for n, x in enumerate(self.back)] + back_outline
|
sprites = [self.apply_color(x, n) for n, x in enumerate(self.back) if x] + back_outline
|
||||||
if sprites:
|
if sprites:
|
||||||
return (Fixed(*sprites, fit_first=True), -100+self.zorder)
|
return (Fixed(*sprites, fit_first=True), -100+self.zorder)
|
||||||
|
|
||||||
@ -157,7 +159,7 @@ init python:
|
|||||||
def get_front(self):
|
def get_front(self):
|
||||||
"""Returns a list of layers displayed in the front of object/character"""
|
"""Returns a list of layers displayed in the front of object/character"""
|
||||||
front_outline = [self.front_outline] if self.front_outline else []
|
front_outline = [self.front_outline] if self.front_outline else []
|
||||||
sprites = [self.apply_color(x, n) for n, x in enumerate(self.front)] + front_outline
|
sprites = [self.apply_color(x, n) for n, x in enumerate(self.front) if x] + front_outline
|
||||||
if sprites:
|
if sprites:
|
||||||
return (Fixed(*sprites, fit_first=True), 100+self.zorder)
|
return (Fixed(*sprites, fit_first=True), 100+self.zorder)
|
||||||
|
|
||||||
|
@ -101,6 +101,15 @@ init python:
|
|||||||
col = Color(tuple(col))
|
col = Color(tuple(col))
|
||||||
store.colorpicker.favorites[i] = col
|
store.colorpicker.favorites[i] = col
|
||||||
|
|
||||||
|
if current <= 1.433:
|
||||||
|
for i in CHARACTERS:
|
||||||
|
char = get_character_object(i)
|
||||||
|
|
||||||
|
for c in char.wardrobe_list:
|
||||||
|
c.set_layers()
|
||||||
|
|
||||||
|
char.rebuild()
|
||||||
|
|
||||||
if current > latest:
|
if current > latest:
|
||||||
raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))
|
raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user