screeps / engine

ISC License
133 stars 66 forks source link

Add missing energySpent to EVENT_BUILD data #112

Open pkoziol opened 5 years ago

pkoziol commented 5 years ago

Documentation says that EVENT_BUILD data should have energySpent property, but it doesn't (and because of that all my graphs are flat 😞).

sparr commented 1 year ago

EVENT_BUILD has since been updated to include the following:

            targetId: target._id,
            amount: boostedEffect,
            structureType: target.structureType,
            x: target.x,
            y: target.y,
            incomplete

energySpent is still in the docs (https://docs.screeps.com/api/#Room.getEventLog) and none of the new values are.