converter now has cycleLength. storage save load fix

This commit is contained in:
azykov@mail.ru
2026-09-01 09:52:52 +03:00
parent b9c0c0ee28
commit b14b60858c
5 changed files with 148 additions and 81 deletions
+13 -5
View File
@@ -16,14 +16,16 @@ export const defaultGame: () => SerializedGame = () => ({
pins: [
{
resource: 'wood',
rate: 1,
},
{
resource: 'stone',
rate: 0.1,
},
],
},
rules: {
cycleLength: 1,
outputRates: { wood: 1, stone: 0.1 },
}
},
},
{
@@ -36,7 +38,6 @@ export const defaultGame: () => SerializedGame = () => ({
pins: [
{
resource: 'wood',
rate: 0.5,
link: { target: 'forest.1', resource: 'wood' },
},
]
@@ -45,10 +46,14 @@ export const defaultGame: () => SerializedGame = () => ({
pins: [
{
resource: 'plank',
rate: 1,
},
],
},
rules: {
cycleLength: 1.8,
inputRates: { wood: 1 },
outputRates: { plank: 2 },
},
},
},
{
@@ -61,7 +66,6 @@ export const defaultGame: () => SerializedGame = () => ({
pins: [
{
resource: 'plank',
rate: 1,
link: { target: 'sawmill.1', resource: 'plank' },
},
],
@@ -69,6 +73,10 @@ export const defaultGame: () => SerializedGame = () => ({
outputs: {
pins: [],
},
rules: {
cycleLength: 1,
inputRates: { plank: 1 },
},
},
},
],