increment asset file version

This commit is contained in:
fgsfds 2020-06-14 02:40:04 +03:00
parent f02c1cab49
commit a558942beb

View file

@ -20,6 +20,8 @@ def read_local_asset_list(f):
def asset_needs_update(asset, version): def asset_needs_update(asset, version):
if version <= 6 and asset in ["actors/exclamation_box/vanish_cap_box_sides.rgba16.png", "actors/exclamation_box/wing_cap_box_sides.rgba16.png"]:
return True
if version <= 5 and asset == "textures/spooky/bbh_textures.00800.rgba16.png": if version <= 5 and asset == "textures/spooky/bbh_textures.00800.rgba16.png":
return True return True
if version <= 4 and asset in ["textures/mountain/ttm_textures.01800.rgba16.png", "textures/mountain/ttm_textures.05800.rgba16.png"]: if version <= 4 and asset in ["textures/mountain/ttm_textures.01800.rgba16.png", "textures/mountain/ttm_textures.05800.rgba16.png"]:
@ -60,7 +62,7 @@ def clean_assets(local_asset_file):
def main(): def main():
# In case we ever need to change formats of generated files, we keep a # In case we ever need to change formats of generated files, we keep a
# revision ID in the local asset file. # revision ID in the local asset file.
new_version = 6 new_version = 7
try: try:
local_asset_file = open(".assets-local.txt") local_asset_file = open(".assets-local.txt")