1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Implement color inverter building

This commit is contained in:
tobspr
2020-07-02 18:16:04 +02:00
parent a77911263d
commit d75fb184a4
7 changed files with 91 additions and 2 deletions

View File

@@ -348,8 +348,11 @@ export class ItemProcessorSystem extends GameSystemWithFilter {
// ADVANCED PROCESSING
case enumItemProcessorTypes.advancedProcessor: {
const shapeItem = /** @type {ShapeItem} */ (items[0].item);
const newItem = this.root.shapeDefinitionMgr.shapeActionInvertColors(shapeItem.definition);
outItems.push({
item: items[0].item,
item: new ShapeItem(newItem),
requiredSlot: 0,
});
break;