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

Update storage to also return if its full or not

This commit is contained in:
tobspr
2020-08-14 13:15:26 +02:00
parent 1dab9539bf
commit 349657bafc
3 changed files with 35 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ import { Entity } from "../entity";
import { DrawParameters } from "../../core/draw_parameters";
import { formatBigNumber, lerp } from "../../core/utils";
import { Loader } from "../../core/loader";
import { enumLayer } from "../root";
import { BOOL_TRUE_SINGLETON, BOOL_FALSE_SINGLETON } from "../items/boolean_item";
export class StorageSystem extends GameSystemWithFilter {
constructor(root) {
@@ -39,6 +39,7 @@ export class StorageSystem extends GameSystemWithFilter {
storageComp.overlayOpacity = lerp(storageComp.overlayOpacity, targetAlpha, 0.05);
pinsComp.slots[0].value = storageComp.storedItem;
pinsComp.slots[1].value = storageComp.getIsFull() ? BOOL_TRUE_SINGLETON : BOOL_FALSE_SINGLETON;
}
}