SOURCE

const kinds = ["selene", "eos", "oceanus", "themis", "prometheus"];
// 15, 45, 40, 35, 20 Mon

function getTowerFloors(time) {
    const week = time.getUTCDay();
    const hour = time.getUTCHours();
    const floors = [];
    const n = Math.floor(hour / 5)+1;
    con
    for (let i = 0; i < 5; i++) {
        const growth = week<i?7+week-i:week-i;
        floors.push({
            'kind': kinds[i],
            'floor': 15 + growth * 5 + (hour < 1 ? 0 : n)
        });
    }
    return floors;
}

const reference = new Date(Date.parse("2023-02-28 11:30:00 UTC"));

let towerTiers = getTowerFloors(new Date());
console.log(JSON.stringify(towerTiers));
console 命令行工具 X clear

                    
>
console