mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-19 14:29:20 +00:00
Change serializer slot from 2 to 4
This commit is contained in:
parent
661b87e9ed
commit
b879ebceae
@ -26,12 +26,13 @@ export class MetaSplitterBuilding extends MetaBuilding {
|
|||||||
getDimensions(variant) {
|
getDimensions(variant) {
|
||||||
switch (variant) {
|
switch (variant) {
|
||||||
case defaultBuildingVariant:
|
case defaultBuildingVariant:
|
||||||
case enumSplitterVariants.serializer:
|
|
||||||
case enumSplitterVariants.deserializer:
|
|
||||||
return new Vector(2, 1);
|
return new Vector(2, 1);
|
||||||
case enumSplitterVariants.compact:
|
case enumSplitterVariants.compact:
|
||||||
case enumSplitterVariants.compactInverse:
|
case enumSplitterVariants.compactInverse:
|
||||||
return new Vector(1, 1);
|
return new Vector(1, 1);
|
||||||
|
case enumSplitterVariants.serializer:
|
||||||
|
case enumSplitterVariants.deserializer:
|
||||||
|
return new Vector(4, 1);
|
||||||
default:
|
default:
|
||||||
assertAlways(false, "Unknown splitter variant: " + variant);
|
assertAlways(false, "Unknown splitter variant: " + variant);
|
||||||
}
|
}
|
||||||
@ -186,6 +187,14 @@ export class MetaSplitterBuilding extends MetaBuilding {
|
|||||||
pos: new Vector(1, 0),
|
pos: new Vector(1, 0),
|
||||||
directions: [enumDirection.bottom],
|
directions: [enumDirection.bottom],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pos: new Vector(2, 0),
|
||||||
|
directions: [enumDirection.bottom],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pos: new Vector(3, 0),
|
||||||
|
directions: [enumDirection.bottom],
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
entity.components.ItemEjector.setSlots([
|
entity.components.ItemEjector.setSlots([
|
||||||
@ -196,7 +205,7 @@ export class MetaSplitterBuilding extends MetaBuilding {
|
|||||||
{ pos: new Vector(0, 0), direction: enumDirection.top },
|
{ pos: new Vector(0, 0), direction: enumDirection.top },
|
||||||
];
|
];
|
||||||
|
|
||||||
entity.components.ItemProcessor.inputsPerCharge = 2;
|
entity.components.ItemProcessor.inputsPerCharge = 4;
|
||||||
entity.components.ItemProcessor.type = enumItemProcessorTypes.serializer;
|
entity.components.ItemProcessor.type = enumItemProcessorTypes.serializer;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -212,11 +221,15 @@ export class MetaSplitterBuilding extends MetaBuilding {
|
|||||||
entity.components.ItemEjector.setSlots([
|
entity.components.ItemEjector.setSlots([
|
||||||
{ pos: new Vector(0, 0), direction: enumDirection.top },
|
{ pos: new Vector(0, 0), direction: enumDirection.top },
|
||||||
{ pos: new Vector(1, 0), direction: enumDirection.top },
|
{ pos: new Vector(1, 0), direction: enumDirection.top },
|
||||||
|
{ pos: new Vector(2, 0), direction: enumDirection.top },
|
||||||
|
{ pos: new Vector(3, 0), direction: enumDirection.top },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
entity.components.ItemAcceptor.beltUnderlays = [
|
entity.components.ItemAcceptor.beltUnderlays = [
|
||||||
{ pos: new Vector(0, 0), direction: enumDirection.top },
|
{ pos: new Vector(0, 0), direction: enumDirection.top },
|
||||||
{ pos: new Vector(1, 0), direction: enumDirection.top },
|
{ pos: new Vector(1, 0), direction: enumDirection.top },
|
||||||
|
{ pos: new Vector(2, 0), direction: enumDirection.top },
|
||||||
|
{ pos: new Vector(3, 0), direction: enumDirection.top },
|
||||||
];
|
];
|
||||||
|
|
||||||
entity.components.ItemProcessor.inputsPerCharge = 1;
|
entity.components.ItemProcessor.inputsPerCharge = 1;
|
||||||
|
|||||||
@ -474,11 +474,11 @@ buildings:
|
|||||||
|
|
||||||
serializer:
|
serializer:
|
||||||
name: Serializer
|
name: Serializer
|
||||||
description: Serializes two conveyor belts into one.
|
description: Serializes four conveyor belts into one.
|
||||||
|
|
||||||
deserializer:
|
deserializer:
|
||||||
name: Deserializer
|
name: Deserializer
|
||||||
description: Deserializes one conveyor belts into two.
|
description: Deserializes one conveyor belts into four.
|
||||||
|
|
||||||
cutter:
|
cutter:
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -470,11 +470,11 @@ buildings:
|
|||||||
|
|
||||||
serializer:
|
serializer:
|
||||||
name: 整列合流機
|
name: 整列合流機
|
||||||
description: 2本のベルトの内容を順番に1本のベルトに合流します。
|
description: 4本のベルトの内容を順番に1本のベルトに合流します。
|
||||||
|
|
||||||
deserializer:
|
deserializer:
|
||||||
name: 整列分配機
|
name: 整列分配機
|
||||||
description: 1本のベルトの内容を順番に2本のベルトに分配します。
|
description: 1本のベルトの内容を順番に4本のベルトに分配します。
|
||||||
|
|
||||||
cutter:
|
cutter:
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user