Refactor scripts into modules

This commit is contained in:
Kiyomichi Kosaka
2025-06-20 16:25:21 +02:00
parent ce17d2d5bf
commit a9b90729ff
7 changed files with 219 additions and 206 deletions
+17 -1
View File
@@ -19,6 +19,20 @@ const COBIE_UNITS = {
astralmillennia: 0x1000000000000000
};
const EONSTRIP_NAMES = [
'Solprime', 'Lunex', 'Terros', 'Aquarion',
'Ventaso', 'Ignisar', 'Crystalos', 'Floraen',
'Faunor', 'Nebulus', 'Astraeus', 'Umbranox',
'Electros', 'Chronar', 'Radiantae', 'Etherion'
];
const MEGASEQUENCE_NAMES = [
'Azurean Tide', 'Sable Gleam', 'Verdanth Starfall', 'Crimson Dusk',
'Cobalt Frost', 'Amber Blaze', 'Viridian Bloom', 'Argent Veil',
'Helian Rise', 'Nocturne Shade', 'Celestine Aura', 'Pyralis Light',
'Zephyrine Whisper', 'Lustran Bounty', 'Umbral Echo', 'Mythran Epoch'
];
function floorDiv(a, b) {
return Math.trunc(a / b);
}
@@ -172,7 +186,9 @@ const Cobie = {
toCobiets,
fromCobiets,
formatCobieTimestamp,
breakdownNonNeg
breakdownNonNeg,
EONSTRIP_NAMES,
MEGASEQUENCE_NAMES
};
if (typeof module !== 'undefined' && module.exports) {