Skip to content

Commit

Permalink
Use the correct sprite for max level house
Browse files Browse the repository at this point in the history
  • Loading branch information
Sketchy502 committed Mar 4, 2018
1 parent c0c8ed7 commit 30c3ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdv/imagegeneration/farm.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ def generateFarm(season, data, assets=None):
print(e)

if item.name == "House":
house_index = 2 if item.index == 3 else item.index
try:
house_img = cropImg(assets['buildings']['house'], item.index,
house_img = cropImg(assets['buildings']['house'], house_index,
defaultSize=(160, 144), objectSize=(160, 144))
farm_base.paste(house_img, (item.x * 16, item.y * 16 - 16 * item.h), house_img)
except Exception as e:
Expand Down

0 comments on commit 30c3ba4

Please sign in to comment.