PTR Changelog 2019-12-21


  • Dev Team

    This post describes changes on the Public Test Realm.

    • Added new method StructureLab.reverseReaction to "break down" boosts to their components (see discussion).

    • Added new method Game.map.getRoomStatus to determine is the room located in Novice or Respawn Area (see discussion). This outdates Game.map.isRoomAvailable which is deprecated now. Game.map.isRoomProtected has been removed since it's been deprecated long time ago.

    • Added UI option to hide the link to Steam profile (see discussion).

    • Changed error codes of StructureNuker.launchNuke: now it returns ERR_INVALID_TARGET if either source room or target room is part of a Novice or Respawn Area

    • Changed error codes of Room.createConstructionSite: now it returns ERR_NOT_OWNER if the room is owned or reserved by another player.

    • Changed Creep.upgradeController so that controller level-up happens on the same tick when StructureController.ticksToDowngrade becomes full.

    • Changed pathfinding default value of heuristicWeight from 1 to 1.2 for better performance. This affects PathFinder.search, Room.findPath, RoomPosition.findPathTo, Creep.moveTo, PowerCreep.moveTo.

    • Room.name property is now immutable.

    • Changed behavior or NPC invaders, now they shouldn't attack structures which are not on their way.

    • Fixed some edge case inconsistencies in Store methods.

    This update is deployed to ptr private server branch (version 4.1.0-beta.1) on both npm and Steam:

    npm install screeps@ptr
    

    👌


  • PTR inclusive "StructureLab.reverseReaction" runs fine for me