Slight improvements to movement. Started using regions.

This commit is contained in:
DouweRavers
2022-05-03 20:28:24 +02:00
parent 4e3ad07fff
commit 1806935c50
4 changed files with 91 additions and 41 deletions

View File

@@ -9,7 +9,7 @@ module.exports = {
update: function () {
for (const room_name in Game.rooms) {
const room = Game.rooms[room_name];
if (Game.time % 1000 == 0) {
if (Game.time % 100 == 0) {
// Place new building types if the max construcion sites isn't achieved yet.
if (room.canConstruct()) {
room.planRoads();