mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-12 02:49:20 +00:00
Fix trash achievement not counting all inputs
This commit is contained in:
parent
a00c3c6ef3
commit
b9e09dfb3b
@ -423,8 +423,15 @@ export class ItemProcessorSystem extends GameSystemWithFilter {
|
|||||||
* @param {ProcessorImplementationPayload} payload
|
* @param {ProcessorImplementationPayload} payload
|
||||||
*/
|
*/
|
||||||
process_TRASH(payload) {
|
process_TRASH(payload) {
|
||||||
|
// Hardcoded - 4 inputs
|
||||||
|
for (let i = 0; i < 4; ++i) {
|
||||||
|
const item = /** @type {ShapeItem} */ (payload.items.get(i));
|
||||||
|
if (!item) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
payload.entity.root.signals.achievementCheck.dispatch(ACHIEVEMENTS.trash1000, 1);
|
payload.entity.root.signals.achievementCheck.dispatch(ACHIEVEMENTS.trash1000, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ProcessorImplementationPayload} payload
|
* @param {ProcessorImplementationPayload} payload
|
||||||
@ -547,7 +554,7 @@ export class ItemProcessorSystem extends GameSystemWithFilter {
|
|||||||
const hubComponent = payload.entity.components.Hub;
|
const hubComponent = payload.entity.components.Hub;
|
||||||
assert(hubComponent, "Hub item processor has no hub component");
|
assert(hubComponent, "Hub item processor has no hub component");
|
||||||
|
|
||||||
// Hardcoded
|
// Hardcoded - 16 inputs
|
||||||
for (let i = 0; i < 16; ++i) {
|
for (let i = 0; i < 16; ++i) {
|
||||||
const item = /** @type {ShapeItem} */ (payload.items.get(i));
|
const item = /** @type {ShapeItem} */ (payload.items.get(i));
|
||||||
if (!item) {
|
if (!item) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user