Transfering energy to controller
-
room E4S9 i'm running the code
creep.transferEnergy(creep.room.controller)
and this returns a -7. Are controllers not a valid target for transferEnergy?
-
You should be using
creep.claimController(creep.room.controller)
to claim it, and thencreep.upgradeController(creep.room.controller)
to pump energy into it.
-
Hey Athanasius, welcome to the screeps community!
Can you please first check if something is perhaps wrong with your code, before flooding the Forum?