screeps / engine

ISC License
133 stars 66 forks source link

Destroying lab does not drop minerals #60

Closed michael-s-crouch closed 5 years ago

michael-s-crouch commented 7 years ago

Destroying a lab doesn't drop any minerals that were inside on the ground. I think the problem is that engine/src/processor/intents/room/destroy-structure.js is only checking object[resourceType] (which is the equivalent of .store? I think?)

This may also affect nukers full of ghodium; I'm not quite dedicated enough to bug reporting to test that one.

sparr commented 7 years ago

The source here is tricky. Apparently the "type" of all ground resources is "energy" and there's a separate resourceType? I can't quite follow the logic in destroy-structure and _create-energy

Creosteanu commented 6 years ago

Looks done. @artch could be closed?

o4kapuk commented 5 years ago

Fixed