fix(v2): inventory — full item normalization + all visual fixes
1. Item normalization: normalizeItem() handles ALL formats: - Inventory service (snake_case): current_wielded_location, object_class - Plugin raw (PascalCase): CurrentWieldedLocation, ObjectClass - Plugin IntValues: IntValues['10'] for wielded, ['5'] for burden - Sentinel filtering: -1 values properly excluded 2. Equipment slots: armor (object_class=2) fills ALL matching slots. Non-armor uses exact mask match first, then first bit overlap. Body container ID detected to separate worn from pack items. 3. Slot colors: per-slot-type backgrounds matching v1: purple (#3a2555) for jewelry, blue (#1e2e55) for armor, teal (#1e3e3e) for clothing, dark blue (#142040) for weapons 4. Burden: fetches /character-stats/{name} for burden_units and encumbrance_capacity. Shows percentage when available, raw burden otherwise. Bar fills 0-200% mapped to 0-100% height with green/orange/red thresholds. 5. Mana panel: shows equipped items with current/max mana + estimated time remaining. State dot green/red. Sorted by mana ascending. 6. Fonts: switched to system font stack (-apple-system etc.) instead of Palatino for crisp rendering. 7. Tooltip: proper system font, larger text (13px), structured sections Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2b1c06a5e0
commit
a8078c51ec
3 changed files with 266 additions and 242 deletions
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Mosswart Overlord v2</title>
|
||||
<link rel="icon" type="image/png" href="/icons/7735.png" />
|
||||
<script type="module" crossorigin src="/v2/assets/index-CdNDfIK0.js"></script>
|
||||
<script type="module" crossorigin src="/v2/assets/index-DddmA07v.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/v2/assets/index-DrsM2PEe.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue