Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Destroying structure by invoking Structure#destroy is not logged by Room#getEventLog #139

Open
astro-angelfish opened this issue Nov 3, 2022 · 0 comments

Comments

@astro-angelfish
Copy link

The API showed that EVENT_OBJECT_DESTROYED can return the any object in rooms is destroyed. But in engine code the structure destroy can only be logged when it is destroyed by creep or nuke attack (in

eventLog.push({event: C.EVENT_OBJECT_DESTROYED, objectId: target._id, data: { type: target.type }});
). I wonder if i need to spend a lot CPU to check if structure is changed or overwrite the prototype of Structure? Or it is just missing in the structure destroy code?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant