Room.prototype.isFullOnEnergy = function (this: Room) {
    return this.getCurrentResourceAmount(RESOURCE_ENERGY) > this.getStorageLimit() / 2;
};