JonathanSafer / screeps

Screeps AI
MIT License
25 stars 7 forks source link

Wipe memory for dead cities #203

Closed jordansafer closed 2 years ago

jordansafer commented 2 years ago

After a city/room is defeated/dies, delete the memory associated with the room. Otherwise Piky keeps operating on the room, and even schedules creeps in its spawn queue. This wastes CPU and memory and is a problem for testing since re-starting a live test leaves the zombie memory from previous runs/cities-