FIND_DROPPED_ENERGY also finds resources



  • Game.rooms.E56S67.find(FIND_DROPPED_ENERGY)
    [9:22:07 PM]
     
    [resource (Z) #5806f12220a71fa65b22ce59],[resource (energy) #5806f43eec6d045917b3599d],[resource (Z) #5806f43eec6d045917b3599e]


  • Unfortunately a known issue. FIND_DROPPED_ENERGY has the same output as FIND_DROPPED_RESOURCES.

    You need to filter out the stuff after the find.


  • Dev Team

    This is intended behavior. FIND_DROPPED_ENERGY has been replaced with FIND_DROPPED_RESOURCES and remains only for backwards compatibility reasons.



  • This caused a really subtle bug in my code.

    Should really throw a warning or something, since it is so misleadingly named.


  • Culture

    I think it should be removed from the documentation. Leave the constant there for backwards compatibility, but don't tell people it's there so they don't accidentally use it.