display refactoring

This commit is contained in:
azykov@mail.ru
2026-09-03 11:52:44 +03:00
parent 51f9d44378
commit 557d22517a
10 changed files with 196 additions and 73 deletions
+10 -10
View File
@@ -15,7 +15,7 @@ export const defaultGame: () => SerializedGame = () => ({
outputs: {
pins: [
{
resource: 'wood',
resource: 'tree',
},
{
resource: 'stone',
@@ -24,7 +24,7 @@ export const defaultGame: () => SerializedGame = () => ({
},
rules: {
cycleLength: 1,
outputRates: { wood: 1, stone: 0.1 },
outputRates: { tree: 1, stone: 0.1 },
}
},
},
@@ -37,22 +37,22 @@ export const defaultGame: () => SerializedGame = () => ({
inputs: {
pins: [
{
resource: 'wood',
link: { target: 'forest.1', resource: 'wood' },
resource: 'tree',
link: { target: 'forest.1', resource: 'tree' },
},
]
},
outputs: {
pins: [
{
resource: 'plank',
resource: 'wood',
},
],
},
rules: {
cycleLength: 1.8,
inputRates: { wood: 1 },
outputRates: { plank: 2 },
inputRates: { tree: 1 },
outputRates: { wood: 2 },
},
},
},
@@ -65,8 +65,8 @@ export const defaultGame: () => SerializedGame = () => ({
inputs: {
pins: [
{
resource: 'plank',
link: { target: 'sawmill.1', resource: 'plank' },
resource: 'wood',
link: { target: 'sawmill.1', resource: 'wood' },
},
],
},
@@ -75,7 +75,7 @@ export const defaultGame: () => SerializedGame = () => ({
},
rules: {
cycleLength: 1,
inputRates: { plank: 1 },
inputRates: { wood: 1 },
},
},
},