LuminaWebsite/assets/map/js/config.js
Maaxxs c4f94bf84a Member feedback: raid input checks and fixed raid points, premades in the raid form, live raid page, Lumina-style dialogs, leadership calendar entries, class-based weapon picker, map and tactics fixes
- Raids: "Max. Spieler" only whole numbers up to groups x 5 (max. 10 groups / 50), gearscore only a number; fixed +1 Lumipunkt per participation, other values only with the new raids.points permission; pick an existing premade per group when creating a raid; unchanged legacy values no longer block editing
- Raid page updates itself every 15 s while visible (raids_live.php, cards rendered by includes/raid_card.php), open editors and confirm dialogs are kept
- Restore takes the new raid_id from the bot (archived messages are now deleted in Discord) and moves settings, attendance and awards; website signups send the server display name
- Premades: dissolve by leadership needs a reason, lead gets DMs on join/assign/decline/remove (source/actor_id sent to the bot), transfer picker skips players who already lead a group, website accept keeps the one-group rule, no commas in names
- Site-wide Lumina dialog (assets/js/confirm-dialog.js) replaces confirm/prompt/alert via data-confirm; error flashes are a dialog you confirm with OK
- Calendar: audience per entry (all / leadership takes part / internal) with the new calendar.leadership permission; day cells list all entries and scroll
- Gear planner: main-hand picker filtered by the set's class, mismatches marked, "keine Klasse" option, link to an external skill/Daevanion plan per set
- Map: correct kisk icons (Elyos on Verteron/Abyss, Altgard fixed), per-map max zoom and bounded panning, German texts, data source note
- Tactics: toolbar as a uniform grid, whole-tactic copy, automatic versions with restore and a 90-day trash, official tactics protected
- Global thin gold scrollbars, readable hover colours, "Sedes Luminis" spelling, patch notes and README, schema version 34

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 16:12:18 +02:00

132 lines
No EOL
4.1 KiB
JavaScript

/**
* Aion 2 Map Viewer - Configuration
*/
const CONFIG = {
// Tile settings
TILE_SIZE: 256,
MIN_ZOOM: 2,
MAX_ZOOM: 6,
// World coordinate system (fixed for all maps)
WORLD_MIN_X: 0,
WORLD_MAX_X: 4096,
WORLD_MIN_Y: 0,
WORLD_MAX_Y: 4096,
// Data paths
TILES_DIR: 'data/tiles',
MARKERS_DIR: 'data/markers',
ICONS_DIR: 'data/icons',
// Vorschaubilder der Kartenauswahl - bewusst ausserhalb von data/ (das kommt per FTP),
// damit sie mit dem Code ausgeliefert werden.
PREVIEWS_DIR: 'previews',
DEFAULT_MAP: 'verteron',
// Anzeigenamen, die von data/maps.json abweichen (der Slug bleibt, an ihm haengen
// Kacheln und Taktiken).
MAP_NAMES: {
'elthen': 'Eltnen',
},
// Karten, die es auf unserem Patch noch nicht gibt - werden in der Auswahl und beim
// Ansehen mit einem Hinweis versehen.
MAP_UNAVAILABLE: ['elthen', 'morheim'],
// Gebiete der Kartenauswahl in dieser Reihenfolge, Karten darin ebenfalls sortiert.
// Karten, die hier fehlen, landen unter "Weitere".
MAP_ZONES: [
{ name: 'Elysea', maps: ['poeta', 'verteron', 'elthen'] },
{ name: 'Asmodae', maps: ['ishalgen', 'altgard', 'morheim'] },
{ name: 'Abyss', maps: ['abyss-reshanta-a', 'abyss-reshanta-b', 'chaotic-middle-reshanta', 'chaotic-upper-reshanta'] },
],
// Local maps list (generated by download scripts to avoid CORS)
MAPS_LIST: 'data/maps.json',
// Icons, die unter ihrem Dateinamen nicht (richtig) in data/icons liegen:
// Pfad aus den Markerdaten (ohne ?...) -> Dateiname in data/icons.
// - Die Quelle hat zwei verschiedene kibelisk.png: /admin/... (blauer Elyos-Kisk, Verteron und
// Abyss) und .../location/kibelisk.png (lila Asmodier-Kisk, Morheim). Lokal liegt nur die lila
// Datei - Verteron und Abyss bekommen deshalb den blauen kibelisk-light.png (wie Eltnen).
// - kibelisk2.png (Altgard) fehlt in data/icons - bis dahin der lila Asmodier-Kisk kibelisk.png.
ICON_ALIASES: {
'/admin/assets/icons/kibelisk.png': 'kibelisk-light.png',
'/admin/assets/icons/kibelisk2.png': 'kibelisk.png',
},
// Category symbols (emoji)
CATEGORY_SYMBOLS: {
'Settlement': '🏘️',
'Stronghold': '🏰',
'Dungeon': '🕳️',
'Sealed Dungeon': '🔒',
'Region': '🗺️',
'Updraft': '💨',
'Rift': '⚡',
'Kibelisk': '🐉',
'Verteron Monolith': '🗿',
'Intellect': '🧠',
'Wild Monsters': '🐺',
'Feral': '🦁',
'Nature': '🌿',
'Special': '✨',
'Named Bosses': '💀',
'Citizens': '👤',
'NPC': '🗣️',
'General Goods Merchant': '🛒',
'Events': '🎉',
'Instance Entries': '🚪',
'Storage Manager': '📦',
'Alchemy Table': '⚗️',
'Armorsmithing Table': '🛡️',
'Blacksmithing Table': '⚒️',
'Cooking Table': '🍳',
'Handicrafting': '✂️',
'Morph Merchant': '🔄',
'Odyle': '💎',
'Orihalum Ore': '⛏️',
'Sapphire Gemstone': '💠',
'Diamond Gemstone': '💎',
'Ruby Gemstone': '❤️',
'Aria': '🌸',
'Yggdrasil Log': '🪵',
'Targena': '🍄',
'Kukuru': '🥜',
'Cypri': '🫐',
'Inina': '🌺',
'Coriolus': '🍂',
'Mela': '🍇',
'Empyrean Trace': '🔮',
'Hidden Cube': '📦',
'Boss': '👑',
'Fera': '🐾',
'Natura': '🌱',
'Cogni': '🤖',
'Varian': '🎭',
'Story Quests': '📜',
'Regional Quest': '🏴',
'Spawn Location': '🥚',
'Point of Interest': '⭐'
},
// Category colors by group
CATEGORY_COLORS: {
'Locations': '#3388FF',
'Monsters': '#FF4444',
'NPC': '#44AA44',
'Resources': '#FFAA00',
'Collectibles': '#AA44FF',
'Pets': '#FF66CC',
'Quests': '#FFFF44',
'Spawns': '#44AAAA',
'Community': '#FFFFFF'
}
};