Room.prototype.isFullOnPower = function (this: Room) {
    return this.getCurrentResourceAmount(RESOURCE_POWER) > this.getStorageLimit() / 6;
};