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