PTR Changelog 2016-07-07
-
This post describes changes on the Public Test Realm. The estimated launch date is July 11.
- Introduced
Creep.withdraw
method. It replaces all structures’transfer
methods which are now considered deprecated. - Executing
StructureSpawn.createCreep
now inserts a new dummyCreep
object intoGame.creeps
hash immediately. Theid
property of such object is undefined until the next tick. - Executing
Room.createFlag
now inserts a newFlag
object intoGame.flags
hash immediately.
- Introduced
-
Hey, I like the `Creep.withdraw`. Will PTR also be in a status soonish again in a status where the changes can be tested an implemented. Currently the tick duration seems to be between 5 seconds and ~8 hours, which takes a long time to test
-
PTR has been restarted with this patch, it should be stable now.
-
With the new withdraw, could we add withdraw options?
something in the lines of:
creep.withdraw(structure, [ {resource: RESOURCE_ENERGY, amount: 500 }, {resource: RESOURCE_GHODIUM, amount: 500 } ] );
Also allowing creep.transfer multiple times per tick would be a huge plus (transferring different kind of resources in 1 tick mainly). I dont think we would mine the extra 0.2 CPU hit