Gear-Planer: Skills in der Seelenpraegung (+1 auf aktive bzw. passive Skills der Klasse) aus aion2hub uebernehmen, im Slot-Editor waehlbar und als Bonus "Ausruestung" angerechnet; Spezialitaeten im Guide mit den Symbolen aus dem Spiel

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-10-18 01:26:20 +02:00
parent e443c7ae63
commit efbc83be90
16 changed files with 172 additions and 27 deletions

View file

@ -6674,17 +6674,13 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
.gear-guide-specs li.is-on { border-color: rgba(201, 162, 39, 0.45); background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 600; } .gear-guide-specs li.is-on { border-color: rgba(201, 162, 39, 0.45); background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 600; }
.gear-guide-specs li.is-off { color: var(--text-muted); } .gear-guide-specs li.is-off { color: var(--text-muted); }
.gear-guide-spec-icon { position: relative; display: inline-flex; width: 26px; height: 26px; } .gear-guide-spec-icon { position: relative; display: inline-flex; width: 26px; height: 26px; }
.gear-guide-spec-shield { width: 26px; height: 26px; } .gear-guide-spec-img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1) brightness(0.65); opacity: 0.55; }
.gear-guide-spec-shield-body { fill: #3a3f4a; stroke: #5a606c; stroke-width: 1.2; } .gear-guide-spec-img.is-on { filter: none; opacity: 1; }
.gear-guide-spec-shield-mark { fill: none; stroke: #7d8390; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gear-guide-spec-shield.is-on .gear-guide-spec-shield-body { fill: #3f8f46; stroke: #8fd893; }
.gear-guide-spec-shield.is-on .gear-guide-spec-shield-mark { stroke: #e8f6e9; }
.gear-guide-specs li.is-off .gear-guide-spec-icon { opacity: 0.6; }
.gear-guide-spec-priority { position: absolute; top: -6px; right: -7px; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #f2d27a; color: #1a1a1a; font-size: 0.62rem; font-weight: 700; box-shadow: 0 0 0 2px var(--bg-panel); } .gear-guide-spec-priority { position: absolute; top: -6px; right: -7px; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #f2d27a; color: #1a1a1a; font-size: 0.62rem; font-weight: 700; box-shadow: 0 0 0 2px var(--bg-panel); }
.gear-guide-spec-from { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; } .gear-guide-spec-from { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }
.gear-guide-spec-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: 0.82rem; } .gear-guide-spec-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: 0.82rem; }
.gear-guide-spec-edit label { display: inline-flex; flex-direction: row; align-items: center; gap: 0.35rem; margin: 0; max-width: 100%; } .gear-guide-spec-edit label { display: inline-flex; flex-direction: row; align-items: center; gap: 0.35rem; margin: 0; max-width: 100%; }
.gear-guide-spec-edit .gear-guide-spec-shield { width: 20px; height: 20px; flex-shrink: 0; } .gear-guide-spec-edit .gear-guide-spec-img { width: 20px; height: 20px; flex-shrink: 0; }
.gear-guide-spec-edit-text { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gear-guide-spec-edit-text { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-guide-spec-edit input { width: 3.5rem; } .gear-guide-spec-edit input { width: 3.5rem; }
.gear-guide-why { padding: 0.6rem 0.75rem; border-left: 3px solid var(--gold); border-radius: 0; background: rgba(255, 255, 255, 0.03); font-size: 0.9rem; line-height: 1.55; } .gear-guide-why { padding: 0.6rem 0.75rem; border-left: 3px solid var(--gold); border-radius: 0; background: rgba(255, 255, 255, 0.03); font-size: 0.9rem; line-height: 1.55; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -170,6 +170,11 @@
var unit = option && option.dataset.unit ? ' %' : ''; var unit = option && option.dataset.unit ? ' %' : '';
input.placeholder = min ? String(min).replace('.', ',') + '–' + String(max).replace('.', ',') + unit : 'Wert'; input.placeholder = min ? String(min).replace('.', ',') + '–' + String(max).replace('.', ',') + unit : 'Wert';
input.required = !!min; input.required = !!min;
// Fester Wert (Skill +1): gleich eintragen und nicht aenderbar
var fixed = !!min && min === max;
if (fixed) input.value = String(min);
else if (input.readOnly) input.value = '';
input.readOnly = fixed;
check(); check();
} }
function check() { function check() {

View file

@ -292,7 +292,7 @@ include __DIR__ . '/includes/header.php';
<td> <td>
<?php if ($level > 0): ?> <?php if ($level > 0): ?>
<span class="<?= gear_skill_is_bonus($skill['kind'], $level) ? 'gear-skill-bonus-text' : '' ?>" <span class="<?= gear_skill_is_bonus($skill['kind'], $level) ? 'gear-skill-bonus-text' : '' ?>"
<?= $bonus > 0 ? 'title="' . e('Stufe ' . $ownLevel . ' selbst, +' . $bonus . ' aus Daevanion/Arcana') . '"' : '' ?>><?= $level ?></span> <?= $bonus > 0 ? 'title="' . e('Stufe ' . $ownLevel . ' selbst, +' . $bonus . ' aus Daevanion, Arcana und Ausrüstung') . '"' : '' ?>><?= $level ?></span>
<?php if ($specNumbers): ?> <?php if ($specNumbers): ?>
<span class="text-muted" title="<?= e(implode(', ', array_map(static fn (int $no): string => gear_skill_spec_label($skill, $no), $specNumbers))) ?>"> <span class="text-muted" title="<?= e(implode(', ', array_map(static fn (int $no): string => gear_skill_spec_label($skill, $no), $specNumbers))) ?>">
· <?= e(implode(', ', array_map(static fn (int $no): string => GEAR_SKILL_SPEC_NUMERALS[$no], $specNumbers))) ?> · <?= e(implode(', ', array_map(static fn (int $no): string => GEAR_SKILL_SPEC_NUMERALS[$no], $specNumbers))) ?>
@ -539,6 +539,10 @@ include __DIR__ . '/includes/header.php';
<?php endif; ?> <?php endif; ?>
<?php if ((int) $activeItem['soul_imprint_count'] > 0): ?> <?php if ((int) $activeItem['soul_imprint_count'] > 0): ?>
<?php
$soulSkills = gear_item_soul_skills($activeItem, $set['class_name'] ?? null);
$soulSkillLevel = max(1, (int) ($activeItem['soul_skills']['level'] ?? 1));
?>
<fieldset class="gear-fieldset"> <fieldset class="gear-fieldset">
<legend>Seelenprägung <span class="text-muted">(bis zu <?= (int) $activeItem['soul_imprint_count'] ?>, wie im Spiel gewürfelt)</span></legend> <legend>Seelenprägung <span class="text-muted">(bis zu <?= (int) $activeItem['soul_imprint_count'] ?>, wie im Spiel gewürfelt)</span></legend>
<?php for ($i = 0; $i < (int) $activeItem['soul_imprint_count']; $i++): ?> <?php for ($i = 0; $i < (int) $activeItem['soul_imprint_count']; $i++): ?>
@ -551,8 +555,19 @@ include __DIR__ . '/includes/header.php';
<?= e($stat) ?> (<?= e(gear_format_value((float) $min, $unit)) ?>–<?= e(gear_format_value((float) $max, $unit)) ?>) <?= e($stat) ?> (<?= e(gear_format_value((float) $min, $unit)) ?>–<?= e(gear_format_value((float) $max, $unit)) ?>)
</option> </option>
<?php endforeach; ?> <?php endforeach; ?>
<?php // Skills der Klasse, von denen einer als Seelenpraegung kommen kann (+1 Stufe, zaehlt im Skills-Reiter mit) ?>
<?php if ($soulSkills): ?>
<optgroup label="Skills (+<?= $soulSkillLevel ?> Stufe)">
<?php foreach ($soulSkills as $soulSkillId => $soulSkill): ?>
<?php $soulValue = GEAR_SOUL_SKILL_PREFIX . $soulSkillId; ?>
<option value="<?= e($soulValue) ?>" data-min="<?= $soulSkillLevel ?>" data-max="<?= $soulSkillLevel ?>" data-unit=""<?= $entry && $entry[0] === $soulValue ? ' selected' : '' ?>>
<?= e(gear_skill_display_name($soulSkill)) ?><?= $soulSkill['kind'] === 'passive' ? ' (passiv)' : '' ?> +<?= $soulSkillLevel ?>
</option>
<?php endforeach; ?>
</optgroup>
<?php endif; ?>
</select> </select>
<input type="text" inputmode="decimal" name="soul_value[]" value="<?= $entry ? e(str_replace('.', ',', (string) $entry[1])) : '' ?>" placeholder="Wert" aria-label="Wert Seelenprägung <?= $i + 1 ?>"> <input type="text" inputmode="decimal" name="soul_value[]" value="<?= $entry ? e(str_replace('.', ',', (string) $entry[1])) : '' ?>" placeholder="Wert" aria-label="Wert Seelenprägung <?= $i + 1 ?>"<?= $entry && gear_soul_skill_id((string) $entry[0]) !== null ? ' readonly' : '' ?>>
</div> </div>
<?php endfor; ?> <?php endfor; ?>
</fieldset> </fieldset>
@ -606,7 +621,7 @@ include __DIR__ . '/includes/header.php';
<?php if ((int) $activeItem['enchant_max'] > 0): ?><div><dt>Aufwertung</dt><dd>+<?= (int) $activeRow['enchant'] ?> von +<?= (int) $activeItem['enchant_max'] ?></dd></div><?php endif; ?> <?php if ((int) $activeItem['enchant_max'] > 0): ?><div><dt>Aufwertung</dt><dd>+<?= (int) $activeRow['enchant'] ?> von +<?= (int) $activeItem['enchant_max'] ?></dd></div><?php endif; ?>
<?php if ((int) $activeItem['exceed_max'] > 0): ?><div><dt>Durchbruch</dt><dd><?= (int) $activeRow['exceed'] ?> von <?= (int) $activeItem['exceed_max'] ?></dd></div><?php endif; ?> <?php if ((int) $activeItem['exceed_max'] > 0): ?><div><dt>Durchbruch</dt><dd><?= (int) $activeRow['exceed'] ?> von <?= (int) $activeItem['exceed_max'] ?></dd></div><?php endif; ?>
<?php if ($activeRow['soul_imprint']): ?> <?php if ($activeRow['soul_imprint']): ?>
<div><dt>Seelenprägung</dt><dd><?= e(implode(', ', array_map(static fn (array $s): string => $s[0] . ' ' . str_replace('.', ',', (string) $s[1]), $activeRow['soul_imprint']))) ?></dd></div> <div><dt>Seelenprägung</dt><dd><?= e(implode(', ', array_map('gear_soul_entry_label', $activeRow['soul_imprint']))) ?></dd></div>
<?php endif; ?> <?php endif; ?>
<?php if ($activeRow['manastones']): ?> <?php if ($activeRow['manastones']): ?>
<div><dt>Manasteine</dt><dd><?= e(implode(', ', array_map(static fn (array $s): string => $s[0] . ' ' . (int) $s[1], $activeRow['manastones']))) ?></dd></div> <div><dt>Manasteine</dt><dd><?= e(implode(', ', array_map(static fn (array $s): string => $s[0] . ' ' . (int) $s[1], $activeRow['manastones']))) ?></dd></div>

View file

@ -231,6 +231,11 @@ switch ($action) {
foreach ($item['soul_imprint'] as $entry) { foreach ($item['soul_imprint'] as $entry) {
$ranges[$entry[0]] = $entry; $ranges[$entry[0]] = $entry;
} }
// Skills der Klasse des Sets als Seelenpraegung: feste Stufe (meist +1)
$soulSkillLevel = max(1, (int) ($item['soul_skills']['level'] ?? 1));
foreach (gear_item_soul_skills($item, $set['class_name'] ?? null) as $soulSkillId => $soulSkill) {
$ranges[GEAR_SOUL_SKILL_PREFIX . $soulSkillId] = [GEAR_SOUL_SKILL_PREFIX . $soulSkillId, $soulSkillLevel, $soulSkillLevel, ''];
}
$stats = (array) ($_POST['soul_stat'] ?? []); $stats = (array) ($_POST['soul_stat'] ?? []);
$values = (array) ($_POST['soul_value'] ?? []); $values = (array) ($_POST['soul_value'] ?? []);
foreach ($stats as $i => $stat) { foreach ($stats as $i => $stat) {
@ -240,7 +245,7 @@ switch ($action) {
continue; continue;
} }
if (!isset($ranges[$stat])) { if (!isset($ranges[$stat])) {
$errors[] = 'Seelenprägung „' . $stat . '“ gibt es bei diesem Gegenstand nicht.'; $errors[] = 'Seelenprägung „' . (gear_soul_skill_id($stat) !== null ? 'Skill' : $stat) . '“ gibt es bei diesem Gegenstand (für diese Klasse) nicht.';
continue; continue;
} }
if (isset(array_column($soul, 1, 0)[$stat])) { if (isset(array_column($soul, 1, 0)[$stat])) {

View file

@ -162,10 +162,13 @@ const GEAR_FIELD_LABELS = [
'slot' => 'Slot', 'item_type' => 'Art', 'stats' => 'Grundwerte', 'soul_imprint' => 'Seelenprägung (Spannen)', 'slot' => 'Slot', 'item_type' => 'Art', 'stats' => 'Grundwerte', 'soul_imprint' => 'Seelenprägung (Spannen)',
'soul_imprint_count' => 'Seelenprägung (Anzahl)', 'manastone_slots' => 'Manastein-Sockel', 'godstone_slots' => 'Götterstein-Sockel', 'soul_imprint_count' => 'Seelenprägung (Anzahl)', 'manastone_slots' => 'Manastein-Sockel', 'godstone_slots' => 'Götterstein-Sockel',
'enchant_max' => 'Aufwertung bis', 'enchant_stats' => 'Aufwertung (Maximum)', 'exceed_max' => 'Durchbruch bis', 'exceed_stats' => 'Durchbruch (Maximum)', 'enchant_max' => 'Aufwertung bis', 'enchant_stats' => 'Aufwertung (Maximum)', 'exceed_max' => 'Durchbruch bis', 'exceed_stats' => 'Durchbruch (Maximum)',
'soul_skills' => 'Seelenprägung (Skills)',
]; ];
// Felder, die als JSON in gear_items.data liegen // Felder, die als JSON in gear_items.data liegen
const GEAR_DATA_FIELDS = ['stats', 'soul_imprint', 'soul_imprint_count', 'manastone_slots', 'godstone_slots', 'enchant_max', 'enchant_stats', 'exceed_max', 'exceed_stats']; const GEAR_DATA_FIELDS = ['stats', 'soul_imprint', 'soul_imprint_count', 'soul_skills', 'manastone_slots', 'godstone_slots', 'enchant_max', 'enchant_stats', 'exceed_max', 'exceed_stats'];
// Seelenpraegung auf einen Skill (+Stufe): im Slot gespeichert als ['skill:<Skill-ID>', Stufe]
const GEAR_SOUL_SKILL_PREFIX = 'skill:';
// ---- Katalog ---- // ---- Katalog ----
@ -174,7 +177,7 @@ function gear_item_decode(array $row): array
{ {
$data = json_decode((string) ($row['data'] ?? ''), true) ?: []; $data = json_decode((string) ($row['data'] ?? ''), true) ?: [];
foreach (GEAR_DATA_FIELDS as $field) { foreach (GEAR_DATA_FIELDS as $field) {
$row[$field] = $data[$field] ?? (in_array($field, ['stats', 'soul_imprint', 'enchant_stats', 'exceed_stats'], true) ? [] : 0); $row[$field] = $data[$field] ?? (in_array($field, ['stats', 'soul_imprint', 'soul_skills', 'enchant_stats', 'exceed_stats'], true) ? [] : 0);
} }
unset($row['data']); unset($row['data']);
return $row; return $row;
@ -333,6 +336,88 @@ function gear_soul_text(array $entries): string
)) ?: '–'; )) ?: '–';
} }
/** Skills der Seelenpraegung als Text fuer den Abgleich: "Stufe 1 · Kleriker: Bolt, Divine Aura, …; Gladiator: …" */
function gear_soul_skills_text(array $soulSkills): string
{
$classes = (array) ($soulSkills['classes'] ?? []);
if (!$classes) {
return '–';
}
$parts = [];
foreach ($classes as $class => $names) {
$parts[] = $class . ': ' . implode(', ', (array) $names);
}
return 'Stufe ' . (int) ($soulSkills['level'] ?? 1) . ' · ' . implode('; ', $parts);
}
/**
* Skills, die bei einem Gegenstand fuer die Klasse des Sets als Seelenpraegung kommen koennen - zugeordnet ueber den
* englischen Namen (gear_skills.name). [Skill-ID => Skill]; leer ohne Klasse oder wenn der Gegenstand keine hat.
*
* @return array<int, array>
*/
function gear_item_soul_skills(array $item, ?string $className): array
{
$names = (array) ($item['soul_skills']['classes'][$className ?? ''] ?? []);
if (!$names || $className === null || $className === '') {
return [];
}
$byName = [];
foreach (gear_skills_for_class($className, false) as $skill) {
$byName[mb_strtolower((string) $skill['name'], 'UTF-8')] = $skill;
}
$out = [];
foreach ($names as $name) {
$skill = $byName[mb_strtolower((string) $name, 'UTF-8')] ?? null;
if ($skill) {
$out[(int) $skill['id']] = $skill;
}
}
return $out;
}
/** Skill-ID einer Seelenpraegung "skill:<ID>" oder null, wenn es ein normaler Wert ist. */
function gear_soul_skill_id(string $stat): ?int
{
return str_starts_with($stat, GEAR_SOUL_SKILL_PREFIX) && ctype_digit(substr($stat, strlen(GEAR_SOUL_SKILL_PREFIX)))
? (int) substr($stat, strlen(GEAR_SOUL_SKILL_PREFIX)) : null;
}
/** Eine Seelenpraegung lesbar: "Critical Hit 41" bzw. "Heilkreis +1" */
function gear_soul_entry_label(array $entry): string
{
$skillId = gear_soul_skill_id((string) $entry[0]);
if ($skillId !== null) {
$skill = gear_skill($skillId);
return ($skill ? gear_skill_display_name($skill) : 'Skill #' . $skillId) . ' +' . (int) $entry[1];
}
return $entry[0] . ' ' . str_replace('.', ',', (string) $entry[1]);
}
/**
* Skillstufen aus der Seelenpraegung der Ausruestung: [Skill-ID => Stufen] (mehrere Teile mit demselben Skill zaehlen
* zusammen - die Obergrenze setzt gear_skill_effective_level).
*
* @param array<string, array> $slots Slots eines Sets (gear_slots_for_sets)
* @return array<int, int>
*/
function gear_slots_skill_bonus(array $slots): array
{
$bonus = [];
foreach ($slots as $row) {
if (empty($row['item'])) {
continue;
}
foreach ($row['soul_imprint'] as $entry) {
$skillId = gear_soul_skill_id((string) $entry[0]);
if ($skillId !== null) {
$bonus[$skillId] = ($bonus[$skillId] ?? 0) + max(0, (int) $entry[1]);
}
}
}
return $bonus;
}
/** Unterschiede zwischen gespeichertem und neu ausgelesenem Gegenstand: [[Feld, alt, neu], …] */ /** Unterschiede zwischen gespeichertem und neu ausgelesenem Gegenstand: [[Feld, alt, neu], …] */
function gear_item_diff(?array $old, array $new): array function gear_item_diff(?array $old, array $new): array
{ {
@ -345,6 +430,9 @@ function gear_item_diff(?array $old, array $new): array
if ($field === 'soul_imprint') { if ($field === 'soul_imprint') {
return gear_soul_text((array) $value); return gear_soul_text((array) $value);
} }
if ($field === 'soul_skills') {
return gear_soul_skills_text((array) $value);
}
return $value === null || $value === '' ? '–' : (string) $value; return $value === null || $value === '' ? '–' : (string) $value;
}; };
$before = $old === null ? '–' : $format($old[$field] ?? null); $before = $old === null ? '–' : $format($old[$field] ?? null);

View file

@ -367,7 +367,7 @@ function gear_guide_skill_tile(array $entry, array $notes, bool $active = false)
function gear_guide_level_sources(array $entry): string function gear_guide_level_sources(array $entry): string
{ {
$parts = []; $parts = [];
foreach (['daevanion' => 'Daevanion', 'arcana' => 'Arcana'] as $source => $label) { foreach (['daevanion' => 'Daevanion', 'arcana' => 'Arcana', 'gear' => 'Ausrüstung'] as $source => $label) {
if (!empty($entry['bonus'][$source])) { if (!empty($entry['bonus'][$source])) {
$parts[] = '+' . (int) $entry['bonus'][$source] . ' ' . $label; $parts[] = '+' . (int) $entry['bonus'][$source] . ' ' . $label;
} }
@ -391,12 +391,14 @@ function gear_guide_chosen_parts(array $entry): array
return array_keys(array_filter(gear_skill_part_levels($skill['kind']), static fn (int $from): bool => $level >= $from)); return array_keys(array_filter(gear_skill_part_levels($skill['kind']), static fn (int $from): bool => $level >= $from));
} }
/** Schild-Emblem einer Spezialisierung (wie im Spiel): farbig, wenn gewaehlt, sonst grau. */ /**
function gear_guide_spec_icon(bool $on): string * Symbol einer Spezialisierung wie im Spiel - je Nummer eine Farbe (I gruen, II blau, III gelb, IV orange, V rot,
* assets/images/specs), nicht gewaehlte grau (CSS).
*/
function gear_guide_spec_icon(bool $on, int $no): string
{ {
return '<svg class="gear-guide-spec-shield' . ($on ? ' is-on' : '') . '" viewBox="0 0 24 24" aria-hidden="true">' $no = max(1, min(5, $no));
. '<path class="gear-guide-spec-shield-body" d="M12 2.2 4.2 5.1v5.6c0 5 3.3 9.3 7.8 11 4.5-1.7 7.8-6 7.8-11V5.1z"/>' return '<img class="gear-guide-spec-img' . ($on ? ' is-on' : '') . '" src="' . e(asset_url('/assets/images/specs/spec-' . $no . '.png')) . '" alt="" width="26" height="26" loading="lazy">';
. '<path class="gear-guide-spec-shield-mark" d="M12 6.2v11.2M9.2 9.4 12 6.2l2.8 3.2M8.6 14.2h6.8"/></svg>';
} }
/** Details eines Skills fuer das Feld neben den Kacheln: Name, Ziel-Stufe, Prioritaet, Spezialisierungen, Begruendung. */ /** Details eines Skills fuer das Feld neben den Kacheln: Name, Ziel-Stufe, Prioritaet, Spezialisierungen, Begruendung. */
@ -424,7 +426,7 @@ function gear_guide_skill_detail(array $entry, array $notes, bool $visible): str
$on = in_array($no, $chosen, true); $on = in_array($no, $chosen, true);
$priority = (int) ($note['specs'][$no] ?? 0); $priority = (int) ($note['specs'][$no] ?? 0);
$html .= '<li class="' . ($on ? 'is-on' : 'is-off') . '"' . ($part['en'] !== '' && $part['en'] !== $part['text'] ? ' title="' . e($part['en']) . '"' : '') . '>' $html .= '<li class="' . ($on ? 'is-on' : 'is-off') . '"' . ($part['en'] !== '' && $part['en'] !== $part['text'] ? ' title="' . e($part['en']) . '"' : '') . '>'
. '<span class="gear-guide-spec-icon">' . gear_guide_spec_icon($on) . '<span class="gear-guide-spec-icon">' . gear_guide_spec_icon($on, (int) $no)
. ($priority > 0 && $on ? '<span class="gear-guide-spec-priority">' . $priority . '</span>' : '') . '</span>' . ($priority > 0 && $on ? '<span class="gear-guide-spec-priority">' . $priority . '</span>' : '') . '</span>'
. '<span class="gear-guide-spec-from">ab ' . (int) $part['t'] . '</span>' . '<span class="gear-guide-spec-from">ab ' . (int) $part['t'] . '</span>'
. '<span class="gear-guide-spec-text">' . e($part['text']) . '</span></li>'; . '<span class="gear-guide-spec-text">' . e($part['text']) . '</span></li>';
@ -448,7 +450,7 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
{ {
$guide = gear_guide($set); $guide = gear_guide($set);
$notes = $guide['skills']; $notes = $guide['skills'];
// Erreichte Stufe wie im Skills-Reiter: selbst gesteigert + Boni aus Daevanion und Arcana (bis zur Obergrenze) // Erreichte Stufe wie im Skills-Reiter: selbst gesteigert + Boni aus Daevanion, Arcana und Ausruestung (bis zur Obergrenze)
$bonuses = gear_plan_skill_bonuses($set, $plans); $bonuses = gear_plan_skill_bonuses($set, $plans);
foreach ($planned as $skillId => $entry) { foreach ($planned as $skillId => $entry) {
$own = min((int) $entry['level'], gear_skill_level_max($entry['skill']['kind'])); $own = min((int) $entry['level'], gear_skill_level_max($entry['skill']['kind']));
@ -790,7 +792,7 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
<span class="text-muted">Priorität der Spezialitäten:</span> <span class="text-muted">Priorität der Spezialitäten:</span>
<?php foreach ($chosenSpecs as $no): ?> <?php foreach ($chosenSpecs as $no): ?>
<label title="<?= e($specParts[$no]['text'] ?? '') ?>"> <label title="<?= e($specParts[$no]['text'] ?? '') ?>">
<?= gear_guide_spec_icon(true) ?> <?= gear_guide_spec_icon(true, (int) $no) ?>
<span class="gear-guide-spec-edit-text"><?= e($specParts[$no]['text'] ?? '') ?></span> <span class="gear-guide-spec-edit-text"><?= e($specParts[$no]['text'] ?? '') ?></span>
<input type="number" name="skills[<?= $skillId ?>][specs][<?= $no ?>]" min="0" max="9" value="<?= (int) ($note['specs'][$no] ?? 0) ?: '' ?>" aria-label="Priorität: <?= e($specParts[$no]['text'] ?? '') ?>"> <input type="number" name="skills[<?= $skillId ?>][specs][<?= $no ?>]" min="0" max="9" value="<?= (int) ($note['specs'][$no] ?? 0) ?: '' ?>" aria-label="Priorität: <?= e($specParts[$no]['text'] ?? '') ?>">
</label> </label>

View file

@ -709,7 +709,7 @@ function gear_render_macro_tab(array $set, bool $isOwn, bool $canManage, array $
Q, E, linke und rechte Maustaste). Die Taste für das Makro selbst legst du in den Einstellungen bei der Tastenbelegung fest, Q, E, linke und rechte Maustaste). Die Taste für das Makro selbst legst du in den Einstellungen bei der Tastenbelegung fest,
z. B. eine Maus-Seitentaste – solange du sie gedrückt hältst, läuft das Makro von oben nach unten und beginnt dann von vorn. z. B. eine Maus-Seitentaste – solange du sie gedrückt hältst, läuft das Makro von oben nach unten und beginnt dann von vorn.
Auren und Dauer-Buffs gehören nicht ins Makro (erneut ausgelöst würden sie sich ausschalten), aufgeladene Skills drückst du Auren und Dauer-Buffs gehören nicht ins Makro (erneut ausgelöst würden sie sich ausschalten), aufgeladene Skills drückst du
besser einzeln. Die Stufe an den Symbolen ist die, die du in diesem Set geplant hast (mit den Boni aus Daevanion und Arcana). besser einzeln. Die Stufe an den Symbolen ist die, die du in diesem Set geplant hast (mit den Boni aus Daevanion, Arcana und Ausrüstung).
</p> </p>
</details> </details>
<div class="gear-macro-stage"> <div class="gear-macro-stage">

View file

@ -1115,6 +1115,12 @@ function gear_plan_skill_bonuses(array $set, array $plans): array
$bonuses[$skillId]['arcana'] = $plus; $bonuses[$skillId]['arcana'] = $plus;
} }
} }
// Seelenpraegung der Ausruestung auf einen Skill (+1)
if (!empty($set['id'])) {
foreach (gear_slots_skill_bonus(gear_slots_for_sets([(int) $set['id']])[(int) $set['id']] ?? []) as $skillId => $plus) {
$bonuses[$skillId]['gear'] = $plus;
}
}
return $bonuses; return $bonuses;
} }

View file

@ -65,12 +65,12 @@ function gear_skill_tip_html(array $skill, int $level = 0): string
. '</div>'; . '</div>';
} }
/** Boni aus Daevanion und Arcana an einem Skill: "+4 → 14" (Tooltip: woher). Leer ohne Boni. */ /** Boni aus Daevanion, Arcana und Ausruestung an einem Skill: "+4 → 14" (Tooltip: woher). Leer ohne Boni. */
function gear_skill_boost_html(string $kind, int $level, array $bonus): string function gear_skill_boost_html(string $kind, int $level, array $bonus): string
{ {
$total = (int) array_sum($bonus); $total = (int) array_sum($bonus);
$parts = []; $parts = [];
foreach (['daevanion' => 'Daevanion', 'arcana' => 'Arcana'] as $source => $label) { foreach (['daevanion' => 'Daevanion', 'arcana' => 'Arcana', 'gear' => 'Ausrüstung'] as $source => $label) {
if (!empty($bonus[$source])) { if (!empty($bonus[$source])) {
$parts[] = $label . ' +' . $bonus[$source]; $parts[] = $label . ' +' . $bonus[$source];
} }

View file

@ -623,7 +623,7 @@ function gear_source_planner_specs_from(array $data): array
* *
* @return array{source_id: int, name: string, category: string, grade: string, item_level: int, * @return array{source_id: int, name: string, category: string, grade: string, item_level: int,
* required_level: ?int, slot: string, item_type: string, stats: array, soul_imprint: array, * required_level: ?int, slot: string, item_type: string, stats: array, soul_imprint: array,
* soul_imprint_count: int, manastone_slots: int, godstone_slots: int, enchant_max: int, * soul_imprint_count: int, soul_skills: array, manastone_slots: int, godstone_slots: int, enchant_max: int,
* enchant_stats: array, exceed_max: int, exceed_stats: array, source_version: string} * enchant_stats: array, exceed_max: int, exceed_stats: array, source_version: string}
*/ */
function gear_source_parse_item(string $html): array function gear_source_parse_item(string $html): array
@ -653,6 +653,7 @@ function gear_source_parse_item(string $html): array
'stats' => [], 'stats' => [],
'soul_imprint' => [], 'soul_imprint' => [],
'soul_imprint_count' => 0, 'soul_imprint_count' => 0,
'soul_skills' => [],
'manastone_slots' => 0, 'manastone_slots' => 0,
'godstone_slots' => 0, 'godstone_slots' => 0,
'enchant_max' => 0, 'enchant_max' => 0,
@ -686,7 +687,7 @@ function gear_source_parse_item(string $html): array
$item['stats'][] = [$t[$j], $number[0], $number[1]]; $item['stats'][] = [$t[$j], $number[0], $number[1]];
} }
// Seelenpraegung: "— 4 of these can be selected", dann "Name / 21 ~ 31" (Fertigkeiten danach zaehlen nicht) // Seelenpraegung: "— 4 of these can be selected", dann "Name / 21 ~ 31"
if (($t[$j] ?? '') === 'Soul Imprint' && preg_match('/(\d+) of these can be selected/', $t[$j + 1] ?? '', $m)) { if (($t[$j] ?? '') === 'Soul Imprint' && preg_match('/(\d+) of these can be selected/', $t[$j + 1] ?? '', $m)) {
$item['soul_imprint_count'] = (int) $m[1]; $item['soul_imprint_count'] = (int) $m[1];
for ($k = $j + 2; $k < $n - 1; $k += 2) { for ($k = $j + 2; $k < $n - 1; $k += 2) {
@ -695,6 +696,21 @@ function gear_source_parse_item(string $html): array
} }
$item['soul_imprint'][] = [$t[$k], (float) str_replace(',', '', $r[1]), (float) str_replace(',', '', $r[3]), $r[2]]; $item['soul_imprint'][] = [$t[$k], (float) str_replace(',', '', $r[1]), (float) str_replace(',', '', $r[3]), $r[2]];
} }
// Danach je Klasse die Skills, von denen einer als Seelenpraegung kommen kann: "Cleric / skill / Bolt, Divine
// Aura, …" und "One of the listed skills can roll as a sub-stat (Lv 1)". Ringe nennen aktive, Ruestung passive
// Skills. Namen mit * gibt es nur im Korea-Client, die Klasse Fighter (noch) nicht bei uns.
$classes = [];
for (; $k < $n - 2 && ($t[$k + 1] ?? '') === 'skill'; $k += 3) {
$class = class_from_text($t[$k]);
$names = array_values(array_filter(array_map('trim', explode(',', $t[$k + 2])), static fn (string $name): bool => $name !== '' && !str_ends_with($name, '*')));
if ($class !== null && $names) {
$classes[$class] = $names;
}
}
if ($classes) {
$level = preg_match('/sub-stat \(Lv (\d+)\)/', $t[$k] ?? '', $lv) ? (int) $lv[1] : 1;
$item['soul_skills'] = ['level' => max(1, $level), 'classes' => $classes];
}
} }
} }

View file

@ -19,6 +19,18 @@ const PATCHNOTE_TYPES = [
]; ];
const PATCHNOTES = [ const PATCHNOTES = [
[
'id' => '2026-10-18-a',
'date' => '2026-10-18',
'title' => 'Skills in der Seelenprägung',
'summary' => 'Ringe und andere Teile können wie im Spiel +1 auf einen Skill deiner Klasse würfeln – das lässt sich jetzt im Gear-Planer eintragen und zählt bei den Skillstufen mit.',
'changes' => [
['type' => 'behoben', 'area' => 'Gear-Planer', 'text' => 'Bei der Seelenprägung fehlten die Skills: Ringe können +1 auf einen aktiven Skill würfeln, Rüstung und Schmuck +1 auf einen passiven. Sie stehen jetzt in der Auswahl unter „Skills (+1 Stufe)“ – passend zur Klasse des Sets, der Wert ist fest eingetragen.'],
['type' => 'neu', 'area' => 'Gear-Planer', 'text' => 'Skillstufen aus der Ausrüstung zählen wie die Boni aus Daevanion und Arcana: im Skills-Reiter („Ausrüstung +1“), im Makro, im Vergleich und im Guide.'],
['type' => 'verbessert', 'area' => 'Gear-Planer', 'text' => 'Die Spezialitäten im Guide haben jetzt die Symbole aus dem Spiel – je Spezialität eine eigene Farbe, nicht gewählte grau.'],
['type' => 'neu', 'area' => 'Gear-Planer', 'text' => 'Die Skills der Seelenprägung kommen beim Übernehmen bzw. Abgleichen der Gegenstände von aion2hub mit. Schon übernommene Gegenstände brauchen dafür einmal einen Abgleich mit Übernehmen unter „Gegenstände & Skills verwalten“.', 'audience' => 'leitung'],
],
],
[ [
'id' => '2026-10-17-b', 'id' => '2026-10-17-b',
'date' => '2026-10-17', 'date' => '2026-10-17',