MarkoSulamagi / Screeps-typescript-skeleton

Screeps typescript project skeleton
https://screeps.com
6 stars 5 forks source link

game-manager.ts does not compile because of missing type assertion #12

Open ratuple opened 8 years ago

ratuple commented 8 years ago

The latest screeps typescript declarations do not allow the current demo logic and the skeleton does not compile therefore. The line has to be changed to the following: harvester.tryHarvest( Game.creeps["Argos"].room.find(FIND_SOURCES_ACTIVE)[0]);