From 22d340d1698021f7186d8edf2a346e7abe0bed9d Mon Sep 17 00:00:00 2001 From: Brevven Date: Tue, 15 Jun 2021 13:47:23 -0700 Subject: [PATCH] probabalistic sorting --- changelog.txt | 5 +++++ info.json | 2 +- zirconium-recipe.lua | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index eaa2842..8cbf4a7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.6 +Date: 2021-06-16 + Changes: + - Sorting recipes are fully probabilistic to fix crafting ui confusion +--------------------------------------------------------------------------------------------------- Version: 0.0.5 Date: 2021-06-16 Features: diff --git a/info.json b/info.json index 0aed0f9..a19bf34 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzzirconium", - "version": "0.0.5", + "version": "0.0.6", "factorio_version": "1.1", "title": "Zirconium", "author": "Brevven", diff --git a/zirconium-recipe.lua b/zirconium-recipe.lua index 07b626d..3665390 100644 --- a/zirconium-recipe.lua +++ b/zirconium-recipe.lua @@ -223,7 +223,7 @@ data:extend({ energy_required = 1, ingredients = {{"stone", 2}}, results = { - {type="item", name="zircon", amount=1}, + {type="item", name="zircon", amount=1, probability=.999999}, {type="item", name="stone", amount=1, probability=0.5}, } }, @@ -241,7 +241,7 @@ data:extend({ energy_required = 1, ingredients = {{"zircon", 2}}, results = { - {type="item", name="stone", amount=1}, + {type="item", name="stone", amount=1, probability=.999999}, {type="item", name="zircon", amount=1, probability=0.5}, } }