Gameplay changes
- Deployed NPC Invader Raids system.
- Increased containers decay time from 100 ticks to 500 ticks if the room is owned.
- Decreased dismantling power from 100 hits to 50 hits returning 0.25 energy units per tick per
WORKbody part.
API changes
- Important: the new
PathFinderis now activated by default. CallPathFinder.use(false)in the beginning of your script to revert to the old pathfinding. PathFinder.searchchanges:- If you return
falsefrom theroomCallback, the requested room will not be searched, and it won’t count againstmaxRooms. heuristicWeightoption is set to 1.2 by default.
- If you return
Game.map.findRoutemethod has been completely rewritten. There is now therouteCallbackoption which can be used to control rooms pathfinding costs (thanks to The_General).Creep.upgradeControllernow can be used within range of 3 tiles.- Added new signature to the
RoomPosition.inRangeTomethod:inRangeTo(x,y,range). Structure.transfernow can be used even for hostile structures, i.e. you can “steal” resources this way. TheERR_NOT_OWNERcode will only be returned if you are not the owner of the target creep, or there is a hostile rampart on top of the structure.- Updated runtime script servers to Node.js 5.10.1.