Commit cd923671 authored by Rob Nelson's avatar Rob Nelson
Browse files

Sorting and balance changes.

parent 16751524
import collections
import copy
import os
import re
......@@ -15,7 +16,20 @@ DIVIDER = '-- ' + ('-' * 30)
ANGELSBIOPROCESSING_PATH = ''
alphas = 'abcdefghijklmnopqrstuvwxyz'
VERSION='0.15.3'
VERSION = '0.15.3'
_mapping_tag = yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG
def dict_representer(dumper, data):
return dumper.represent_dict(data.items())
def dict_constructor(loader, node):
return collections.OrderedDict(loader.construct_pairs(node))
yaml.add_representer(collections.OrderedDict, dict_representer)
yaml.add_constructor(_mapping_tag, dict_constructor)
def decode_color(hexcolor):
......@@ -133,16 +147,16 @@ def main():
make_icon(recipe, data, True)
tech_append_recipes['bio-processing-alien'].append(recipeid)
idx += 1
idx = 0
idx = 0
# Make icon for standard pink small artifact recipe
smallpink_icon=''
smallpink_icon = ''
with log.info('Generating icon for alien-goo-artifact recipe...'):
recipe={'name':'alien-goo-artifact'}
make_icon(recipe,{'type':'pink'},False)
smallpink_icon=recipe['icon']
recipe = {'name': 'alien-goo-artifact'}
make_icon(recipe, {'type': 'pink'}, False)
smallpink_icon = recipe['icon']
#Fixes to recipes
# Fixes to recipes
with log.info('Generating recipe for goo -> dish...'):
recipe = config.get('recipes').get('goo2dish')
recipes.append(recipe)
......@@ -187,6 +201,9 @@ def main():
w.writeline('data.raw.recipe["alien-goo-artifact"].subgroup="angelbob-bio-small"')
w.writeline('data.raw.recipe["alien-goo-artifact"].icon="{}"'.format(smallpink_icon))
w.writeline('-- 0.15.3: Alien goo recipe produces way too much.')
w.writeline('data.raw.recipe["alien-goo-artifact"].results[1].amount=1')
# with open('data-updates.lua', 'w') as f:
# w = IndentWriter(f)
# w.writeline('-- Generated by BUILD.py.')
......
......@@ -17,6 +17,8 @@ table.insert(data.raw.technology["bio-processing-alien"].effects, {type = "unloc
data.raw.recipe["alien-goo-artifact"].order="g [alien-goo-artifact-smpurple]"
data.raw.recipe["alien-goo-artifact"].subgroup="angelbob-bio-small"
data.raw.recipe["alien-goo-artifact"].icon="__angelbob-bio__/graphics/icons/alien-goo-artifact.png"
-- 0.15.3: Alien goo recipe produces way too much.
data.raw.recipe["alien-goo-artifact"].results[1].amount=1
-- ------------------------------
-- GROUPS
-- ------------------------------
......
......@@ -191,7 +191,7 @@ data:extend(
}
},
icon = "__angelbob-bio__/graphics/icons/alien-goo-artifact-lgorange.png",
order = "a [alien-goo-artifact-lgorange]"
order = "b [alien-goo-artifact-lgorange]"
},
{
type = "recipe",
......@@ -215,7 +215,7 @@ data:extend(
}
},
icon = "__angelbob-bio__/graphics/icons/alien-goo-artifact-lgyellow.png",
order = "a [alien-goo-artifact-lgyellow]"
order = "c [alien-goo-artifact-lgyellow]"
},
{
type = "recipe",
......@@ -239,7 +239,7 @@ data:extend(
}
},
icon = "__angelbob-bio__/graphics/icons/alien-goo-artifact-lggreen.png",
order = "a [alien-goo-artifact-lggreen]"
order = "d [alien-goo-artifact-lggreen]"
},
{
type = "recipe",
......@@ -263,7 +263,7 @@ data:extend(
}
},
icon = "__angelbob-bio__/graphics/icons/alien-goo-artifact-lgblue.png",
order = "a [alien-goo-artifact-lgblue]"
order = "e [alien-goo-artifact-lgblue]"
},
{
type = "recipe",
......@@ -287,7 +287,7 @@ data:extend(
}
},
icon = "__angelbob-bio__/graphics/icons/alien-goo-artifact-lgpurple.png",
order = "a [alien-goo-artifact-lgpurple]"
order = "f [alien-goo-artifact-lgpurple]"
},
{
type = "recipe",
......@@ -311,7 +311,7 @@ data:extend(
}
},
icon = "__angelbob-bio__/graphics/icons/alien-goo-artifact-lgpink.png",
order = "a [alien-goo-artifact-lgpink]"
order = "g [alien-goo-artifact-lgpink]"
},
{
type = "recipe",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment