Compare commits

..

4 Commits

Author SHA1 Message Date
Zhilkin Serg cd13fdb4a0 Merge pull request #48776 from int-ua/patch-2
compose.py: use the default values when none provided in config
2021-05-07 10:27:31 +03:00
Zhilkin Serg f962680b25 Merge pull request #48762 from Zeropol/trident-looks-like-something
[Aftershock] make trident looks like pitchfork
2021-05-07 10:27:07 +03:00
Serhiy Zahoriya 29881a2bd8 compose.py: actually use the default values 2021-05-06 23:54:18 +03:00
zeropol e11276f351 make trident looks like pitchfork
Trident had only a symbol, and at the time of this commit had no sprite.
2021-05-05 22:09:44 +02:00
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -245,6 +245,7 @@
{
"type": "GENERIC",
"id": "trident",
"looks_like": "pitchfork",
"name": { "str": "trident" },
"category": "tools",
"description": "A three pronged spear that is surface treated to be used confidently above and below water.",
+3 -3
View File
@@ -157,9 +157,9 @@ class Tileset:
with open(info_path, 'r') as file:
self.info = json.load(file)
self.sprite_width = self.info[0].get('width')
self.sprite_height = self.info[0].get('height')
self.pixelscale = self.info[0].get('pixelscale')
self.sprite_width = self.info[0].get('width', self.sprite_width)
self.sprite_height = self.info[0].get('height', self.sprite_height)
self.pixelscale = self.info[0].get('pixelscale', self.pixelscale)
# TODO: self.errors
self.error_logged = False