Gear-Planer Guide: Makro wie im Spiel (Nummer, Skill mit Tasten-Abzeichen und Stufe, Verzoegerung auf der Trennlinie); Daevanion-Brett 600 px mit Faehigkeits- und Attributeffekten rechts daneben, Felder mit Abstand, Startfeld mit dem Emblem der Klasse; Planer-Brett 760 px
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9509d19660
commit
22d50401bd
3 changed files with 93 additions and 21 deletions
|
|
@ -6724,10 +6724,35 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-guide-hotbar-note { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
|
.gear-guide-hotbar-note { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
|
||||||
.gear-guide-subhead { margin: 1rem 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
.gear-guide-subhead { margin: 1rem 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||||
.gear-guide-subhead .text-muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
|
.gear-guide-subhead .text-muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
|
||||||
.gear-guide-macro { margin: 0; padding: 0; list-style: none; counter-reset: macro; display: flex; flex-direction: column; gap: 0.35rem; }
|
/* Makro wie die Liste im Spiel: grosse Nummer, Skill mit Tasten-Abzeichen und Stufe, Verzoegerung auf der Trennlinie */
|
||||||
.gear-guide-macro li { counter-increment: macro; display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; }
|
.gear-guide-macro {
|
||||||
.gear-guide-macro li::before { content: counter(macro); min-width: 1.2rem; color: var(--text-muted); font-size: 0.78rem; text-align: right; }
|
margin: 0; padding: 0.6rem 0.9rem 0.4rem; list-style: none; counter-reset: macro;
|
||||||
.gear-guide-macro-delay { margin-left: auto; font-size: 0.78rem; }
|
border-radius: 10px; background: linear-gradient(180deg, #23272f, #1c2027); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
.gear-guide-macro li { position: relative; counter-increment: macro; display: flex; flex-direction: column; align-items: center; padding-top: 0.5rem; }
|
||||||
|
.gear-guide-macro li::before { content: counter(macro); position: absolute; left: 0.2rem; top: 1.4rem; color: #d8cdb4; font-size: 2rem; font-weight: 700; line-height: 1; }
|
||||||
|
.gear-guide-macro-skill { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; max-width: calc(100% - 5rem); text-align: center; }
|
||||||
|
.gear-guide-macro-skill strong { font-size: 0.95rem; }
|
||||||
|
.gear-guide-macro-skill small { font-size: 0.75rem; line-height: 1.3; }
|
||||||
|
.gear-guide-macro-icon {
|
||||||
|
position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #0b0d11; border-radius: 3px;
|
||||||
|
background: #12151b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden;
|
||||||
|
}
|
||||||
|
.gear-guide-macro-icon img { width: 100%; height: 100%; object-fit: cover; }
|
||||||
|
.gear-guide-macro-icon .gear-macro-lv { display: none; }
|
||||||
|
.gear-guide-macro-icon .gear-macro-initial { font-size: 1.6rem; color: var(--text-muted); }
|
||||||
|
.gear-guide-macro-badge { position: absolute; left: 2px; top: 2px; }
|
||||||
|
.gear-guide-macro .gear-guide-macro-badge .gear-macro-key {
|
||||||
|
min-width: 15px; height: 15px; padding: 0 2px; border: none; border-radius: 2px; background: rgba(0, 0, 0, 0.85); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 15px;
|
||||||
|
}
|
||||||
|
.gear-guide-macro .gear-guide-macro-badge .gear-macro-key svg { width: 8px; height: 11px; }
|
||||||
|
.gear-guide-macro-level { position: absolute; right: 3px; bottom: 1px; color: #fff; font-size: 0.78rem; font-weight: 700; text-shadow: 0 0 3px #000, 0 0 2px #000; }
|
||||||
|
.gear-guide-macro-delay {
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; margin: 0.55rem 0 0.25rem;
|
||||||
|
color: #e8e8e8; font-size: 0.85rem; font-weight: 600;
|
||||||
|
}
|
||||||
|
.gear-guide-macro-delay::before, .gear-guide-macro-delay::after { content: ''; flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, 0.12); }
|
||||||
|
.gear-guide-macro-delay b { min-width: 4.5rem; padding: 0.15rem 0.6rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 3px; background: #14171d; text-align: center; }
|
||||||
.gear-guide-note-row { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
|
.gear-guide-note-row { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
|
||||||
.gear-guide-note-row:last-child { border-bottom: 0; }
|
.gear-guide-note-row:last-child { border-bottom: 0; }
|
||||||
.gear-guide-note-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
|
.gear-guide-note-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
|
||||||
|
|
@ -6781,13 +6806,16 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-guide-dv-tab:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.07); color: var(--text); box-shadow: none; }
|
.gear-guide-dv-tab:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.07); color: var(--text); box-shadow: none; }
|
||||||
.gear-guide-dv-tab.is-active { border-color: var(--gold); background: rgba(201, 162, 39, 0.13); }
|
.gear-guide-dv-tab.is-active { border-color: var(--gold); background: rgba(201, 162, 39, 0.13); }
|
||||||
.gear-guide-dv-tab.is-active strong { color: var(--gold); }
|
.gear-guide-dv-tab.is-active strong { color: var(--gold); }
|
||||||
.gear-guide-dv-pane { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
|
.gear-guide-dv-pane { display: grid; grid-template-columns: minmax(0, 600px) minmax(220px, 320px); justify-content: center; gap: 1.25rem; align-items: start; margin-bottom: 1rem; }
|
||||||
.gear-guide-dv-pane[hidden] { display: none; }
|
.gear-guide-dv-pane[hidden] { display: none; }
|
||||||
.gear-guide-dv-board { width: min(100%, 820px); }
|
.gear-guide-dv-board { width: 100%; }
|
||||||
.gear-guide-dv-board .gear-dv-grid { border: 1px solid rgba(201, 162, 39, 0.18); }
|
.gear-guide-dv-board .gear-dv-grid { border: 1px solid rgba(201, 162, 39, 0.18); }
|
||||||
.gear-guide-dv-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; gap: 0 2rem; width: min(100%, 820px); }
|
.gear-guide-dv-side-head { margin: 0 0 0.3rem; text-align: center; }
|
||||||
.gear-guide-dv-side > .gear-skills-kind, .gear-guide-dv-side > .gear-dv-count { grid-column: 1 / -1; }
|
.gear-guide-dv-side-head strong { display: block; color: var(--gold); font-size: 1.05rem; }
|
||||||
.gear-guide-dv-side .gear-skills-kind { margin-top: 0; }
|
.gear-guide-dv-side-head .text-muted { font-size: 0.8rem; }
|
||||||
|
.gear-guide-dv-effects { position: relative; margin: 1rem 0 0.7rem; padding-bottom: 0.55rem; text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--text); }
|
||||||
|
.gear-guide-dv-effects::after { content: '✦'; position: absolute; left: 0; right: 0; bottom: -0.45rem; color: #c8cdd8; font-size: 0.7rem; text-align: center; background: linear-gradient(90deg, transparent, rgba(200, 205, 216, 0.35) 30%, rgba(200, 205, 216, 0.35) 70%, transparent) center / 100% 1px no-repeat; }
|
||||||
|
.gear-guide-dv-side .gear-plan-skill-bonus span { color: #4fd3e6; text-decoration: underline; text-underline-offset: 2px; }
|
||||||
.gear-guide-dv-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 0.8rem; padding: 0; list-style: none; color: var(--text-muted); font-size: 0.8rem; }
|
.gear-guide-dv-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 0.8rem; padding: 0; list-style: none; color: var(--text-muted); font-size: 0.8rem; }
|
||||||
.gear-guide-dv-legend li { display: flex; align-items: center; gap: 0.35rem; }
|
.gear-guide-dv-legend li { display: flex; align-items: center; gap: 0.35rem; }
|
||||||
.gear-guide-dv-total { border-top: 1px solid var(--border); padding-top: 0.6rem; }
|
.gear-guide-dv-total { border-top: 1px solid var(--border); padding-top: 0.6rem; }
|
||||||
|
|
@ -6798,6 +6826,10 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-guide-gear-stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); min-width: 0; }
|
.gear-guide-gear-stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); min-width: 0; }
|
||||||
.gear-guide-gear-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
.gear-guide-gear-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.gear-guide-gear-stat strong { font-size: 1.2rem; white-space: nowrap; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
|
.gear-guide-gear-stat strong { font-size: 1.2rem; white-space: nowrap; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.gear-guide-dv-pane { grid-template-columns: minmax(0, 1fr); }
|
||||||
|
.gear-guide-dv-board { width: min(100%, 600px); justify-self: center; }
|
||||||
|
}
|
||||||
.gear-guide-gear-stat small { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
|
.gear-guide-gear-stat small { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
|
||||||
.gear-guide-gear-bar { display: block; height: 4px; margin-top: 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
|
.gear-guide-gear-bar { display: block; height: 4px; margin-top: 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
|
||||||
.gear-guide-gear-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
|
.gear-guide-gear-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
|
||||||
|
|
@ -8026,9 +8058,9 @@ button.gear-tab.is-active, button.gear-tab.is-active:hover { background: rgba(20
|
||||||
.gear-dv-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
|
.gear-dv-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
|
||||||
/* Jedes Brett gleich gross und mittig (11x11, 13x13 oder 15x15 Felder auf derselben Flaeche, die Felder passen sich an),
|
/* Jedes Brett gleich gross und mittig (11x11, 13x13 oder 15x15 Felder auf derselben Flaeche, die Felder passen sich an),
|
||||||
die Werte des Bretts darunter - so aendert nichts neben dem Brett dessen Groesse */
|
die Werte des Bretts darunter - so aendert nichts neben dem Brett dessen Groesse */
|
||||||
.gear-dv-board-head { width: min(100%, 860px); margin: 0 auto; }
|
.gear-dv-board-head { width: min(100%, 760px); margin: 0 auto; }
|
||||||
.gear-dv-layout { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 0.6rem; }
|
.gear-dv-layout { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 0.6rem; }
|
||||||
.gear-dv-scroll { width: min(100%, 860px); overflow-x: auto; }
|
.gear-dv-scroll { width: min(100%, 760px); overflow-x: auto; }
|
||||||
.gear-dv-grid {
|
.gear-dv-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
|
grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
|
||||||
|
|
@ -8077,19 +8109,23 @@ label.gear-dv-node.is-open:hover .gear-dv-cell, label.gear-dv-node.is-on:hover .
|
||||||
.rune-active { --rune-off: url('../images/daevanion/active-off.png'); --rune-on: url('../images/daevanion/active-on.png'); --rune-glow: rgba(80, 150, 255, 0.6); }
|
.rune-active { --rune-off: url('../images/daevanion/active-off.png'); --rune-on: url('../images/daevanion/active-on.png'); --rune-glow: rgba(80, 150, 255, 0.6); }
|
||||||
.rune-unique { --rune-off: url('../images/daevanion/unique-off.png'); --rune-on: url('../images/daevanion/unique-on.png'); --rune-glow: rgba(255, 140, 50, 0.65); }
|
.rune-unique { --rune-off: url('../images/daevanion/unique-off.png'); --rune-on: url('../images/daevanion/unique-on.png'); --rune-glow: rgba(255, 140, 50, 0.65); }
|
||||||
.gear-dv-node[class*=" rune-"] .gear-dv-cell {
|
.gear-dv-node[class*=" rune-"] .gear-dv-cell {
|
||||||
width: 94%; height: 94%; border: none; border-radius: 14%;
|
width: 82%; height: 82%; border: none; border-radius: 14%;
|
||||||
background: var(--rune-off) center / contain no-repeat; box-shadow: none;
|
background: var(--rune-off) center / contain no-repeat; box-shadow: none;
|
||||||
}
|
}
|
||||||
.gear-dv-node[class*=" rune-"].is-on .gear-dv-cell { background-image: var(--rune-on); box-shadow: 0 0 7px var(--rune-glow); }
|
.gear-dv-node[class*=" rune-"].is-on .gear-dv-cell { background-image: var(--rune-on); box-shadow: 0 0 7px var(--rune-glow); }
|
||||||
.gear-dv-node[class*=" rune-"].is-open .gear-dv-cell { box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.55), 0 0 6px rgba(201, 162, 39, 0.25); filter: brightness(1.3); }
|
.gear-dv-node[class*=" rune-"].is-open .gear-dv-cell { box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.55), 0 0 6px rgba(201, 162, 39, 0.25); filter: brightness(1.3); }
|
||||||
label.gear-dv-node[class*=" rune-"]:hover .gear-dv-cell { filter: brightness(1.35); }
|
label.gear-dv-node[class*=" rune-"]:hover .gear-dv-cell { filter: brightness(1.35); }
|
||||||
.gear-dv-node.rune-unique .gear-dv-cell { width: 100%; height: 100%; }
|
.gear-dv-node.rune-unique .gear-dv-cell { width: 88%; height: 88%; }
|
||||||
|
/* Startfeld: Emblem der Klasse im Goldrahmen */
|
||||||
|
.gear-dv-node.is-start .gear-dv-cell { width: 86%; height: 86%; border: 2px solid #c9a227; border-radius: 4px; background: radial-gradient(circle, #1d3a52, #0c1420 75%); box-shadow: 0 0 10px rgba(201, 162, 39, 0.45), inset 0 0 6px rgba(0, 0, 0, 0.7); }
|
||||||
|
.gear-dv-node.is-start .gear-dv-cell img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 0 3px rgba(140, 200, 255, 0.6)); }
|
||||||
|
.gear-dv-node.is-start:not(.is-on) .gear-dv-cell img { filter: none; }
|
||||||
/* Bilder der aktiven Runen schon vorab laden, damit beim Anklicken nichts flackert */
|
/* Bilder der aktiven Runen schon vorab laden, damit beim Anklicken nichts flackert */
|
||||||
.gear-dv-grid { position: relative; }
|
.gear-dv-grid { position: relative; }
|
||||||
.gear-dv-grid::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; background: url('../images/daevanion/common-on.png'), url('../images/daevanion/passive-on.png'), url('../images/daevanion/active-on.png'), url('../images/daevanion/unique-on.png'); }
|
.gear-dv-grid::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; background: url('../images/daevanion/common-on.png'), url('../images/daevanion/passive-on.png'), url('../images/daevanion/active-on.png'), url('../images/daevanion/unique-on.png'); }
|
||||||
.gear-dv-node.link-r::after { left: 50%; top: calc(50% - 1px); width: 100%; height: 2px; }
|
.gear-dv-node.link-r::after { left: 50%; top: calc(50% - 1px); width: 100%; height: 2px; }
|
||||||
.gear-dv-node.link-d::before { top: 50%; left: calc(50% - 1px); width: 2px; height: 100%; }
|
.gear-dv-node.link-d::before { top: 50%; left: calc(50% - 1px); width: 2px; height: 100%; }
|
||||||
.gear-dv-side { width: min(100%, 860px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; align-items: start; font-size: 0.88rem; }
|
.gear-dv-side { width: min(100%, 760px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; align-items: start; font-size: 0.88rem; }
|
||||||
.gear-dv-count { grid-column: 1 / -1; margin: 0 0 0.4rem; color: var(--text-muted); }
|
.gear-dv-count { grid-column: 1 / -1; margin: 0 0 0.4rem; color: var(--text-muted); }
|
||||||
.gear-dv-count strong { color: var(--gold); }
|
.gear-dv-count strong { color: var(--gold); }
|
||||||
.gear-dv-summary { position: static; margin-top: 1.1rem; }
|
.gear-dv-summary { position: static; margin-top: 1.1rem; }
|
||||||
|
|
|
||||||
|
|
@ -751,13 +751,32 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($entries): ?>
|
<?php if ($entries): ?>
|
||||||
<h4 class="gear-guide-subhead">Makro <span class="text-muted">– Makro-Taste halten, läuft von oben nach unten</span></h4>
|
<h4 class="gear-guide-subhead">Makro <span class="text-muted">– Makro-Taste halten, läuft von oben nach unten</span></h4>
|
||||||
|
<?php // Wie die Makro-Liste im Spiel: Nummer, Skill der Taste mit Tasten-Abzeichen und Stufe, darunter die Verzoegerung ?>
|
||||||
<ol class="gear-guide-macro">
|
<ol class="gear-guide-macro">
|
||||||
<?php foreach ($entries as $macroEntry): ?>
|
<?php foreach ($entries as $macroEntry): ?>
|
||||||
<?php $firstId = (int) ($bar[$macroEntry['k']][0] ?? 0); ?>
|
<?php
|
||||||
|
$keySkills = array_values(array_filter(array_map('intval', (array) ($bar[$macroEntry['k']] ?? []))));
|
||||||
|
$firstId = $keySkills[0] ?? 0;
|
||||||
|
$firstSkill = $macroSkills[$firstId] ?? null;
|
||||||
|
$tip = $firstSkill !== null ? gear_guide_tip_attrs($firstSkill) : '';
|
||||||
|
?>
|
||||||
<li>
|
<li>
|
||||||
<?= gear_macro_key_html($macroEntry['k']) ?>
|
<div class="gear-guide-macro-skill">
|
||||||
<span><?= $firstId > 0 ? e(gear_macro_skill_name($firstId, $macroSkills)) : '<span class="text-muted">leer</span>' ?></span>
|
<span class="gear-guide-macro-icon"<?= $tip ?>>
|
||||||
<span class="text-muted gear-guide-macro-delay"><?= (int) $macroEntry['d'] ?> ms</span>
|
<?php if ($firstId > 0): ?>
|
||||||
|
<?= gear_macro_icon_html($firstSkill, 0, 64) ?>
|
||||||
|
<?php else: ?>
|
||||||
|
<span class="gear-macro-initial">?</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
<span class="gear-guide-macro-badge"><?= gear_macro_key_html($macroEntry['k']) ?></span>
|
||||||
|
<?php if (($macroLevels[$firstId] ?? 0) > 0): ?><span class="gear-guide-macro-level">St. <?= (int) $macroLevels[$firstId] ?></span><?php endif; ?>
|
||||||
|
</span>
|
||||||
|
<strong><?= $firstId > 0 ? e(gear_macro_skill_name($firstId, $macroSkills)) : '<span class="text-muted">Taste leer</span>' ?></strong>
|
||||||
|
<?php if (count($keySkills) > 1): ?>
|
||||||
|
<small class="text-muted">dann <?= e(implode(', ', array_map(static fn (int $id): string => gear_macro_skill_name($id, $macroSkills), array_slice($keySkills, 1)))) ?></small>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
<div class="gear-guide-macro-delay"><span>Verzögerung</span><b><?= (int) $macroEntry['d'] ?></b><span>ms</span></div>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
@ -921,9 +940,24 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
// Rechte Spalte wie im Spiel ("Board-Effekte"): Faehigkeitseffekte, darunter Attributeffekte
|
||||||
|
$boardTotals = $dvTotals['boards'][(int) $board['id']];
|
||||||
|
$skillNames = [];
|
||||||
|
foreach ($board['nodes'] as $node) {
|
||||||
|
if ($node['type'] === 'skill') {
|
||||||
|
$skillNames[$node['skill']] = $node['t'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="gear-guide-dv-side">
|
<div class="gear-guide-dv-side">
|
||||||
<h4 class="gear-skills-kind"><?= e($board['title']) ?> <span class="text-muted">· ab Stufe <?= (int) $board['need'] ?></span></h4>
|
<p class="gear-guide-dv-side-head"><strong><?= e($board['title']) ?></strong> <span class="text-muted"><?= (int) $boardTotals['count'] ?> von <?= (int) $boardTotals['total'] ?> Feldern · ab Stufe <?= (int) $board['need'] ?></span></p>
|
||||||
<?= gear_daevanion_board_side_html($board, $dvTotals, $class) ?>
|
<?php if ($boardTotals['skills']): ?>
|
||||||
|
<h5 class="gear-guide-dv-effects">Fähigkeitseffekte</h5>
|
||||||
|
<?= gear_plan_skill_bonus_html($boardTotals['skills'], $class, $skillNames) ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<h5 class="gear-guide-dv-effects">Attributeffekte</h5>
|
||||||
|
<?= gear_plan_stats_html($boardTotals['stats'], 'Noch nichts aktiviert.') ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
||||||
|
|
@ -672,7 +672,9 @@ function gear_daevanion_node_html(array $node, int $minR, int $minC, array $chos
|
||||||
$classes = 'gear-dv-node grade-' . $grade . ' is-' . $node['type'] . ($node['type'] !== 'start' ? ' ' . gear_daevanion_rune_class($node) : '') . ($on ? ' is-on' : '')
|
$classes = 'gear-dv-node grade-' . $grade . ' is-' . $node['type'] . ($node['type'] !== 'start' ? ' ' . gear_daevanion_rune_class($node) : '') . ($on ? ' is-on' : '')
|
||||||
. ($on && $right !== null && isset($chosen[$right]) ? ' link-r' : '') . ($on && $down !== null && isset($chosen[$down]) ? ' link-d' : '');
|
. ($on && $right !== null && isset($chosen[$right]) ? ' link-r' : '') . ($on && $down !== null && isset($chosen[$down]) ? ' link-d' : '');
|
||||||
// Felder als Runen wie im Spiel (assets/images/daevanion, Bild je nach aktiv/inaktiv per CSS), nur das Startfeld als ◆
|
// Felder als Runen wie im Spiel (assets/images/daevanion, Bild je nach aktiv/inaktiv per CSS), nur das Startfeld als ◆
|
||||||
$inner = $node['type'] === 'start' ? '◆' : '';
|
// Startfeld mit dem Emblem der Klasse (wie im Spiel), ohne Klasse ◆
|
||||||
|
$classIcon = $node['type'] === 'start' && $class ? class_icon_url($class) : null;
|
||||||
|
$inner = $node['type'] !== 'start' ? '' : ($classIcon !== null ? '<img src="' . e($classIcon) . '" alt="">' : '◆');
|
||||||
$title = e(gear_daevanion_node_title($node, $class));
|
$title = e(gear_daevanion_node_title($node, $class));
|
||||||
[$tip, $tipMeta] = gear_daevanion_node_tip($node, $class);
|
[$tip, $tipMeta] = gear_daevanion_node_tip($node, $class);
|
||||||
$tag = $isOwn ? 'label' : 'span';
|
$tag = $isOwn ? 'label' : 'span';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue