Rework des fiches creature/PJ et Tinji/Loksyu
This commit is contained in:
@@ -986,9 +986,11 @@ section.npc .cde-neon-tabs .item.active {
|
||||
gap: 6px;
|
||||
padding: 6px 8px 4px;
|
||||
border-top: 1px solid #1a2436;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.cde-chat-app-buttons .cde-chat-btn {
|
||||
flex: 1 1 0;
|
||||
pointer-events: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -1024,19 +1026,25 @@ section.npc .cde-neon-tabs .item.active {
|
||||
padding: 12px;
|
||||
}
|
||||
.cde-loksyu-standalone .cde-loksyu-elements {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
justify-content: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.cde-loksyu-standalone .cde-lok-card {
|
||||
flex: 0 0 calc(33.333% - 6px);
|
||||
min-width: 140px;
|
||||
max-width: 160px;
|
||||
background: rgba(16, 22, 34, 0.8);
|
||||
border: 1px solid #1a2436;
|
||||
border-radius: 6px;
|
||||
padding: 8px 6px;
|
||||
padding: 10px 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
.cde-loksyu-standalone .cde-lok-card--wood:hover {
|
||||
@@ -1151,8 +1159,10 @@ section.npc .cde-neon-tabs .item.active {
|
||||
margin: 6px 0;
|
||||
}
|
||||
.cde-loksyu-standalone .cde-loksyu-visual-row .cde-lok-visual {
|
||||
max-width: 100%;
|
||||
max-height: 80px;
|
||||
max-width: 120px;
|
||||
max-height: 160px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.cde-loksyu-standalone .cde-lok-footer {
|
||||
@@ -1201,11 +1211,12 @@ section.npc .cde-neon-tabs .item.active {
|
||||
font-family: serif;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-label {
|
||||
font-size: 10px;
|
||||
font-size: 11px;
|
||||
font-family: "Orbitron", sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: #7d94b8;
|
||||
color: #e2e8f4;
|
||||
opacity: 0.75;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-counter {
|
||||
display: flex;
|
||||
@@ -1214,12 +1225,12 @@ section.npc .cde-neon-tabs .item.active {
|
||||
margin: 4px 0;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-step {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: #101622;
|
||||
border: 1px solid #1a2436;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: #0d1520;
|
||||
border: 1px solid #263853;
|
||||
border-radius: 50%;
|
||||
color: #7d94b8;
|
||||
color: #e2e8f4;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -1230,9 +1241,9 @@ section.npc .cde-neon-tabs .item.active {
|
||||
padding: 0;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-step:hover {
|
||||
background: rgba(255, 61, 90, 0.15);
|
||||
background: rgba(255, 61, 90, 0.25);
|
||||
border-color: #ff3d5a;
|
||||
color: #ff3d5a;
|
||||
color: #e2e8f4;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-direct {
|
||||
width: 72px;
|
||||
@@ -1268,58 +1279,247 @@ section.npc .cde-neon-tabs .item.active {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 12px;
|
||||
padding: 6px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-spend-btn {
|
||||
background: rgba(255, 61, 90, 0.15);
|
||||
background: rgba(255, 61, 90, 0.25);
|
||||
border: 1px solid #ff3d5a;
|
||||
color: #ff3d5a;
|
||||
color: #e2e8f4;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-spend-btn:hover {
|
||||
background: rgba(255, 61, 90, 0.3);
|
||||
background: rgba(255, 61, 90, 0.45);
|
||||
border-color: #ff7085;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-spend-btn[disabled] {
|
||||
opacity: 0.4;
|
||||
opacity: 0.55;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-reset-btn {
|
||||
background: #101622;
|
||||
border: 1px solid #1a2436;
|
||||
color: #7d94b8;
|
||||
background: #0d1520;
|
||||
border: 1px solid #263853;
|
||||
color: #e2e8f4;
|
||||
opacity: 0.85;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-reset-btn:hover {
|
||||
border-color: #e2e8f4;
|
||||
color: #e2e8f4;
|
||||
opacity: 1;
|
||||
}
|
||||
.cde-tinji-standalone .cde-tinji-visual {
|
||||
width: 90px;
|
||||
height: auto;
|
||||
opacity: 0.6;
|
||||
opacity: 0.85;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cde-tinji-spend-msg {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
padding: 6px 8px;
|
||||
background: rgba(255, 61, 90, 0.08);
|
||||
border-left: 3px solid #ff3d5a;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
padding: 8px 10px;
|
||||
background: rgba(255, 61, 90, 0.18);
|
||||
border: 1px solid rgba(255, 61, 90, 0.35);
|
||||
border-left: 4px solid #ff3d5a;
|
||||
border-radius: 4px;
|
||||
color: #e2e8f4;
|
||||
}
|
||||
.cde-tinji-spend-msg .cde-tinji-icon {
|
||||
font-size: 18px;
|
||||
color: #ff3d5a;
|
||||
text-shadow: 0 0 6px rgba(255, 61, 90, 0.7);
|
||||
flex-shrink: 0;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
.cde-tinji-spend-msg i {
|
||||
color: #ff3d5a;
|
||||
font-size: 15px;
|
||||
filter: drop-shadow(0 0 4px rgba(255, 61, 90, 0.6));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cde-tinji-spend-msg strong {
|
||||
color: #ff3d5a;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.cde-tinji-spend-msg .cde-tinji-remain {
|
||||
margin-left: auto;
|
||||
font-size: 11px;
|
||||
color: rgba(226, 232, 244, 0.65);
|
||||
font-style: italic;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cde-loksyu-draw-msg {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
font-size: 12px;
|
||||
padding: 9px 11px;
|
||||
background: linear-gradient(135deg, rgba(0, 212, 212, 0.1) 0%, rgba(16, 22, 34, 0.95) 100%);
|
||||
border: 1px solid rgba(0, 212, 212, 0.4);
|
||||
border-left: 4px solid #00d4d4;
|
||||
border-radius: 5px;
|
||||
color: #e2e8f4;
|
||||
box-shadow: 0 2px 8px rgba(0, 212, 212, 0.12);
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-aspect-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 0 4px rgba(0, 212, 212, 0.6));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-user {
|
||||
font-weight: 700;
|
||||
color: #00d4d4;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-action {
|
||||
color: rgba(226, 232, 244, 0.65);
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-type {
|
||||
font-weight: 700;
|
||||
font-size: 13px;
|
||||
color: #c9a227;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
text-shadow: 0 0 6px rgba(201, 162, 39, 0.4);
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-from {
|
||||
color: rgba(226, 232, 244, 0.6);
|
||||
font-size: 11px;
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-from em {
|
||||
color: #00d4d4;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 11px;
|
||||
color: rgba(226, 232, 244, 0.55);
|
||||
padding-top: 4px;
|
||||
border-top: 1px solid rgba(0, 212, 212, 0.2);
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-footer i {
|
||||
color: #00d4d4;
|
||||
font-size: 10px;
|
||||
color: #7d94b8;
|
||||
}
|
||||
.cde-loksyu-draw-msg .cde-loksyu-draw-footer .cde-loksyu-remain {
|
||||
color: #00d4d4;
|
||||
font-weight: 700;
|
||||
}
|
||||
.cde-roll-actions {
|
||||
margin-top: 10px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid rgba(26, 36, 54, 0.6);
|
||||
}
|
||||
.cde-roll-actions .cde-roll-actions-title {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: rgba(226, 232, 244, 0.5);
|
||||
margin-bottom: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-actions-title i {
|
||||
font-size: 9px;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-actions-btns {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 8px;
|
||||
font-size: 11px;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
border-radius: 3px;
|
||||
border: 1px solid rgba(26, 36, 54, 0.8);
|
||||
background: rgba(16, 22, 34, 0.9);
|
||||
color: #e2e8f4;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
|
||||
pointer-events: auto;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn:hover:not(:disabled) {
|
||||
border-color: rgba(0, 212, 212, 0.7);
|
||||
background: rgba(0, 212, 212, 0.12);
|
||||
box-shadow: 0 0 6px rgba(0, 212, 212, 0.25);
|
||||
color: #00d4d4;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn .cde-roll-action-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 0 2px rgba(0, 212, 212, 0.4));
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn .cde-roll-action-label {
|
||||
flex: 1;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn .cde-roll-action-count {
|
||||
background: rgba(26, 36, 54, 0.6);
|
||||
border-radius: 2px;
|
||||
padding: 1px 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
min-width: 18px;
|
||||
text-align: center;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn .cde-roll-action-tinji-char {
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
color: #ff3d5a;
|
||||
text-shadow: 0 0 4px rgba(255, 61, 90, 0.6);
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn.cde-roll-action--success:hover:not(:disabled) {
|
||||
border-color: rgba(201, 162, 39, 0.7);
|
||||
background: rgba(201, 162, 39, 0.1);
|
||||
box-shadow: 0 0 6px rgba(201, 162, 39, 0.25);
|
||||
color: #c9a227;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn.cde-roll-action--faste:hover:not(:disabled) {
|
||||
border-color: rgba(0, 212, 212, 0.7);
|
||||
background: rgba(0, 212, 212, 0.1);
|
||||
box-shadow: 0 0 6px rgba(0, 212, 212, 0.25);
|
||||
color: #00d4d4;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn.cde-roll-action--tinji:hover:not(:disabled) {
|
||||
border-color: rgba(255, 61, 90, 0.7);
|
||||
background: rgba(255, 61, 90, 0.12);
|
||||
box-shadow: 0 0 6px rgba(255, 61, 90, 0.3);
|
||||
color: #ff3d5a;
|
||||
}
|
||||
.cde-roll-actions .cde-roll-action-btn.cde-roll-action--tinji:hover:not(:disabled) .cde-roll-action-count {
|
||||
background: rgba(255, 61, 90, 0.25);
|
||||
}
|
||||
.cde-loksyu-grid {
|
||||
display: grid;
|
||||
@@ -3189,6 +3389,38 @@ ol.item-list li.item .item-controls a.item-control:hover {
|
||||
letter-spacing: 0.1em;
|
||||
color: #7d94b8;
|
||||
}
|
||||
.cde-roll-result .cde-rr-hero .cde-rr-loksyu-bonus {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
animation: cde-pulse-in 0.3s ease;
|
||||
}
|
||||
.cde-roll-result .cde-rr-hero .cde-rr-loksyu-bonus.cde-rr-loksyu-bonus--success {
|
||||
background: rgba(201, 162, 39, 0.2);
|
||||
border: 1px solid rgba(201, 162, 39, 0.5);
|
||||
color: #c9a227;
|
||||
text-shadow: 0 0 6px rgba(201, 162, 39, 0.6);
|
||||
}
|
||||
.cde-roll-result .cde-rr-hero .cde-rr-loksyu-bonus.cde-rr-loksyu-bonus--faste {
|
||||
background: rgba(0, 212, 212, 0.15);
|
||||
border: 1px solid rgba(0, 212, 212, 0.4);
|
||||
color: #00d4d4;
|
||||
text-shadow: 0 0 6px rgba(0, 212, 212, 0.5);
|
||||
}
|
||||
@keyframes cde-pulse-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.7);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
.cde-roll-result .cde-rr-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -3212,6 +3444,17 @@ ol.item-list li.item .item-controls a.item-control:hover {
|
||||
text-align: center;
|
||||
text-shadow: 0 0 6px currentColor;
|
||||
}
|
||||
.cde-roll-result .cde-rr-row .cde-rr-loksyu-bonus {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
padding: 1px 4px;
|
||||
border-radius: 2px;
|
||||
background: rgba(0, 212, 212, 0.15);
|
||||
border: 1px solid rgba(0, 212, 212, 0.4);
|
||||
color: #00d4d4;
|
||||
text-shadow: 0 0 4px rgba(0, 212, 212, 0.5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cde-roll-result .cde-rr-row .cde-rr-icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
|
||||
@@ -925,50 +925,135 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
// NPC supernatural item cards
|
||||
.cde-supernatural-list {
|
||||
.cde-supernatural-item {
|
||||
background: fade(@cde-surface, 60%);
|
||||
border: 1px solid @cde-border;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 6px;
|
||||
padding: 6px;
|
||||
list-style: none;
|
||||
// ── Supernatural abilities card (NPC) ───────────────────────────────────────
|
||||
|
||||
.cde-super-add-row {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 4px 0 8px;
|
||||
}
|
||||
|
||||
.cde-supernatural-header {
|
||||
.cde-super-add-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 5px;
|
||||
font-size: 11px;
|
||||
font-family: "Averia", sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: @cde-muted;
|
||||
cursor: pointer;
|
||||
padding: 4px 10px;
|
||||
border-radius: @cde-radius;
|
||||
border: 1px solid @cde-border;
|
||||
transition: color 0.12s, border-color 0.12s, background 0.12s;
|
||||
|
||||
img { border-radius: 4px; flex-shrink: 0; }
|
||||
i { font-size: 10px; }
|
||||
|
||||
&:hover { color: @cde-supernatural; border-color: @cde-supernatural; background: fade(@cde-supernatural, 8%); }
|
||||
}
|
||||
|
||||
.cde-supernatural-info {
|
||||
flex: 1 1 0;
|
||||
.cde-super-card {
|
||||
border: 1px solid @cde-border;
|
||||
border-left: 3px solid @cde-supernatural;
|
||||
border-radius: @cde-radius;
|
||||
background: fade(@cde-surface, 70%);
|
||||
margin-bottom: 10px;
|
||||
overflow: hidden;
|
||||
transition: box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 0 8px fade(@cde-supernatural, 20%);
|
||||
|
||||
.cde-super-controls { opacity: 1; }
|
||||
}
|
||||
}
|
||||
|
||||
.cde-super-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.cde-supernatural-name {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
.cde-super-img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cde-super-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.cde-super-name {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
font-family: "Averia", sans-serif;
|
||||
color: @cde-text;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.cde-super-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.cde-supernatural-desc {
|
||||
font-size: 10px;
|
||||
.cde-super-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.12s;
|
||||
flex-shrink: 0;
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 3px;
|
||||
color: @cde-muted;
|
||||
margin-top: 4px;
|
||||
padding-left: 36px;
|
||||
line-height: 1.4;
|
||||
cursor: pointer;
|
||||
transition: color 0.12s, background 0.12s;
|
||||
|
||||
p { margin: 0; }
|
||||
i { font-size: 11px; }
|
||||
|
||||
&:hover { color: @cde-text; background: fade(@cde-border-hi, 30%); }
|
||||
}
|
||||
}
|
||||
|
||||
.cde-super-desc {
|
||||
padding: 6px 12px 8px 46px;
|
||||
border-top: 1px solid fade(@cde-border, 60%);
|
||||
background: fade(@cde-surface, 40%);
|
||||
font-size: 11px;
|
||||
color: @cde-muted;
|
||||
line-height: 1.5;
|
||||
|
||||
p { margin: 0 0 4px; &:last-child { margin-bottom: 0; } }
|
||||
em { color: @cde-text; }
|
||||
strong { color: @cde-supernatural; }
|
||||
}
|
||||
|
||||
.cde-super-empty {
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: @cde-muted;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// NPC vitality / hei tracker
|
||||
.cde-npc-tracks {
|
||||
margin-top: @cde-gap;
|
||||
@@ -1040,9 +1125,11 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
gap: 6px;
|
||||
padding: 6px 8px 4px;
|
||||
border-top: 1px solid @cde-border;
|
||||
pointer-events: auto; // sidebar has pointer-events:none — must override
|
||||
|
||||
.cde-chat-btn {
|
||||
flex: 1 1 0;
|
||||
pointer-events: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -1086,20 +1173,26 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
.cde-loksyu-elements {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
justify-content: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.cde-lok-card {
|
||||
flex: 0 0 calc(33.333% - 6px);
|
||||
min-width: 140px;
|
||||
max-width: 160px;
|
||||
background: fade(@cde-surface, 80%);
|
||||
border: 1px solid @cde-border;
|
||||
border-radius: 6px;
|
||||
padding: 8px 6px;
|
||||
padding: 10px 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
transition: border-color 0.2s;
|
||||
|
||||
&--wood { &:hover { border-color: #4a9e3f; } .cde-lok-input:focus { border-bottom-color: #4a9e3f; } }
|
||||
@@ -1191,8 +1284,10 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
margin: 6px 0;
|
||||
|
||||
.cde-lok-visual {
|
||||
max-width: 100%;
|
||||
max-height: 80px;
|
||||
max-width: 120px;
|
||||
max-height: 160px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
@@ -1254,11 +1349,12 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
.cde-tinji-label {
|
||||
font-size: 10px;
|
||||
font-size: 11px;
|
||||
font-family: "Orbitron", sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: @cde-muted;
|
||||
color: @cde-text;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.cde-tinji-counter {
|
||||
@@ -1269,12 +1365,12 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
.cde-tinji-step {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: @cde-surface;
|
||||
border: 1px solid @cde-border;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: @cde-surface2;
|
||||
border: 1px solid @cde-border-hi;
|
||||
border-radius: 50%;
|
||||
color: @cde-muted;
|
||||
color: @cde-text;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -1285,9 +1381,9 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
padding: 0;
|
||||
|
||||
&:hover {
|
||||
background: fade(@cde-kungfu, 15%);
|
||||
background: fade(@cde-kungfu, 25%);
|
||||
border-color: @cde-kungfu;
|
||||
color: @cde-kungfu;
|
||||
color: @cde-text;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1324,34 +1420,37 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 12px;
|
||||
padding: 6px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.cde-tinji-spend-btn {
|
||||
background: fade(@cde-kungfu, 15%);
|
||||
background: fade(@cde-kungfu, 25%);
|
||||
border: 1px solid @cde-kungfu;
|
||||
color: @cde-kungfu;
|
||||
color: @cde-text;
|
||||
|
||||
&:hover { background: fade(@cde-kungfu, 30%); }
|
||||
&[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
|
||||
&:hover { background: fade(@cde-kungfu, 45%); border-color: lighten(@cde-kungfu, 10%); }
|
||||
&[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
|
||||
}
|
||||
|
||||
.cde-tinji-reset-btn {
|
||||
background: @cde-surface;
|
||||
border: 1px solid @cde-border;
|
||||
color: @cde-muted;
|
||||
background: @cde-surface2;
|
||||
border: 1px solid @cde-border-hi;
|
||||
color: @cde-text;
|
||||
opacity: 0.85;
|
||||
|
||||
&:hover { border-color: @cde-text; color: @cde-text; }
|
||||
&:hover { border-color: @cde-text; opacity: 1; }
|
||||
}
|
||||
|
||||
.cde-tinji-visual {
|
||||
width: 90px;
|
||||
height: auto;
|
||||
opacity: 0.6;
|
||||
opacity: 0.85;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
@@ -1360,20 +1459,241 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
.cde-tinji-spend-msg {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
padding: 6px 8px;
|
||||
background: fade(@cde-kungfu, 8%);
|
||||
border-left: 3px solid @cde-kungfu;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
padding: 8px 10px;
|
||||
background: fade(@cde-kungfu, 18%);
|
||||
border: 1px solid fade(@cde-kungfu, 35%);
|
||||
border-left: 4px solid @cde-kungfu;
|
||||
border-radius: 4px;
|
||||
color: @cde-text;
|
||||
|
||||
i { color: @cde-kungfu; }
|
||||
.cde-tinji-icon {
|
||||
font-size: 18px;
|
||||
color: @cde-kungfu;
|
||||
text-shadow: 0 0 6px fade(@cde-kungfu, 70%);
|
||||
flex-shrink: 0;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
i {
|
||||
color: @cde-kungfu;
|
||||
font-size: 15px;
|
||||
filter: drop-shadow(0 0 4px fade(@cde-kungfu, 60%));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: @cde-kungfu;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.cde-tinji-remain {
|
||||
margin-left: auto;
|
||||
font-size: 11px;
|
||||
color: fade(@cde-text, 65%);
|
||||
font-style: italic;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
// Post-roll Loksyu draw message — rich notification card
|
||||
.cde-loksyu-draw-msg {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
font-size: 12px;
|
||||
padding: 9px 11px;
|
||||
background: linear-gradient(135deg, fade(@cde-item, 10%) 0%, fade(@cde-surface, 95%) 100%);
|
||||
border: 1px solid fade(@cde-item, 40%);
|
||||
border-left: 4px solid @cde-item;
|
||||
border-radius: 5px;
|
||||
color: @cde-text;
|
||||
box-shadow: 0 2px 8px fade(@cde-item, 12%);
|
||||
|
||||
.cde-loksyu-draw-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-aspect-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 0 4px fade(@cde-item, 60%));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-user {
|
||||
font-weight: 700;
|
||||
color: @cde-item;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-action {
|
||||
color: fade(@cde-text, 65%);
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-type {
|
||||
font-weight: 700;
|
||||
font-size: 13px;
|
||||
color: #c9a227;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
text-shadow: 0 0 6px fade(#c9a227, 40%);
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-from {
|
||||
color: fade(@cde-text, 60%);
|
||||
font-size: 11px;
|
||||
|
||||
em {
|
||||
color: @cde-item;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 11px;
|
||||
color: fade(@cde-text, 55%);
|
||||
padding-top: 4px;
|
||||
border-top: 1px solid fade(@cde-item, 20%);
|
||||
|
||||
i {
|
||||
color: @cde-item;
|
||||
font-size: 10px;
|
||||
color: @cde-muted;
|
||||
}
|
||||
|
||||
.cde-loksyu-remain {
|
||||
color: @cde-item;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Post-roll action buttons section inside a roll-result card
|
||||
.cde-roll-actions {
|
||||
margin-top: 10px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid fade(@cde-border, 60%);
|
||||
|
||||
.cde-roll-actions-title {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: fade(@cde-text, 50%);
|
||||
margin-bottom: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
i { font-size: 9px; }
|
||||
}
|
||||
|
||||
.cde-roll-actions-btns {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.cde-roll-action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 8px;
|
||||
font-size: 11px;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
border-radius: 3px;
|
||||
border: 1px solid fade(@cde-border, 80%);
|
||||
background: fade(@cde-surface, 90%);
|
||||
color: @cde-text;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
|
||||
pointer-events: auto;
|
||||
line-height: 1.4;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(@cde-item, 70%);
|
||||
background: fade(@cde-item, 12%);
|
||||
box-shadow: 0 0 6px fade(@cde-item, 25%);
|
||||
color: @cde-item;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.cde-roll-action-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 0 2px fade(@cde-item, 40%));
|
||||
}
|
||||
|
||||
.cde-roll-action-label {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.cde-roll-action-count {
|
||||
background: fade(@cde-border, 60%);
|
||||
border-radius: 2px;
|
||||
padding: 1px 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
min-width: 18px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cde-roll-action-tinji-char {
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
color: @cde-kungfu;
|
||||
text-shadow: 0 0 4px fade(@cde-kungfu, 60%);
|
||||
}
|
||||
|
||||
&.cde-roll-action--success {
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(#c9a227, 70%);
|
||||
background: fade(#c9a227, 10%);
|
||||
box-shadow: 0 0 6px fade(#c9a227, 25%);
|
||||
color: #c9a227;
|
||||
}
|
||||
}
|
||||
|
||||
&.cde-roll-action--faste {
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(@cde-item, 70%);
|
||||
background: fade(@cde-item, 10%);
|
||||
box-shadow: 0 0 6px fade(@cde-item, 25%);
|
||||
color: @cde-item;
|
||||
}
|
||||
}
|
||||
|
||||
&.cde-roll-action--tinji {
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(@cde-kungfu, 70%);
|
||||
background: fade(@cde-kungfu, 12%);
|
||||
box-shadow: 0 0 6px fade(@cde-kungfu, 30%);
|
||||
color: @cde-kungfu;
|
||||
|
||||
.cde-roll-action-count {
|
||||
background: fade(@cde-kungfu, 25%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3214,6 +3534,37 @@ ol.item-list {
|
||||
color: @cde-muted;
|
||||
}
|
||||
}
|
||||
|
||||
// Loksyu bonus badge (shown when dice drawn from Loksyu)
|
||||
.cde-rr-loksyu-bonus {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
animation: cde-pulse-in 0.3s ease;
|
||||
|
||||
&.cde-rr-loksyu-bonus--success {
|
||||
background: fade(#c9a227, 20%);
|
||||
border: 1px solid fade(#c9a227, 50%);
|
||||
color: #c9a227;
|
||||
text-shadow: 0 0 6px fade(#c9a227, 60%);
|
||||
}
|
||||
|
||||
&.cde-rr-loksyu-bonus--faste {
|
||||
background: fade(@cde-item, 15%);
|
||||
border: 1px solid fade(@cde-item, 40%);
|
||||
color: @cde-item;
|
||||
text-shadow: 0 0 6px fade(@cde-item, 50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes cde-pulse-in {
|
||||
from { opacity: 0; transform: scale(0.7); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
// ---- Detail rows ----
|
||||
@@ -3242,6 +3593,19 @@ ol.item-list {
|
||||
text-shadow: 0 0 6px currentColor;
|
||||
}
|
||||
|
||||
// Inline Loksyu bonus badge in detail rows
|
||||
.cde-rr-loksyu-bonus {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
padding: 1px 4px;
|
||||
border-radius: 2px;
|
||||
background: fade(@cde-item, 15%);
|
||||
border: 1px solid fade(@cde-item, 40%);
|
||||
color: @cde-item;
|
||||
text-shadow: 0 0 4px fade(@cde-item, 50%);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cde-rr-icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
|
||||
826
dist/system.js
vendored
826
dist/system.js
vendored
File diff suppressed because it is too large
Load Diff
8
dist/system.js.map
vendored
8
dist/system.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -306,6 +306,11 @@
|
||||
"CDE.TinjiNotFound": "No Tin Ji actor found. The Game Master must create one.",
|
||||
"CDE.TinjiEmpty": "No Tin Ji dice remaining.",
|
||||
"CDE.TinjiSpent": "{name} spends 1 Tin Ji die.",
|
||||
"CDE.PostRollActions": "Draw from Loksyu / Spend Tin Ji",
|
||||
"CDE.LoksyuDrawsA": "draws",
|
||||
"CDE.LoksyuFromAspect": "from",
|
||||
"CDE.LoksyuRemaining": "die/dice remaining",
|
||||
"CDE.LoksyuEmpty": "The Loksyu has no dice remaining for this aspect.",
|
||||
"CDE.TinjiRemaining": "remaining",
|
||||
"CDE.SpendTinji": "Spend a die",
|
||||
"CDE.Reset": "Reset",
|
||||
|
||||
@@ -285,6 +285,11 @@
|
||||
"CDE.TinjiNotFound": "Aucun acteur Tin Ji trouvé. Le Maître du Jeu doit en créer un.",
|
||||
"CDE.TinjiEmpty": "Il n'y a plus de dés de Tin Ji disponibles.",
|
||||
"CDE.TinjiSpent": "{name} dépense 1 dé de Tin Ji.",
|
||||
"CDE.PostRollActions": "Puiser dans le Loksyu / Dépenser Tin Ji",
|
||||
"CDE.LoksyuDrawsA": "pioche",
|
||||
"CDE.LoksyuFromAspect": "du",
|
||||
"CDE.LoksyuRemaining": "dé(s) restant(s)",
|
||||
"CDE.LoksyuEmpty": "Le Loksyu ne contient plus de dés pour cet aspect.",
|
||||
"CDE.TinjiRemaining": "restant(s)",
|
||||
"CDE.SpendTinji": "Dépenser un dé",
|
||||
"CDE.Reset": "Réinitialiser",
|
||||
|
||||
@@ -1 +1 @@
|
||||
MANIFEST-000070
|
||||
MANIFEST-000078
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
2026/03/30-08:26:03.921273 7f4bd9fec6c0 Recovering log #68
|
||||
2026/03/30-08:26:03.931083 7f4bd9fec6c0 Delete type=3 #66
|
||||
2026/03/30-08:26:03.931138 7f4bd9fec6c0 Delete type=0 #68
|
||||
2026/03/30-09:43:28.098488 7f4bd8fea6c0 Level-0 table #73: started
|
||||
2026/03/30-09:43:28.098511 7f4bd8fea6c0 Level-0 table #73: 0 bytes OK
|
||||
2026/03/30-09:43:28.104264 7f4bd8fea6c0 Delete type=0 #71
|
||||
2026/03/30-09:43:28.117464 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!ZWBHiWW5QlUeseAX' @ 72057594037927935 : 1 .. '!journal.pages!ZWBHiWW5QlUeseAX.jtQXIqLfyet8Nlte' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.332250 7f4bdafee6c0 Recovering log #76
|
||||
2026/03/30-15:06:44.345027 7f4bdafee6c0 Delete type=3 #74
|
||||
2026/03/30-15:06:44.345091 7f4bdafee6c0 Delete type=0 #76
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
2026/03/30-08:16:07.267863 7f4bda7ed6c0 Recovering log #64
|
||||
2026/03/30-08:16:07.277952 7f4bda7ed6c0 Delete type=3 #62
|
||||
2026/03/30-08:16:07.278023 7f4bda7ed6c0 Delete type=0 #64
|
||||
2026/03/30-08:24:08.126726 7f4bd8fea6c0 Level-0 table #69: started
|
||||
2026/03/30-08:24:08.126763 7f4bd8fea6c0 Level-0 table #69: 0 bytes OK
|
||||
2026/03/30-08:24:08.132783 7f4bd8fea6c0 Delete type=0 #67
|
||||
2026/03/30-08:24:08.146517 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!ZWBHiWW5QlUeseAX' @ 72057594037927935 : 1 .. '!journal.pages!ZWBHiWW5QlUeseAX.jtQXIqLfyet8Nlte' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.690902 7f4bdafee6c0 Recovering log #72
|
||||
2026/03/30-14:14:12.745563 7f4bdafee6c0 Delete type=3 #70
|
||||
2026/03/30-14:14:12.745612 7f4bdafee6c0 Delete type=0 #72
|
||||
2026/03/30-15:06:34.607428 7f4bd8fea6c0 Level-0 table #77: started
|
||||
2026/03/30-15:06:34.607461 7f4bd8fea6c0 Level-0 table #77: 0 bytes OK
|
||||
2026/03/30-15:06:34.613785 7f4bd8fea6c0 Delete type=0 #75
|
||||
2026/03/30-15:06:34.613973 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!ZWBHiWW5QlUeseAX' @ 72057594037927935 : 1 .. '!journal.pages!ZWBHiWW5QlUeseAX.jtQXIqLfyet8Nlte' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000186
|
||||
MANIFEST-000194
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
2026/03/30-08:26:03.909166 7f4bdafee6c0 Recovering log #184
|
||||
2026/03/30-08:26:03.919289 7f4bdafee6c0 Delete type=3 #182
|
||||
2026/03/30-08:26:03.919342 7f4bdafee6c0 Delete type=0 #184
|
||||
2026/03/30-09:43:28.079081 7f4bd8fea6c0 Level-0 table #189: started
|
||||
2026/03/30-09:43:28.079103 7f4bd8fea6c0 Level-0 table #189: 0 bytes OK
|
||||
2026/03/30-09:43:28.086060 7f4bd8fea6c0 Delete type=0 #187
|
||||
2026/03/30-09:43:28.092246 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!TniC3ok9W0hDYxJS' @ 72057594037927935 : 1 .. '!journal.pages!yZsG9QaBHT3cUfNd.AHcfBcO96nUCELxv' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-09:43:28.092280 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!TniC3ok9W0hDYxJS' @ 72057594037927935 : 1 .. '!journal.pages!yZsG9QaBHT3cUfNd.AHcfBcO96nUCELxv' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.318696 7f4bd97eb6c0 Recovering log #192
|
||||
2026/03/30-15:06:44.329241 7f4bd97eb6c0 Delete type=3 #190
|
||||
2026/03/30-15:06:44.329288 7f4bd97eb6c0 Delete type=0 #192
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/03/30-08:16:07.254592 7f4bd97eb6c0 Recovering log #180
|
||||
2026/03/30-08:16:07.264713 7f4bd97eb6c0 Delete type=3 #178
|
||||
2026/03/30-08:16:07.264785 7f4bd97eb6c0 Delete type=0 #180
|
||||
2026/03/30-08:24:08.112328 7f4bd8fea6c0 Level-0 table #185: started
|
||||
2026/03/30-08:24:08.112359 7f4bd8fea6c0 Level-0 table #185: 0 bytes OK
|
||||
2026/03/30-08:24:08.119443 7f4bd8fea6c0 Delete type=0 #183
|
||||
2026/03/30-08:24:08.119714 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!TniC3ok9W0hDYxJS' @ 72057594037927935 : 1 .. '!journal.pages!yZsG9QaBHT3cUfNd.AHcfBcO96nUCELxv' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-08:24:08.119737 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!TniC3ok9W0hDYxJS' @ 72057594037927935 : 1 .. '!journal.pages!yZsG9QaBHT3cUfNd.AHcfBcO96nUCELxv' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.605619 7f4bd9fec6c0 Recovering log #188
|
||||
2026/03/30-14:14:12.686963 7f4bd9fec6c0 Delete type=3 #186
|
||||
2026/03/30-14:14:12.687013 7f4bd9fec6c0 Delete type=0 #188
|
||||
2026/03/30-15:06:34.620345 7f4bd8fea6c0 Level-0 table #193: started
|
||||
2026/03/30-15:06:34.620377 7f4bd8fea6c0 Level-0 table #193: 0 bytes OK
|
||||
2026/03/30-15:06:34.628129 7f4bd8fea6c0 Delete type=0 #191
|
||||
2026/03/30-15:06:34.641660 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!TniC3ok9W0hDYxJS' @ 72057594037927935 : 1 .. '!journal.pages!yZsG9QaBHT3cUfNd.AHcfBcO96nUCELxv' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:34.641692 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!TniC3ok9W0hDYxJS' @ 72057594037927935 : 1 .. '!journal.pages!yZsG9QaBHT3cUfNd.AHcfBcO96nUCELxv' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000758
|
||||
MANIFEST-000766
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
2026/03/30-08:26:03.896176 7f4bd97eb6c0 Recovering log #756
|
||||
2026/03/30-08:26:03.907046 7f4bd97eb6c0 Delete type=3 #754
|
||||
2026/03/30-08:26:03.907119 7f4bd97eb6c0 Delete type=0 #756
|
||||
2026/03/30-09:43:28.086148 7f4bd8fea6c0 Level-0 table #761: started
|
||||
2026/03/30-09:43:28.086168 7f4bd8fea6c0 Level-0 table #761: 0 bytes OK
|
||||
2026/03/30-09:43:28.092174 7f4bd8fea6c0 Delete type=0 #759
|
||||
2026/03/30-09:43:28.092256 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!f6UhPlIUh2O0F36q' @ 72057594037927935 : 1 .. '!journal.pages!f6UhPlIUh2O0F36q.keqszrb6FAI7CVZx' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-09:43:28.092274 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!f6UhPlIUh2O0F36q' @ 72057594037927935 : 1 .. '!journal.pages!f6UhPlIUh2O0F36q.keqszrb6FAI7CVZx' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.305642 7f4bda7ed6c0 Recovering log #764
|
||||
2026/03/30-15:06:44.315212 7f4bda7ed6c0 Delete type=3 #762
|
||||
2026/03/30-15:06:44.315294 7f4bda7ed6c0 Delete type=0 #764
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/03/30-08:16:07.240824 7f4bdafee6c0 Recovering log #752
|
||||
2026/03/30-08:16:07.251864 7f4bdafee6c0 Delete type=3 #750
|
||||
2026/03/30-08:16:07.251919 7f4bdafee6c0 Delete type=0 #752
|
||||
2026/03/30-08:24:08.092532 7f4bd8fea6c0 Level-0 table #757: started
|
||||
2026/03/30-08:24:08.092592 7f4bd8fea6c0 Level-0 table #757: 0 bytes OK
|
||||
2026/03/30-08:24:08.099028 7f4bd8fea6c0 Delete type=0 #755
|
||||
2026/03/30-08:24:08.119656 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!f6UhPlIUh2O0F36q' @ 72057594037927935 : 1 .. '!journal.pages!f6UhPlIUh2O0F36q.keqszrb6FAI7CVZx' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-08:24:08.119722 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!f6UhPlIUh2O0F36q' @ 72057594037927935 : 1 .. '!journal.pages!f6UhPlIUh2O0F36q.keqszrb6FAI7CVZx' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.515876 7f4bd97eb6c0 Recovering log #760
|
||||
2026/03/30-14:14:12.589985 7f4bd97eb6c0 Delete type=3 #758
|
||||
2026/03/30-14:14:12.590051 7f4bd97eb6c0 Delete type=0 #760
|
||||
2026/03/30-15:06:34.600499 7f4bd8fea6c0 Level-0 table #765: started
|
||||
2026/03/30-15:06:34.600616 7f4bd8fea6c0 Level-0 table #765: 0 bytes OK
|
||||
2026/03/30-15:06:34.607256 7f4bd8fea6c0 Delete type=0 #763
|
||||
2026/03/30-15:06:34.613958 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!f6UhPlIUh2O0F36q' @ 72057594037927935 : 1 .. '!journal.pages!f6UhPlIUh2O0F36q.keqszrb6FAI7CVZx' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:34.614004 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!f6UhPlIUh2O0F36q' @ 72057594037927935 : 1 .. '!journal.pages!f6UhPlIUh2O0F36q.keqszrb6FAI7CVZx' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-004379
|
||||
MANIFEST-004387
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
2026/03/30-08:26:03.870788 7f4bd9fec6c0 Recovering log #4377
|
||||
2026/03/30-08:26:03.881274 7f4bd9fec6c0 Delete type=3 #4375
|
||||
2026/03/30-08:26:03.881332 7f4bd9fec6c0 Delete type=0 #4377
|
||||
2026/03/30-09:43:28.073001 7f4bd8fea6c0 Level-0 table #4382: started
|
||||
2026/03/30-09:43:28.073024 7f4bd8fea6c0 Level-0 table #4382: 0 bytes OK
|
||||
2026/03/30-09:43:28.078972 7f4bd8fea6c0 Delete type=0 #4380
|
||||
2026/03/30-09:43:28.092238 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!0lxwWrzKsdTBQhH0' @ 72057594037927935 : 1 .. '!journal.pages!wgSyae4GTJDkmBOm.6Ql0lgquUCTrMyTZ' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.225449 7f4bd97eb6c0 Recovering log #4385
|
||||
2026/03/30-15:06:44.236150 7f4bd97eb6c0 Delete type=3 #4383
|
||||
2026/03/30-15:06:44.236230 7f4bd97eb6c0 Delete type=0 #4385
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
2026/03/30-08:16:07.214667 7f4bd97eb6c0 Recovering log #4373
|
||||
2026/03/30-08:16:07.224699 7f4bd97eb6c0 Delete type=3 #4371
|
||||
2026/03/30-08:16:07.224769 7f4bd97eb6c0 Delete type=0 #4373
|
||||
2026/03/30-08:24:08.099151 7f4bd8fea6c0 Level-0 table #4378: started
|
||||
2026/03/30-08:24:08.099181 7f4bd8fea6c0 Level-0 table #4378: 0 bytes OK
|
||||
2026/03/30-08:24:08.105876 7f4bd8fea6c0 Delete type=0 #4376
|
||||
2026/03/30-08:24:08.119676 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!0lxwWrzKsdTBQhH0' @ 72057594037927935 : 1 .. '!journal.pages!wgSyae4GTJDkmBOm.6Ql0lgquUCTrMyTZ' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.387545 7f4bda7ed6c0 Recovering log #4381
|
||||
2026/03/30-14:14:12.435510 7f4bda7ed6c0 Delete type=3 #4379
|
||||
2026/03/30-14:14:12.435579 7f4bda7ed6c0 Delete type=0 #4381
|
||||
2026/03/30-15:06:34.685316 7f4bd8fea6c0 Level-0 table #4386: started
|
||||
2026/03/30-15:06:34.685354 7f4bd8fea6c0 Level-0 table #4386: 0 bytes OK
|
||||
2026/03/30-15:06:34.691827 7f4bd8fea6c0 Delete type=0 #4384
|
||||
2026/03/30-15:06:34.709676 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!0lxwWrzKsdTBQhH0' @ 72057594037927935 : 1 .. '!journal.pages!wgSyae4GTJDkmBOm.6Ql0lgquUCTrMyTZ' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000099
|
||||
MANIFEST-000107
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
2026/03/30-08:26:03.960135 7f4bdafee6c0 Recovering log #97
|
||||
2026/03/30-08:26:03.970139 7f4bdafee6c0 Delete type=3 #95
|
||||
2026/03/30-08:26:03.970187 7f4bdafee6c0 Delete type=0 #97
|
||||
2026/03/30-09:43:28.104316 7f4bd8fea6c0 Level-0 table #102: started
|
||||
2026/03/30-09:43:28.104333 7f4bd8fea6c0 Level-0 table #102: 0 bytes OK
|
||||
2026/03/30-09:43:28.111378 7f4bd8fea6c0 Delete type=0 #100
|
||||
2026/03/30-09:43:28.117472 7f4bd8fea6c0 Manual compaction at level-0 from '!tables!J9VdvrwkbyKxMAT7' @ 72057594037927935 : 1 .. '!tables.results!jGKjfCyk4ROSy9fU.zRzADzATtijaBdNX' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-09:43:28.117505 7f4bd8fea6c0 Manual compaction at level-1 from '!tables!J9VdvrwkbyKxMAT7' @ 72057594037927935 : 1 .. '!tables.results!jGKjfCyk4ROSy9fU.zRzADzATtijaBdNX' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.375576 7f4bd97eb6c0 Recovering log #105
|
||||
2026/03/30-15:06:44.385281 7f4bd97eb6c0 Delete type=3 #103
|
||||
2026/03/30-15:06:44.385352 7f4bd97eb6c0 Delete type=0 #105
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/03/30-08:16:07.306304 7f4bd9fec6c0 Recovering log #93
|
||||
2026/03/30-08:16:07.316612 7f4bd9fec6c0 Delete type=3 #91
|
||||
2026/03/30-08:16:07.316673 7f4bd9fec6c0 Delete type=0 #93
|
||||
2026/03/30-08:24:08.119869 7f4bd8fea6c0 Level-0 table #98: started
|
||||
2026/03/30-08:24:08.119905 7f4bd8fea6c0 Level-0 table #98: 0 bytes OK
|
||||
2026/03/30-08:24:08.126557 7f4bd8fea6c0 Delete type=0 #96
|
||||
2026/03/30-08:24:08.146502 7f4bd8fea6c0 Manual compaction at level-0 from '!tables!J9VdvrwkbyKxMAT7' @ 72057594037927935 : 1 .. '!tables.results!jGKjfCyk4ROSy9fU.zRzADzATtijaBdNX' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-08:24:08.146547 7f4bd8fea6c0 Manual compaction at level-1 from '!tables!J9VdvrwkbyKxMAT7' @ 72057594037927935 : 1 .. '!tables.results!jGKjfCyk4ROSy9fU.zRzADzATtijaBdNX' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.872794 7f4bd9fec6c0 Recovering log #101
|
||||
2026/03/30-14:14:12.920810 7f4bd9fec6c0 Delete type=3 #99
|
||||
2026/03/30-14:14:12.920879 7f4bd9fec6c0 Delete type=0 #101
|
||||
2026/03/30-15:06:34.717076 7f4bd8fea6c0 Level-0 table #106: started
|
||||
2026/03/30-15:06:34.717223 7f4bd8fea6c0 Level-0 table #106: 0 bytes OK
|
||||
2026/03/30-15:06:34.723514 7f4bd8fea6c0 Delete type=0 #104
|
||||
2026/03/30-15:06:34.740972 7f4bd8fea6c0 Manual compaction at level-0 from '!tables!J9VdvrwkbyKxMAT7' @ 72057594037927935 : 1 .. '!tables.results!jGKjfCyk4ROSy9fU.zRzADzATtijaBdNX' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:34.741010 7f4bd8fea6c0 Manual compaction at level-1 from '!tables!J9VdvrwkbyKxMAT7' @ 72057594037927935 : 1 .. '!tables.results!jGKjfCyk4ROSy9fU.zRzADzATtijaBdNX' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000080
|
||||
MANIFEST-000088
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
2026/03/30-08:26:03.946656 7f4bd9fec6c0 Recovering log #78
|
||||
2026/03/30-08:26:03.958209 7f4bd9fec6c0 Delete type=3 #76
|
||||
2026/03/30-08:26:03.958276 7f4bd9fec6c0 Delete type=0 #78
|
||||
2026/03/30-09:43:28.111476 7f4bd8fea6c0 Level-0 table #83: started
|
||||
2026/03/30-09:43:28.111506 7f4bd8fea6c0 Level-0 table #83: 0 bytes OK
|
||||
2026/03/30-09:43:28.117383 7f4bd8fea6c0 Delete type=0 #81
|
||||
2026/03/30-09:43:28.117483 7f4bd8fea6c0 Manual compaction at level-0 from '!macros!apyHJT40enTKFUfX' @ 72057594037927935 : 1 .. '!macros!suexsLbORUfE9ptz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-09:43:28.117499 7f4bd8fea6c0 Manual compaction at level-1 from '!macros!apyHJT40enTKFUfX' @ 72057594037927935 : 1 .. '!macros!suexsLbORUfE9ptz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.362194 7f4bdafee6c0 Recovering log #86
|
||||
2026/03/30-15:06:44.373140 7f4bdafee6c0 Delete type=3 #84
|
||||
2026/03/30-15:06:44.373208 7f4bdafee6c0 Delete type=0 #86
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/03/30-08:16:07.294776 7f4bda7ed6c0 Recovering log #74
|
||||
2026/03/30-08:16:07.304322 7f4bda7ed6c0 Delete type=3 #72
|
||||
2026/03/30-08:16:07.304388 7f4bda7ed6c0 Delete type=0 #74
|
||||
2026/03/30-08:24:08.132921 7f4bd8fea6c0 Level-0 table #79: started
|
||||
2026/03/30-08:24:08.132958 7f4bd8fea6c0 Level-0 table #79: 0 bytes OK
|
||||
2026/03/30-08:24:08.139231 7f4bd8fea6c0 Delete type=0 #77
|
||||
2026/03/30-08:24:08.146528 7f4bd8fea6c0 Manual compaction at level-0 from '!macros!apyHJT40enTKFUfX' @ 72057594037927935 : 1 .. '!macros!suexsLbORUfE9ptz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-08:24:08.146565 7f4bd8fea6c0 Manual compaction at level-1 from '!macros!apyHJT40enTKFUfX' @ 72057594037927935 : 1 .. '!macros!suexsLbORUfE9ptz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.812401 7f4bdafee6c0 Recovering log #82
|
||||
2026/03/30-14:14:12.871063 7f4bdafee6c0 Delete type=3 #80
|
||||
2026/03/30-14:14:12.871115 7f4bdafee6c0 Delete type=0 #82
|
||||
2026/03/30-15:06:34.592601 7f4bd8fea6c0 Level-0 table #87: started
|
||||
2026/03/30-15:06:34.592754 7f4bd8fea6c0 Level-0 table #87: 0 bytes OK
|
||||
2026/03/30-15:06:34.600381 7f4bd8fea6c0 Delete type=0 #85
|
||||
2026/03/30-15:06:34.613943 7f4bd8fea6c0 Manual compaction at level-0 from '!macros!apyHJT40enTKFUfX' @ 72057594037927935 : 1 .. '!macros!suexsLbORUfE9ptz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:34.613995 7f4bd8fea6c0 Manual compaction at level-1 from '!macros!apyHJT40enTKFUfX' @ 72057594037927935 : 1 .. '!macros!suexsLbORUfE9ptz' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000258
|
||||
MANIFEST-000266
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
2026/03/30-08:26:03.934190 7f4bd97eb6c0 Recovering log #256
|
||||
2026/03/30-08:26:03.945052 7f4bd97eb6c0 Delete type=3 #254
|
||||
2026/03/30-08:26:03.945123 7f4bd97eb6c0 Delete type=0 #256
|
||||
2026/03/30-09:43:28.092357 7f4bd8fea6c0 Level-0 table #261: started
|
||||
2026/03/30-09:43:28.092374 7f4bd8fea6c0 Level-0 table #261: 0 bytes OK
|
||||
2026/03/30-09:43:28.098362 7f4bd8fea6c0 Delete type=0 #259
|
||||
2026/03/30-09:43:28.117455 7f4bd8fea6c0 Manual compaction at level-0 from '!macros!Admg6zBHid4mfbJY' @ 72057594037927935 : 1 .. '!macros!wY3tga12higX7soz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-09:43:28.117478 7f4bd8fea6c0 Manual compaction at level-1 from '!macros!Admg6zBHid4mfbJY' @ 72057594037927935 : 1 .. '!macros!wY3tga12higX7soz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.348172 7f4bda7ed6c0 Recovering log #264
|
||||
2026/03/30-15:06:44.358939 7f4bda7ed6c0 Delete type=3 #262
|
||||
2026/03/30-15:06:44.358996 7f4bda7ed6c0 Delete type=0 #264
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/03/30-08:16:07.280810 7f4bdafee6c0 Recovering log #252
|
||||
2026/03/30-08:16:07.292094 7f4bdafee6c0 Delete type=3 #250
|
||||
2026/03/30-08:16:07.292157 7f4bdafee6c0 Delete type=0 #252
|
||||
2026/03/30-08:24:08.139393 7f4bd8fea6c0 Level-0 table #257: started
|
||||
2026/03/30-08:24:08.139445 7f4bd8fea6c0 Level-0 table #257: 0 bytes OK
|
||||
2026/03/30-08:24:08.146369 7f4bd8fea6c0 Delete type=0 #255
|
||||
2026/03/30-08:24:08.146539 7f4bd8fea6c0 Manual compaction at level-0 from '!macros!Admg6zBHid4mfbJY' @ 72057594037927935 : 1 .. '!macros!wY3tga12higX7soz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-08:24:08.146556 7f4bd8fea6c0 Manual compaction at level-1 from '!macros!Admg6zBHid4mfbJY' @ 72057594037927935 : 1 .. '!macros!wY3tga12higX7soz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.747731 7f4bda7ed6c0 Recovering log #260
|
||||
2026/03/30-14:14:12.800943 7f4bda7ed6c0 Delete type=3 #258
|
||||
2026/03/30-14:14:12.801033 7f4bda7ed6c0 Delete type=0 #260
|
||||
2026/03/30-15:06:34.614167 7f4bd8fea6c0 Level-0 table #265: started
|
||||
2026/03/30-15:06:34.614201 7f4bd8fea6c0 Level-0 table #265: 0 bytes OK
|
||||
2026/03/30-15:06:34.620245 7f4bd8fea6c0 Delete type=0 #263
|
||||
2026/03/30-15:06:34.641645 7f4bd8fea6c0 Manual compaction at level-0 from '!macros!Admg6zBHid4mfbJY' @ 72057594037927935 : 1 .. '!macros!wY3tga12higX7soz' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:34.641681 7f4bd8fea6c0 Manual compaction at level-1 from '!macros!Admg6zBHid4mfbJY' @ 72057594037927935 : 1 .. '!macros!wY3tga12higX7soz' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-001000
|
||||
MANIFEST-001008
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
2026/03/30-08:26:03.884089 7f4bda7ed6c0 Recovering log #998
|
||||
2026/03/30-08:26:03.894023 7f4bda7ed6c0 Delete type=3 #996
|
||||
2026/03/30-08:26:03.894104 7f4bda7ed6c0 Delete type=0 #998
|
||||
2026/03/30-09:43:28.067084 7f4bd8fea6c0 Level-0 table #1003: started
|
||||
2026/03/30-09:43:28.067126 7f4bd8fea6c0 Level-0 table #1003: 0 bytes OK
|
||||
2026/03/30-09:43:28.072914 7f4bd8fea6c0 Delete type=0 #1001
|
||||
2026/03/30-09:43:28.092224 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!OgzOugwIXfHtijaY' @ 72057594037927935 : 1 .. '!journal.pages!OgzOugwIXfHtijaY.OOev7kj2KoMOGoMD' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-09:43:28.092251 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!OgzOugwIXfHtijaY' @ 72057594037927935 : 1 .. '!journal.pages!OgzOugwIXfHtijaY.OOev7kj2KoMOGoMD' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:44.274432 7f4bdafee6c0 Recovering log #1006
|
||||
2026/03/30-15:06:44.302845 7f4bdafee6c0 Delete type=3 #1004
|
||||
2026/03/30-15:06:44.302897 7f4bdafee6c0 Delete type=0 #1006
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/03/30-08:16:07.228048 7f4bda7ed6c0 Recovering log #994
|
||||
2026/03/30-08:16:07.237984 7f4bda7ed6c0 Delete type=3 #992
|
||||
2026/03/30-08:16:07.238051 7f4bda7ed6c0 Delete type=0 #994
|
||||
2026/03/30-08:24:08.106011 7f4bd8fea6c0 Level-0 table #999: started
|
||||
2026/03/30-08:24:08.106044 7f4bd8fea6c0 Level-0 table #999: 0 bytes OK
|
||||
2026/03/30-08:24:08.112158 7f4bd8fea6c0 Delete type=0 #997
|
||||
2026/03/30-08:24:08.119694 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!OgzOugwIXfHtijaY' @ 72057594037927935 : 1 .. '!journal.pages!OgzOugwIXfHtijaY.OOev7kj2KoMOGoMD' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-08:24:08.119729 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!OgzOugwIXfHtijaY' @ 72057594037927935 : 1 .. '!journal.pages!OgzOugwIXfHtijaY.OOev7kj2KoMOGoMD' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-14:14:12.447332 7f4bdafee6c0 Recovering log #1002
|
||||
2026/03/30-14:14:12.506248 7f4bdafee6c0 Delete type=3 #1000
|
||||
2026/03/30-14:14:12.506320 7f4bdafee6c0 Delete type=0 #1002
|
||||
2026/03/30-15:06:34.585439 7f4bd8fea6c0 Level-0 table #1007: started
|
||||
2026/03/30-15:06:34.585515 7f4bd8fea6c0 Level-0 table #1007: 0 bytes OK
|
||||
2026/03/30-15:06:34.592340 7f4bd8fea6c0 Delete type=0 #1005
|
||||
2026/03/30-15:06:34.613927 7f4bd8fea6c0 Manual compaction at level-0 from '!journal!OgzOugwIXfHtijaY' @ 72057594037927935 : 1 .. '!journal.pages!OgzOugwIXfHtijaY.OOev7kj2KoMOGoMD' @ 0 : 0; will stop at (end)
|
||||
2026/03/30-15:06:34.613985 7f4bd8fea6c0 Manual compaction at level-1 from '!journal!OgzOugwIXfHtijaY' @ 72057594037927935 : 1 .. '!journal.pages!OgzOugwIXfHtijaY.OOev7kj2KoMOGoMD' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -3,8 +3,6 @@ export const SYSTEM_ID = "fvtt-chroniques-de-l-etrange"
|
||||
export const ACTOR_TYPES = {
|
||||
character: "character",
|
||||
npc: "npc",
|
||||
tinji: "tinji",
|
||||
loksyu: "loksyu",
|
||||
}
|
||||
|
||||
export const ITEM_TYPES = {
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
export { default as CharacterDataModel } from "./character.js"
|
||||
export { default as NpcDataModel } from "./npc.js"
|
||||
export { default as TinjiDataModel } from "./tinji.js"
|
||||
export { default as LoksyuDataModel } from "./loksyu.js"
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
export default class LoksyuDataModel extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const { fields } = foundry.data
|
||||
const numberField = (initial = 0, extra = {}) => new fields.NumberField({ required: true, nullable: false, integer: true, initial, ...extra })
|
||||
const htmlField = (initial = "") => new fields.HTMLField({ required: true, nullable: false, initial, textSearch: true })
|
||||
|
||||
const polarity = () =>
|
||||
new fields.SchemaField({
|
||||
yin: new fields.SchemaField({ value: numberField(0, { min: 0 }) }),
|
||||
yang: new fields.SchemaField({ value: numberField(0, { min: 0 }) }),
|
||||
})
|
||||
|
||||
return {
|
||||
fire: polarity(),
|
||||
earth: polarity(),
|
||||
metal: polarity(),
|
||||
water: polarity(),
|
||||
wood: polarity(),
|
||||
description: htmlField(""),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
export default class TinjiDataModel extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const { fields } = foundry.data
|
||||
const numberField = (initial = 0, extra = {}) => new fields.NumberField({ required: true, nullable: false, integer: true, initial, ...extra })
|
||||
const htmlField = (initial = "") => new fields.HTMLField({ required: true, nullable: false, initial, textSearch: true })
|
||||
|
||||
return {
|
||||
value: numberField(0, { min: 0 }),
|
||||
description: htmlField(""),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,20 @@ export function registerSettings() {
|
||||
type: String,
|
||||
default: "0.0.0",
|
||||
})
|
||||
game.settings.register(SYSTEM_ID, "loksyuData", {
|
||||
name: "Loksyu Data",
|
||||
scope: "world",
|
||||
config: false,
|
||||
type: Object,
|
||||
default: { wood: {yin:0,yang:0}, fire: {yin:0,yang:0}, earth: {yin:0,yang:0}, metal: {yin:0,yang:0}, water: {yin:0,yang:0} },
|
||||
})
|
||||
game.settings.register(SYSTEM_ID, "tinjiData", {
|
||||
name: "TinJi Data",
|
||||
scope: "world",
|
||||
config: false,
|
||||
type: Number,
|
||||
default: 0,
|
||||
})
|
||||
}
|
||||
|
||||
export async function migrateIfNeeded() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ACTOR_TYPES, ITEM_TYPES, MAGICS, SUBTYPES, SYSTEM_ID } from "./config/constants.js"
|
||||
import { preLocalizeConfig } from "./config/localize.js"
|
||||
import { configureRuntime } from "./config/runtime.js"
|
||||
import { CharacterDataModel, LoksyuDataModel, NpcDataModel, TinjiDataModel } from "./data/actors/index.js"
|
||||
import { CharacterDataModel, NpcDataModel } from "./data/actors/index.js"
|
||||
import { EquipmentDataModel, KungfuDataModel, SpellDataModel, SupernaturalDataModel, WeaponDataModel, ArmorDataModel, SanheiDataModel, IngredientDataModel } from "./data/items/index.js"
|
||||
import { CDEMessage } from "./documents/chat-message.js"
|
||||
import { CDEActor } from "./documents/actor.js"
|
||||
@@ -9,11 +9,12 @@ import { CDEItem } from "./documents/item.js"
|
||||
import { registerDice } from "./ui/dice.js"
|
||||
import { registerHandlebarsHelpers } from "./ui/helpers.js"
|
||||
import { preloadPartials } from "./ui/templates.js"
|
||||
import { CDELoksyuSheet, CDECharacterSheet, CDENpcSheet, CDETinjiSheet } from "./ui/sheets/actors/index.js"
|
||||
import { CDECharacterSheet, CDENpcSheet } from "./ui/sheets/actors/index.js"
|
||||
import { CDEItemSheet, CDEKungfuSheet, CDESpellSheet, CDESupernaturalSheet, CDEWeaponSheet, CDEArmorSheet, CDESanheiSheet, CDEIngredientSheet } from "./ui/sheets/items/index.js"
|
||||
import { CDELoksyuApp } from "./ui/apps/loksyu-app.js"
|
||||
import { CDETinjiApp } from "./ui/apps/tinji-app.js"
|
||||
import { migrateIfNeeded, registerSettings } from "./migration.js"
|
||||
import { injectRollActions, refreshAllRollActions } from "./ui/roll-actions.js"
|
||||
|
||||
Hooks.once("i18nInit", preLocalizeConfig)
|
||||
|
||||
@@ -24,11 +25,12 @@ Hooks.once("init", async () => {
|
||||
|
||||
game.system.CONST = { MAGICS, SUBTYPES }
|
||||
|
||||
// Expose standalone apps globally for macros
|
||||
game.cde = { CDELoksyuApp, CDETinjiApp }
|
||||
|
||||
CONFIG.Actor.dataModels = {
|
||||
[ACTOR_TYPES.character]: CharacterDataModel,
|
||||
[ACTOR_TYPES.npc]: NpcDataModel,
|
||||
[ACTOR_TYPES.tinji]: TinjiDataModel,
|
||||
[ACTOR_TYPES.loksyu]: LoksyuDataModel,
|
||||
}
|
||||
CONFIG.Item.dataModels = {
|
||||
[ITEM_TYPES.item]: EquipmentDataModel,
|
||||
@@ -47,8 +49,8 @@ Hooks.once("init", async () => {
|
||||
|
||||
configureRuntime()
|
||||
|
||||
foundry.applications.apps.DocumentSheetConfig.unregisterSheet(Actor, "core", ActorSheet)
|
||||
foundry.applications.apps.DocumentSheetConfig.unregisterSheet(Item, "core", ItemSheet)
|
||||
foundry.applications.apps.DocumentSheetConfig.unregisterSheet(Actor, "core", foundry.appv1.sheets.ActorSheet)
|
||||
foundry.applications.apps.DocumentSheetConfig.unregisterSheet(Item, "core", foundry.appv1.sheets.ItemSheet)
|
||||
|
||||
foundry.applications.apps.DocumentSheetConfig.registerSheet(Actor, SYSTEM_ID, CDECharacterSheet, {
|
||||
types: [ACTOR_TYPES.character],
|
||||
@@ -60,16 +62,6 @@ Hooks.once("init", async () => {
|
||||
makeDefault: true,
|
||||
label: "CDE NPC Sheet (V2)",
|
||||
})
|
||||
foundry.applications.apps.DocumentSheetConfig.registerSheet(Actor, SYSTEM_ID, CDETinjiSheet, {
|
||||
types: [ACTOR_TYPES.tinji],
|
||||
makeDefault: true,
|
||||
label: "CDE Tinji Sheet (V2)",
|
||||
})
|
||||
foundry.applications.apps.DocumentSheetConfig.registerSheet(Actor, SYSTEM_ID, CDELoksyuSheet, {
|
||||
types: [ACTOR_TYPES.loksyu],
|
||||
makeDefault: true,
|
||||
label: "CDE Loksyu Sheet (V2)",
|
||||
})
|
||||
|
||||
foundry.applications.apps.DocumentSheetConfig.registerSheet(Item, SYSTEM_ID, CDEItemSheet, {
|
||||
types: [ITEM_TYPES.item],
|
||||
@@ -124,26 +116,50 @@ Hooks.once("ready", async () => {
|
||||
await migrateIfNeeded()
|
||||
})
|
||||
|
||||
/** Add Loksyu + Tin Ji quick-access buttons to the chat footer */
|
||||
/** Add Loksyu + Tin Ji quick-access buttons to the chat panel (FoundryVTT v13) */
|
||||
Hooks.on("renderChatLog", (_app, html) => {
|
||||
const el = html instanceof HTMLElement ? html : html[0]
|
||||
const controls = el?.querySelector?.(".chat-controls")
|
||||
if (!controls) return
|
||||
const el = html instanceof HTMLElement ? html : (html[0] ?? html)
|
||||
if (!el?.querySelector) return
|
||||
|
||||
// Avoid double-injection on re-renders
|
||||
if (el.querySelector(".cde-chat-app-buttons")) return
|
||||
|
||||
const wrapper = document.createElement("div")
|
||||
wrapper.classList.add("cde-chat-app-buttons")
|
||||
wrapper.innerHTML = `
|
||||
<button class="cde-chat-btn cde-chat-btn--loksyu" title="${game.i18n.localize("CDE.Loksyu")}">
|
||||
<button type="button" class="cde-chat-btn cde-chat-btn--loksyu">
|
||||
<i class="fas fa-yin-yang"></i> ${game.i18n.localize("CDE.Loksyu")}
|
||||
</button>
|
||||
<button class="cde-chat-btn cde-chat-btn--tinji" title="${game.i18n.localize("CDE.TinJi2")}">
|
||||
<button type="button" class="cde-chat-btn cde-chat-btn--tinji">
|
||||
<i class="fas fa-star"></i> ${game.i18n.localize("CDE.TinJi2")}
|
||||
</button>
|
||||
`
|
||||
controls.appendChild(wrapper)
|
||||
|
||||
wrapper.querySelector(".cde-chat-btn--loksyu")?.addEventListener("click", () => CDELoksyuApp.open())
|
||||
wrapper.querySelector(".cde-chat-btn--tinji")?.addEventListener("click", () => CDETinjiApp.open())
|
||||
// Use event delegation to avoid being swallowed by Foundry's own handlers
|
||||
wrapper.addEventListener("click", (ev) => {
|
||||
if (ev.target.closest(".cde-chat-btn--loksyu")) CDELoksyuApp.open()
|
||||
if (ev.target.closest(".cde-chat-btn--tinji")) CDETinjiApp.open()
|
||||
})
|
||||
|
||||
// Insert before the chat form — works on v12 and v13
|
||||
const anchor = el.querySelector(".chat-form")
|
||||
?? el.querySelector(".chat-message-form")
|
||||
?? el.querySelector("form")
|
||||
if (anchor) anchor.parentElement.insertBefore(wrapper, anchor)
|
||||
else el.appendChild(wrapper)
|
||||
})
|
||||
|
||||
/** Inject Loksyu / TinJi action buttons into roll-result chat messages */
|
||||
Hooks.on("renderChatMessageHTML", (message, html) => {
|
||||
injectRollActions(message, html)
|
||||
})
|
||||
|
||||
/** Refresh all visible roll-result buttons whenever Loksyu or TinJi settings change */
|
||||
Hooks.on("updateSetting", setting => {
|
||||
if (!setting.key) return
|
||||
if (setting.key.includes("loksyuData") || setting.key.includes("tinjiData")) {
|
||||
refreshAllRollActions()
|
||||
}
|
||||
})
|
||||
|
||||
function injectCompendiumLink(html) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { getSingletonActor } from "./singletons.js"
|
||||
import { ACTOR_TYPES } from "../../config/constants.js"
|
||||
import { getLoksyuData, setLoksyuData } from "./singletons.js"
|
||||
|
||||
const SYSTEM_ID = "fvtt-chroniques-de-l-etrange"
|
||||
|
||||
@@ -15,7 +14,7 @@ export class CDELoksyuApp extends foundry.applications.api.HandlebarsApplication
|
||||
resizable: false,
|
||||
},
|
||||
classes: ["cde-app", "cde-loksyu-standalone"],
|
||||
position: { width: 540, height: "auto" },
|
||||
position: { width: 520, height: "auto" },
|
||||
actions: {
|
||||
resetElement: CDELoksyuApp.#onResetElement,
|
||||
resetAll: CDELoksyuApp.#onResetAll,
|
||||
@@ -28,14 +27,12 @@ export class CDELoksyuApp extends foundry.applications.api.HandlebarsApplication
|
||||
},
|
||||
}
|
||||
|
||||
/** @type {Actor|null} */
|
||||
#actor = null
|
||||
/** @type {Function|null} bound hook handler */
|
||||
#updateHook = null
|
||||
_updateHook = null
|
||||
|
||||
/** Singleton accessor — open or bring to front */
|
||||
static open() {
|
||||
const existing = Object.values(foundry.applications.instances ?? {}).find(
|
||||
const existing = Array.from(foundry.applications.instances.values()).find(
|
||||
(app) => app instanceof CDELoksyuApp
|
||||
)
|
||||
if (existing) { existing.bringToFront(); return existing }
|
||||
@@ -45,10 +42,7 @@ export class CDELoksyuApp extends foundry.applications.api.HandlebarsApplication
|
||||
}
|
||||
|
||||
async _prepareContext() {
|
||||
this.#actor = await getSingletonActor(ACTOR_TYPES.loksyu)
|
||||
if (!this.#actor) return { hasActor: false }
|
||||
|
||||
const sys = this.#actor.system
|
||||
const sys = getLoksyuData()
|
||||
const ELEMENTS = [
|
||||
{ key: "wood", nameKey: "CDE.Wood", qualKey: "CDE.WoodQualities", img: `systems/${SYSTEM_ID}/images/cde_bois.webp` },
|
||||
{ key: "fire", nameKey: "CDE.Fire", qualKey: "CDE.FireQualities", img: `systems/${SYSTEM_ID}/images/cde_feu.webp` },
|
||||
@@ -58,12 +52,11 @@ export class CDELoksyuApp extends foundry.applications.api.HandlebarsApplication
|
||||
]
|
||||
|
||||
return {
|
||||
hasActor: true,
|
||||
canEdit: this.#actor.isOwner,
|
||||
canEdit: game.user.isGM,
|
||||
elements: ELEMENTS.map((el) => ({
|
||||
...el,
|
||||
yang: sys[el.key]?.yang?.value ?? 0,
|
||||
yin: sys[el.key]?.yin?.value ?? 0,
|
||||
yang: sys[el.key]?.yang ?? 0,
|
||||
yin: sys[el.key]?.yin ?? 0,
|
||||
})),
|
||||
}
|
||||
}
|
||||
@@ -72,16 +65,13 @@ export class CDELoksyuApp extends foundry.applications.api.HandlebarsApplication
|
||||
super._onRender(context, options)
|
||||
this.#bindInputs()
|
||||
|
||||
// Subscribe to actor updates to keep the app live
|
||||
this.#updateHook = Hooks.on("updateActor", (actor) => {
|
||||
if (actor.id === this.#actor?.id) this.render()
|
||||
})
|
||||
this._updateHook = Hooks.on("cde:loksyuUpdated", () => this.render())
|
||||
}
|
||||
|
||||
_onClose(options) {
|
||||
if (this.#updateHook !== null) {
|
||||
Hooks.off("updateActor", this.#updateHook)
|
||||
this.#updateHook = null
|
||||
if (this._updateHook !== null) {
|
||||
Hooks.off("cde:loksyuUpdated", this._updateHook)
|
||||
this._updateHook = null
|
||||
}
|
||||
super._onClose(options)
|
||||
}
|
||||
@@ -94,28 +84,29 @@ export class CDELoksyuApp extends foundry.applications.api.HandlebarsApplication
|
||||
const field = ev.currentTarget.dataset.field
|
||||
const val = parseInt(ev.currentTarget.value, 10)
|
||||
if (!field || isNaN(val)) return
|
||||
await this.#actor?.update({ [field]: Math.max(0, val) })
|
||||
// field is like "wood.yin" or "fire.yang"
|
||||
const [aspect, dim] = field.split(".")
|
||||
if (!aspect || !dim) return
|
||||
const data = getLoksyuData()
|
||||
if (!data[aspect]) data[aspect] = { yin: 0, yang: 0 }
|
||||
data[aspect][dim] = Math.max(0, val)
|
||||
await setLoksyuData(data)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
static async #onResetElement(event, target) {
|
||||
const key = target.dataset.element
|
||||
if (!key || !this.#actor) return
|
||||
await this.#actor.update({
|
||||
[`system.${key}.yin.value`]: 0,
|
||||
[`system.${key}.yang.value`]: 0,
|
||||
})
|
||||
if (!key) return
|
||||
const data = getLoksyuData()
|
||||
data[key] = { yin: 0, yang: 0 }
|
||||
await setLoksyuData(data)
|
||||
}
|
||||
|
||||
static async #onResetAll(_event, _target) {
|
||||
if (!this.#actor) return
|
||||
const KEYS = ["wood", "fire", "earth", "metal", "water"]
|
||||
const update = {}
|
||||
for (const k of KEYS) {
|
||||
update[`system.${k}.yin.value`] = 0
|
||||
update[`system.${k}.yang.value`] = 0
|
||||
}
|
||||
await this.#actor.update(update)
|
||||
const data = getLoksyuData()
|
||||
for (const k of KEYS) data[k] = { yin: 0, yang: 0 }
|
||||
await setLoksyuData(data)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
/**
|
||||
* Singleton actor utilities for Loksyu and Tin Ji.
|
||||
* Loksyu / TinJi settings-based helpers.
|
||||
*
|
||||
* Both are world-level shared trackers backed by a singleton Actor document
|
||||
* of type "loksyu" / "tinji". GMs can create them via the Actors sidebar;
|
||||
* the apps find the first one or offer to create it.
|
||||
* Data is stored as world settings instead of singleton Actor documents.
|
||||
*/
|
||||
|
||||
import { ACTOR_TYPES } from "../../config/constants.js"
|
||||
const SYSTEM_ID = "fvtt-chroniques-de-l-etrange"
|
||||
|
||||
/** Wu Xing generating cycle — [successes, auspicious, noxious, loksyu, tinji] */
|
||||
const WU_XING_CYCLE = {
|
||||
@@ -17,7 +15,6 @@ const WU_XING_CYCLE = {
|
||||
water: ["water", "wood", "metal", "fire", "earth"],
|
||||
}
|
||||
|
||||
/** Die face pairs [yin, yang] per aspect (0 = face "10") */
|
||||
const ASPECT_FACES = {
|
||||
metal: [3, 8],
|
||||
water: [1, 6],
|
||||
@@ -26,39 +23,35 @@ const ASPECT_FACES = {
|
||||
wood: [4, 9],
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the first actor of the given type in the world, or create one if the
|
||||
* current user is a GM and none exists.
|
||||
*
|
||||
* @param {"loksyu"|"tinji"} type
|
||||
* @returns {Promise<Actor|null>}
|
||||
*/
|
||||
export async function getSingletonActor(type) {
|
||||
const existing = game.actors.find((a) => a.type === type)
|
||||
if (existing) return existing
|
||||
|
||||
if (!game.user.isGM) {
|
||||
ui.notifications.warn(game.i18n.localize(type === ACTOR_TYPES.loksyu ? "CDE.LoksyuNotFound" : "CDE.TinjiNotFound"))
|
||||
return null
|
||||
/** Read the current loksyu data object from world settings */
|
||||
export function getLoksyuData() {
|
||||
return game.settings.get(SYSTEM_ID, "loksyuData") ?? {
|
||||
wood: {yin:0,yang:0}, fire: {yin:0,yang:0}, earth: {yin:0,yang:0}, metal: {yin:0,yang:0}, water: {yin:0,yang:0},
|
||||
}
|
||||
}
|
||||
|
||||
// Auto-create the singleton when the GM opens the app for the first time.
|
||||
const nameKey = type === ACTOR_TYPES.loksyu ? "CDE.UpperCaseLoksyu" : "CDE.UpperCaseTinJi"
|
||||
const actor = await Actor.create({
|
||||
name: game.i18n.localize(nameKey),
|
||||
type,
|
||||
img: type === ACTOR_TYPES.loksyu
|
||||
? "systems/fvtt-chroniques-de-l-etrange/images/loksyu_long.webp"
|
||||
: "systems/fvtt-chroniques-de-l-etrange/images/tinji.webp",
|
||||
})
|
||||
return actor ?? null
|
||||
/** Write the loksyu data object to world settings */
|
||||
export async function setLoksyuData(data) {
|
||||
await game.settings.set(SYSTEM_ID, "loksyuData", data)
|
||||
Hooks.callAll("cde:loksyuUpdated", data)
|
||||
}
|
||||
|
||||
/** Read current TinJi value from world settings */
|
||||
export function getTinjiValue() {
|
||||
return game.settings.get(SYSTEM_ID, "tinjiData") ?? 0
|
||||
}
|
||||
|
||||
/** Write TinJi value to world settings */
|
||||
export async function setTinjiValue(value) {
|
||||
await game.settings.set(SYSTEM_ID, "tinjiData", Math.max(0, value))
|
||||
Hooks.callAll("cde:tinjiUpdated", Math.max(0, value))
|
||||
}
|
||||
|
||||
/**
|
||||
* After a WuXing roll, add the loksyu faces (yin + yang) of the relevant
|
||||
* aspect to the singleton Loksyu actor.
|
||||
* aspect to the loksyu settings data.
|
||||
*
|
||||
* @param {string} activeAspect - The aspect used for the roll (e.g. "fire")
|
||||
* @param {string} activeAspect - e.g. "fire"
|
||||
* @param {Object} faces - Die face counts { 0: n, 1: n, …, 9: n }
|
||||
*/
|
||||
export async function updateLoksyuFromRoll(activeAspect, faces) {
|
||||
@@ -73,27 +66,22 @@ export async function updateLoksyuFromRoll(activeAspect, faces) {
|
||||
const yangCount = faces[yangFace] ?? 0
|
||||
if (yinCount === 0 && yangCount === 0) return
|
||||
|
||||
const actor = await getSingletonActor(ACTOR_TYPES.loksyu)
|
||||
if (!actor) return
|
||||
|
||||
const current = actor.system[lokAspect] ?? { yin: { value: 0 }, yang: { value: 0 } }
|
||||
await actor.update({
|
||||
[`system.${lokAspect}.yin.value`]: (current.yin.value ?? 0) + yinCount,
|
||||
[`system.${lokAspect}.yang.value`]: (current.yang.value ?? 0) + yangCount,
|
||||
})
|
||||
const data = getLoksyuData()
|
||||
const current = data[lokAspect] ?? { yin: 0, yang: 0 }
|
||||
data[lokAspect] = {
|
||||
yin: (current.yin ?? 0) + yinCount,
|
||||
yang: (current.yang ?? 0) + yangCount,
|
||||
}
|
||||
await setLoksyuData(data)
|
||||
}
|
||||
|
||||
/**
|
||||
* After a WuXing roll, add tinji faces to the singleton TinJi actor.
|
||||
* After a WuXing roll, add tinji faces to the TinJi settings.
|
||||
*
|
||||
* @param {number} count - Number of tinji faces rolled
|
||||
*/
|
||||
export async function updateTinjiFromRoll(count) {
|
||||
if (!count || count <= 0) return
|
||||
|
||||
const actor = await getSingletonActor(ACTOR_TYPES.tinji)
|
||||
if (!actor) return
|
||||
|
||||
const current = actor.system.value ?? 0
|
||||
await actor.update({ "system.value": current + count })
|
||||
const current = getTinjiValue()
|
||||
await setTinjiValue(current + count)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { getSingletonActor } from "./singletons.js"
|
||||
import { ACTOR_TYPES } from "../../config/constants.js"
|
||||
import { getTinjiValue, setTinjiValue } from "./singletons.js"
|
||||
|
||||
const SYSTEM_ID = "fvtt-chroniques-de-l-etrange"
|
||||
|
||||
@@ -30,13 +29,11 @@ export class CDETinjiApp extends foundry.applications.api.HandlebarsApplicationM
|
||||
},
|
||||
}
|
||||
|
||||
/** @type {Actor|null} */
|
||||
#actor = null
|
||||
/** @type {Function|null} */
|
||||
#updateHook = null
|
||||
_updateHook = null
|
||||
|
||||
static open() {
|
||||
const existing = Object.values(foundry.applications.instances ?? {}).find(
|
||||
const existing = Array.from(foundry.applications.instances.values()).find(
|
||||
(app) => app instanceof CDETinjiApp
|
||||
)
|
||||
if (existing) { existing.bringToFront(); return existing }
|
||||
@@ -46,29 +43,22 @@ export class CDETinjiApp extends foundry.applications.api.HandlebarsApplicationM
|
||||
}
|
||||
|
||||
async _prepareContext() {
|
||||
this.#actor = await getSingletonActor(ACTOR_TYPES.tinji)
|
||||
if (!this.#actor) return { hasActor: false, value: 0 }
|
||||
|
||||
return {
|
||||
hasActor: true,
|
||||
canEdit: this.#actor.isOwner,
|
||||
value: this.#actor.system.value ?? 0,
|
||||
canEdit: game.user.isGM,
|
||||
value: getTinjiValue(),
|
||||
}
|
||||
}
|
||||
|
||||
_onRender(context, options) {
|
||||
super._onRender(context, options)
|
||||
this.#bindDirectInput()
|
||||
|
||||
this.#updateHook = Hooks.on("updateActor", (actor) => {
|
||||
if (actor.id === this.#actor?.id) this.render()
|
||||
})
|
||||
this._updateHook = Hooks.on("cde:tinjiUpdated", () => this.render())
|
||||
}
|
||||
|
||||
_onClose(options) {
|
||||
if (this.#updateHook !== null) {
|
||||
Hooks.off("updateActor", this.#updateHook)
|
||||
this.#updateHook = null
|
||||
if (this._updateHook !== null) {
|
||||
Hooks.off("cde:tinjiUpdated", this._updateHook)
|
||||
this._updateHook = null
|
||||
}
|
||||
super._onClose(options)
|
||||
}
|
||||
@@ -78,39 +68,31 @@ export class CDETinjiApp extends foundry.applications.api.HandlebarsApplicationM
|
||||
if (!input) return
|
||||
input.addEventListener("change", async (ev) => {
|
||||
const val = parseInt(ev.currentTarget.value, 10)
|
||||
if (!isNaN(val) && this.#actor) {
|
||||
await this.#actor.update({ "system.value": Math.max(0, val) })
|
||||
}
|
||||
if (!isNaN(val)) await setTinjiValue(val)
|
||||
})
|
||||
}
|
||||
|
||||
static async #onIncrement() {
|
||||
if (!this.#actor) return
|
||||
const current = this.#actor.system.value ?? 0
|
||||
await this.#actor.update({ "system.value": current + 1 })
|
||||
await setTinjiValue(getTinjiValue() + 1)
|
||||
}
|
||||
|
||||
static async #onDecrement() {
|
||||
if (!this.#actor) return
|
||||
const current = this.#actor.system.value ?? 0
|
||||
const current = getTinjiValue()
|
||||
if (current <= 0) return
|
||||
await this.#actor.update({ "system.value": current - 1 })
|
||||
await setTinjiValue(current - 1)
|
||||
}
|
||||
|
||||
static async #onReset() {
|
||||
if (!this.#actor) return
|
||||
await this.#actor.update({ "system.value": 0 })
|
||||
await setTinjiValue(0)
|
||||
}
|
||||
|
||||
/** Spend 1 Tin Ji die and announce it in chat */
|
||||
static async #onSpend() {
|
||||
if (!this.#actor) return
|
||||
const current = this.#actor.system.value ?? 0
|
||||
const current = getTinjiValue()
|
||||
if (current <= 0) {
|
||||
ui.notifications.warn(game.i18n.localize("CDE.TinjiEmpty"))
|
||||
return
|
||||
}
|
||||
await this.#actor.update({ "system.value": current - 1 })
|
||||
await setTinjiValue(current - 1)
|
||||
ChatMessage.create({
|
||||
user: game.user.id,
|
||||
content: `<div class="cde-tinji-spend-msg">
|
||||
|
||||
236
src/ui/roll-actions.js
Normal file
236
src/ui/roll-actions.js
Normal file
@@ -0,0 +1,236 @@
|
||||
/**
|
||||
* Post-roll interactive action buttons injected into dice result chat messages.
|
||||
* Allows players to pull dice from the Loksyu (as Successes or dés-fastes)
|
||||
* and allows the GM to spend Tin Ji to intervene.
|
||||
*
|
||||
* After a draw, the originating roll result message is updated in-place
|
||||
* with the new counts, without creating noise.
|
||||
*/
|
||||
|
||||
import { getLoksyuData, setLoksyuData, getTinjiValue, setTinjiValue } from "./apps/singletons.js"
|
||||
|
||||
const SYSTEM_ID = "fvtt-chroniques-de-l-etrange"
|
||||
const RESULT_TEMPLATE = "systems/fvtt-chroniques-de-l-etrange/templates/form/cde-dice-result.html"
|
||||
|
||||
const WU_XING_CYCLE = {
|
||||
wood: ["wood", "fire", "water", "earth", "metal"],
|
||||
fire: ["fire", "earth", "wood", "metal", "water"],
|
||||
earth: ["earth", "metal", "fire", "water", "wood"],
|
||||
metal: ["metal", "water", "earth", "wood", "fire"],
|
||||
water: ["water", "wood", "metal", "fire", "earth"],
|
||||
}
|
||||
|
||||
const ASPECT_LABELS = {
|
||||
metal: "CDE.Metal",
|
||||
water: "CDE.Water",
|
||||
earth: "CDE.Earth",
|
||||
fire: "CDE.Fire",
|
||||
wood: "CDE.Wood",
|
||||
}
|
||||
|
||||
const ASPECT_ICONS = {
|
||||
metal: "systems/fvtt-chroniques-de-l-etrange/images/cde_metal.webp",
|
||||
water: "systems/fvtt-chroniques-de-l-etrange/images/cde_eau.webp",
|
||||
earth: "systems/fvtt-chroniques-de-l-etrange/images/cde_terre.webp",
|
||||
fire: "systems/fvtt-chroniques-de-l-etrange/images/cde_feu.webp",
|
||||
wood: "systems/fvtt-chroniques-de-l-etrange/images/cde_bois.webp",
|
||||
}
|
||||
|
||||
/**
|
||||
* Inject or refresh post-roll action buttons in the given chat message HTML element.
|
||||
* Called from renderChatMessageHTML hook.
|
||||
* @param {ChatMessage} message
|
||||
* @param {HTMLElement} html - the chat message HTML element (li.chat-message)
|
||||
*/
|
||||
export function injectRollActions(message, html) {
|
||||
const rollCard = html.querySelector(".cde-roll-result")
|
||||
if (!rollCard) return
|
||||
const aspect = rollCard.dataset.aspect
|
||||
if (!aspect || !WU_XING_CYCLE[aspect]) return
|
||||
refreshRollActions(rollCard, aspect, message)
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-render the action buttons section based on current Loksyu / TinJi state.
|
||||
*/
|
||||
function refreshRollActions(rollCard, aspect, message) {
|
||||
rollCard.querySelector(".cde-roll-actions")?.remove()
|
||||
|
||||
const cycle = WU_XING_CYCLE[aspect]
|
||||
const fasteAspect = cycle[1]
|
||||
|
||||
const loksyu = getLoksyuData()
|
||||
const tinji = getTinjiValue()
|
||||
|
||||
const successAvail = (loksyu[aspect]?.yin ?? 0) + (loksyu[aspect]?.yang ?? 0)
|
||||
const fasteAvail = (loksyu[fasteAspect]?.yin ?? 0) + (loksyu[fasteAspect]?.yang ?? 0)
|
||||
const isGM = game.user.isGM
|
||||
|
||||
const hasSomething = successAvail > 0 || fasteAvail > 0 || (isGM && tinji > 0)
|
||||
if (!hasSomething) return
|
||||
|
||||
const aspLabel = game.i18n.localize(ASPECT_LABELS[aspect])
|
||||
const fasteLabel = game.i18n.localize(ASPECT_LABELS[fasteAspect])
|
||||
|
||||
let btns = ""
|
||||
|
||||
if (successAvail > 0) {
|
||||
btns += `<button class="cde-roll-action-btn cde-roll-action--success" data-action="loksyu-success">
|
||||
<img src="${ASPECT_ICONS[aspect]}" class="cde-roll-action-icon" alt="${aspLabel}"/>
|
||||
<span class="cde-roll-action-label">+1 ${game.i18n.localize("CDE.Successes")}</span>
|
||||
<span class="cde-roll-action-count">${successAvail}</span>
|
||||
</button>`
|
||||
}
|
||||
|
||||
if (fasteAvail > 0) {
|
||||
btns += `<button class="cde-roll-action-btn cde-roll-action--faste" data-action="loksyu-faste">
|
||||
<img src="${ASPECT_ICONS[fasteAspect]}" class="cde-roll-action-icon" alt="${fasteLabel}"/>
|
||||
<span class="cde-roll-action-label">+1 ${game.i18n.localize("CDE.AuspiciousDie")}</span>
|
||||
<span class="cde-roll-action-count">${fasteAvail}</span>
|
||||
</button>`
|
||||
}
|
||||
|
||||
if (isGM && tinji > 0) {
|
||||
btns += `<button class="cde-roll-action-btn cde-roll-action--tinji" data-action="tinji">
|
||||
<span class="cde-roll-action-tinji-char">天</span>
|
||||
<span class="cde-roll-action-label">${game.i18n.localize("CDE.TinJi2")}</span>
|
||||
<span class="cde-roll-action-count">${tinji}</span>
|
||||
</button>`
|
||||
}
|
||||
|
||||
const wrapper = document.createElement("div")
|
||||
wrapper.className = "cde-roll-actions"
|
||||
wrapper.innerHTML = `
|
||||
<div class="cde-roll-actions-title">
|
||||
<i class="fas fa-yin-yang"></i>
|
||||
${game.i18n.localize("CDE.PostRollActions")}
|
||||
</div>
|
||||
<div class="cde-roll-actions-btns">${btns}</div>
|
||||
`
|
||||
rollCard.appendChild(wrapper)
|
||||
|
||||
wrapper.addEventListener("click", async ev => {
|
||||
const btn = ev.target.closest("[data-action]")
|
||||
if (!btn || btn.disabled) return
|
||||
const action = btn.dataset.action
|
||||
if (action === "loksyu-success") {
|
||||
await _drawFromLoksyu(message, aspect, "success", aspLabel)
|
||||
} else if (action === "loksyu-faste") {
|
||||
await _drawFromLoksyu(message, fasteAspect, "faste", fasteLabel)
|
||||
} else if (action === "tinji") {
|
||||
await _spendTinjiPostRoll()
|
||||
}
|
||||
// Buttons will be re-injected automatically via renderChatMessageHTML
|
||||
// after message.update(). For tinji (no message update), refresh manually.
|
||||
if (action === "tinji") refreshRollActions(rollCard, aspect, message)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Pull one die from a given Loksyu aspect slot, update Loksyu settings,
|
||||
* and update the originating roll-result message in-place.
|
||||
*
|
||||
* @param {ChatMessage} message - the roll result chat message to update
|
||||
* @param {string} aspect - which Loksyu aspect slot to draw from
|
||||
* @param {"success"|"faste"} type
|
||||
* @param {string} aspectLabel - localised aspect name for the notification
|
||||
*/
|
||||
async function _drawFromLoksyu(message, aspect, type, aspectLabel) {
|
||||
const data = getLoksyuData()
|
||||
const entry = data[aspect] ?? { yin: 0, yang: 0 }
|
||||
const total = entry.yin + entry.yang
|
||||
if (total <= 0) {
|
||||
ui.notifications.warn(game.i18n.localize("CDE.LoksyuEmpty"))
|
||||
return
|
||||
}
|
||||
|
||||
// Remove 1 die (prefer yang first)
|
||||
if (entry.yang > 0) entry.yang--
|
||||
else entry.yin--
|
||||
data[aspect] = entry
|
||||
await setLoksyuData(data)
|
||||
|
||||
// Update the roll-result message in-place if it has stored flags
|
||||
const flags = message?.flags?.[SYSTEM_ID]
|
||||
if (flags?.rollResult && message.isOwner) {
|
||||
const updated = foundry.utils.deepClone(flags.rollResult)
|
||||
if (type === "success") {
|
||||
updated.successesdice = (updated.successesdice ?? 0) + 1
|
||||
updated.loksyuBonusSuc = (updated.loksyuBonusSuc ?? 0) + 1
|
||||
// Recalculate weapon damage if applicable
|
||||
if (updated.damageBase) updated.totalDamage = updated.successesdice * updated.damageBase
|
||||
} else {
|
||||
updated.auspiciousdice = (updated.auspiciousdice ?? 0) + 1
|
||||
updated.loksyuBonusFaste = (updated.loksyuBonusFaste ?? 0) + 1
|
||||
}
|
||||
const newHtml = await foundry.applications.handlebars.renderTemplate(RESULT_TEMPLATE, updated)
|
||||
await message.update({
|
||||
content: newHtml,
|
||||
[`flags.${SYSTEM_ID}.rollResult`]: updated,
|
||||
})
|
||||
// renderChatMessageHTML hook fires automatically → buttons re-injected
|
||||
}
|
||||
|
||||
const remain = entry.yin + entry.yang
|
||||
const typeLabel = type === "success"
|
||||
? game.i18n.localize("CDE.Successes")
|
||||
: game.i18n.localize("CDE.AuspiciousDie")
|
||||
|
||||
ChatMessage.create({
|
||||
user: game.user.id,
|
||||
content: `<div class="cde-loksyu-draw-msg">
|
||||
<div class="cde-loksyu-draw-header">
|
||||
<img src="${ASPECT_ICONS[aspect]}" class="cde-loksyu-draw-aspect-icon" alt="${aspectLabel}"/>
|
||||
<span class="cde-loksyu-draw-user">${game.user.name}</span>
|
||||
<span class="cde-loksyu-draw-action">${game.i18n.localize("CDE.LoksyuDrawsA")}</span>
|
||||
<span class="cde-loksyu-draw-type">${typeLabel}</span>
|
||||
<span class="cde-loksyu-draw-from">${game.i18n.localize("CDE.LoksyuFromAspect")} <em>${aspectLabel}</em></span>
|
||||
</div>
|
||||
<div class="cde-loksyu-draw-footer">
|
||||
<i class="fas fa-yin-yang"></i>
|
||||
<span>${game.i18n.localize("CDE.Loksyu")} ${aspectLabel} : </span>
|
||||
<strong class="cde-loksyu-remain">${remain} ${game.i18n.localize("CDE.LoksyuRemaining")}</strong>
|
||||
</div>
|
||||
</div>`,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Spend 1 Tin Ji point (GM only) and post a notification.
|
||||
*/
|
||||
async function _spendTinjiPostRoll() {
|
||||
if (!game.user.isGM) return
|
||||
const current = getTinjiValue()
|
||||
if (current <= 0) {
|
||||
ui.notifications.warn(game.i18n.localize("CDE.TinjiEmpty"))
|
||||
return
|
||||
}
|
||||
await setTinjiValue(current - 1)
|
||||
ChatMessage.create({
|
||||
user: game.user.id,
|
||||
content: `<div class="cde-tinji-spend-msg">
|
||||
<span class="cde-tinji-icon">天</span>
|
||||
<span class="cde-tinji-text">
|
||||
<strong>${game.user.name}</strong> ${game.i18n.localize("CDE.TinjiSpent").replace("{name}", game.user.name)}
|
||||
</span>
|
||||
<span class="cde-tinji-remain">(${current - 1} ${game.i18n.localize("CDE.TinjiRemaining")})</span>
|
||||
</div>`,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh all visible roll-result buttons when Loksyu or TinJi settings change.
|
||||
* Wired up via Hooks.on("updateSetting", ...) in system.js.
|
||||
*/
|
||||
export function refreshAllRollActions() {
|
||||
document.querySelectorAll(".chat-message .cde-roll-result[data-aspect]").forEach(card => {
|
||||
const aspect = card.dataset.aspect
|
||||
if (!aspect || !WU_XING_CYCLE[aspect]) return
|
||||
// Find the ChatMessage document from the ancestor element's data-message-id
|
||||
const msgEl = card.closest("[data-message-id]")
|
||||
const msgId = msgEl?.dataset?.messageId
|
||||
const message = msgId ? game.messages.get(msgId) : null
|
||||
refreshRollActions(card, aspect, message)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -250,6 +250,9 @@ async function sendResultMessage(actor, resultData, roll, rollMode) {
|
||||
content: html,
|
||||
rolls: [roll],
|
||||
rollMode,
|
||||
flags: {
|
||||
"fvtt-chroniques-de-l-etrange": { rollResult: { ...resultData } },
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -297,43 +300,43 @@ export async function rollForActor(actor, rollKey) {
|
||||
title = game.i18n.localize(`CDE.${skillLibel.charAt(0).toUpperCase() + skillLibel.slice(1)}`)
|
||||
break
|
||||
case "skill":
|
||||
numberofdice = sys.skills[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.skills[skillLibel]?.label ?? "CDE.Roll")
|
||||
numberofdice = sys.skills?.[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.skills?.[skillLibel]?.label ?? "CDE.Roll")
|
||||
break
|
||||
case "special":
|
||||
numberofdice = sys.skills[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.skills[skillLibel]?.label ?? "CDE.Roll")
|
||||
numberofdice = sys.skills?.[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.skills?.[skillLibel]?.label ?? "CDE.Roll")
|
||||
title += ` [${game.i18n.localize("CDE.Speciality")}]`
|
||||
isSpecial = true
|
||||
if (!sys.skills[skillLibel]?.specialities) {
|
||||
if (!sys.skills?.[skillLibel]?.specialities) {
|
||||
ui.notifications.warn(game.i18n.localize("CDE.Error2"))
|
||||
return
|
||||
}
|
||||
break
|
||||
case "resource":
|
||||
numberofdice = sys.resources[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.resources[skillLibel]?.label ?? "CDE.Roll")
|
||||
numberofdice = sys.resources?.[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.resources?.[skillLibel]?.label ?? "CDE.Roll")
|
||||
break
|
||||
case "field":
|
||||
numberofdice = sys.resources[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.resources[skillLibel]?.label ?? "CDE.Roll")
|
||||
numberofdice = sys.resources?.[skillLibel]?.value ?? 0
|
||||
title = game.i18n.localize(sys.resources?.[skillLibel]?.label ?? "CDE.Roll")
|
||||
title += ` [${game.i18n.localize("CDE.Field")}]`
|
||||
isSpecial = true
|
||||
if (!sys.resources[skillLibel]?.specialities) {
|
||||
if (!sys.resources?.[skillLibel]?.specialities) {
|
||||
ui.notifications.warn(game.i18n.localize("CDE.Error4"))
|
||||
return
|
||||
}
|
||||
break
|
||||
case "magic":
|
||||
numberofdice = sys.magics[skillLibel]?.value ?? 0
|
||||
numberofdice = sys.magics?.[skillLibel]?.value ?? 0
|
||||
isMagic = true
|
||||
title = game.i18n.localize(MAGIC_I18N_KEYS[skillLibel] ?? "CDE.Magics")
|
||||
break
|
||||
case "magicspecial":
|
||||
numberofdice = sys.magics[skillLibel]?.value ?? 0
|
||||
numberofdice = sys.magics?.[skillLibel]?.value ?? 0
|
||||
isMagicSpecial = true
|
||||
isMagic = true
|
||||
if (!sys.magics[skillLibel]?.speciality?.[specialLibel]?.check) {
|
||||
if (!sys.magics?.[skillLibel]?.speciality?.[specialLibel]?.check) {
|
||||
ui.notifications.warn(game.i18n.localize("CDE.Error6"))
|
||||
return
|
||||
}
|
||||
@@ -344,8 +347,8 @@ export async function rollForActor(actor, rollKey) {
|
||||
const kfItem = actor.items.get(skillLibel)
|
||||
if (!kfItem) { ui.notifications.warn(game.i18n.localize("CDE.Error0")); return }
|
||||
const kfSkill = kfItem.system.skill ?? "kungfu"
|
||||
numberofdice = sys.skills[kfSkill]?.value ?? 0
|
||||
title = `${kfItem.name} [${game.i18n.localize(sys.skills[kfSkill]?.label ?? "CDE.KungFu")}]`
|
||||
numberofdice = sys.skills?.[kfSkill]?.value ?? 0
|
||||
title = `${kfItem.name} [${game.i18n.localize(sys.skills?.[kfSkill]?.label ?? "CDE.KungFu")}]`
|
||||
kfDefaultAspect = ASPECT_NAMES.indexOf(kfItem.system.aspect ?? "metal")
|
||||
if (kfDefaultAspect < 0) kfDefaultAspect = 0
|
||||
break
|
||||
@@ -357,7 +360,7 @@ export async function rollForActor(actor, rollKey) {
|
||||
|
||||
const wpType = wpItem.system.weaponType ?? "melee"
|
||||
const wpSkill = WEAPON_TYPE_SKILL[wpType] ?? "kungfu"
|
||||
numberofdice = sys.skills[wpSkill]?.value ?? 0
|
||||
numberofdice = sys.skills?.[wpSkill]?.value ?? 0
|
||||
|
||||
const wpAspectRaw = wpItem.system.damageAspect ?? "metal"
|
||||
const wpAspectIdx = WEAPON_ASPECT_INDEX[wpAspectRaw] ?? 0
|
||||
@@ -372,7 +375,7 @@ export async function rollForActor(actor, rollKey) {
|
||||
|
||||
// Show weapon-specific prompt
|
||||
const wParams = await showWeaponPrompt({
|
||||
title: `${wpItem.name} [${game.i18n.localize(sys.skills[wpSkill]?.label ?? "CDE.WeaponRoll")}]`,
|
||||
title: `${wpItem.name} [${game.i18n.localize(sys.skills?.[wpSkill]?.label ?? "CDE.WeaponRoll")}]`,
|
||||
numberofdice,
|
||||
weaponName: wpItem.name,
|
||||
weaponTypeLabel: WEAPON_TYPE_LABELS[wpType] ?? "CDE.Weapon",
|
||||
@@ -392,7 +395,7 @@ export async function rollForActor(actor, rollKey) {
|
||||
|
||||
// Resolve final pool from weapon prompt values
|
||||
const wpChosenSkill = wParams.weaponskill ?? wpSkill
|
||||
const wpSkillDice = sys.skills[wpChosenSkill]?.value ?? 0
|
||||
const wpSkillDice = sys.skills?.[wpChosenSkill]?.value ?? 0
|
||||
const wpAspFinal = Number(wParams.aspect ?? wpAspectIdx)
|
||||
const wpAspectDice = sys.aspect[ASPECT_NAMES[wpAspFinal]]?.value ?? 0
|
||||
const wpRangeMalus = RANGE_MALUS[wParams.effectiverange ?? "contact"] ?? 0
|
||||
@@ -537,7 +540,7 @@ export async function rollForActor(actor, rollKey) {
|
||||
rollDifficulty = Math.max(1, Number(params.rolldifficulty ?? 1))
|
||||
throwMode = Number(params.typeofthrow ?? 0)
|
||||
// magic: magic skill + aspect + bonuses + 1 (speciality base) + HEI spent
|
||||
const aspectDice = sys.aspect[ASPECT_NAMES[aspectIndex]]?.value ?? 0
|
||||
const aspectDice = sys.aspect?.[ASPECT_NAMES[aspectIndex]]?.value ?? 0
|
||||
const bonusSpec = Number(params.bonusmalusspeciality ?? 0)
|
||||
const heiDice = Number(params.heispend ?? 0)
|
||||
numberofdice = numberofdice + aspectDice + bonusMalus + 1 + bonusSpec + heiDice
|
||||
@@ -549,7 +552,7 @@ export async function rollForActor(actor, rollKey) {
|
||||
throwMode = Number(params.typeofthrow ?? 0)
|
||||
|
||||
const aspectDice = (typeLibel !== "aspect")
|
||||
? (sys.aspect[ASPECT_NAMES[aspectIndex]]?.value ?? 0)
|
||||
? (sys.aspect?.[ASPECT_NAMES[aspectIndex]]?.value ?? 0)
|
||||
: 0
|
||||
|
||||
numberofdice = numberofdice + aspectDice + bonusMalus - woundMalus
|
||||
|
||||
@@ -22,7 +22,7 @@ export class CDEBaseActorSheet extends HandlebarsApplicationMixin(foundry.applic
|
||||
}
|
||||
|
||||
async _prepareContext() {
|
||||
const descriptionHTML = await TextEditor.enrichHTML(this.document.system.description ?? "", { async: true })
|
||||
const descriptionHTML = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description ?? "", { async: true })
|
||||
const cssClass = this.options.classes?.join(" ") ?? ""
|
||||
return {
|
||||
actor: this.document,
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
export { CDECharacterSheet } from "./character.js"
|
||||
export { CDENpcSheet } from "./npc.js"
|
||||
export { CDETinjiSheet } from "./tinji.js"
|
||||
export { CDELoksyuSheet } from "./loksyu.js"
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
import { CDEBaseActorSheet } from "./base.js"
|
||||
import { CDELoksyuApp } from "../../apps/loksyu-app.js"
|
||||
|
||||
export class CDELoksyuSheet extends CDEBaseActorSheet {
|
||||
static DEFAULT_OPTIONS = {
|
||||
classes: ["loksyu"],
|
||||
}
|
||||
|
||||
static PARTS = {
|
||||
main: { template: "systems/fvtt-chroniques-de-l-etrange/templates/actor/cde-loksyu-sheet.html" },
|
||||
}
|
||||
|
||||
tabGroups = { primary: "loksyu" }
|
||||
|
||||
/** Redirect any direct actor-sheet open to the standalone app instead */
|
||||
async _onFirstRender(context, options) {
|
||||
// Close this actor sheet immediately and open the standalone app
|
||||
await this.close({ animate: false })
|
||||
CDELoksyuApp.open()
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
import { CDEBaseActorSheet } from "./base.js"
|
||||
import { CDETinjiApp } from "../../apps/tinji-app.js"
|
||||
|
||||
export class CDETinjiSheet extends CDEBaseActorSheet {
|
||||
static DEFAULT_OPTIONS = {
|
||||
classes: ["tinji"],
|
||||
}
|
||||
|
||||
static PARTS = {
|
||||
main: { template: "systems/fvtt-chroniques-de-l-etrange/templates/actor/cde-tinji-sheet.html" },
|
||||
}
|
||||
|
||||
tabGroups = { primary: "tinji" }
|
||||
|
||||
/** Redirect any direct actor-sheet open to the standalone app instead */
|
||||
async _onFirstRender(context, options) {
|
||||
await this.close({ animate: false })
|
||||
CDETinjiApp.open()
|
||||
}
|
||||
}
|
||||
@@ -19,8 +19,8 @@ export class CDEBaseItemSheet extends HandlebarsApplicationMixin(foundry.applica
|
||||
|
||||
async _prepareContext() {
|
||||
const cssClass = this.options.classes?.join(" ") ?? ""
|
||||
const enrichedDescription = await TextEditor.enrichHTML(this.document.system.description ?? "", { async: true })
|
||||
const enrichedNotes = await TextEditor.enrichHTML(this.document.system.notes ?? "", { async: true })
|
||||
const enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description ?? "", { async: true })
|
||||
const enrichedNotes = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.notes ?? "", { async: true })
|
||||
return {
|
||||
item: this.document,
|
||||
system: this.document.system,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { TEMPLATE_PARTIALS } from "../config/constants.js"
|
||||
|
||||
export async function preloadPartials() {
|
||||
return loadTemplates(TEMPLATE_PARTIALS)
|
||||
return foundry.applications.handlebars.loadTemplates(TEMPLATE_PARTIALS)
|
||||
}
|
||||
|
||||
10
system.json
10
system.json
@@ -168,16 +168,6 @@
|
||||
"htmlFields": [
|
||||
"description"
|
||||
]
|
||||
},
|
||||
"tinji": {
|
||||
"htmlFields": [
|
||||
"description"
|
||||
]
|
||||
},
|
||||
"loksyu": {
|
||||
"htmlFields": [
|
||||
"description"
|
||||
]
|
||||
}
|
||||
},
|
||||
"Item": {
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
<section class="flexcol cde-sheet cde-actor {{cssClass}}">
|
||||
<header class="cde-header cde-actor-header">
|
||||
<img class="profile-img" src="{{actor.img}}" data-action="editImage" data-edit="img" title="{{actor.name}}" />
|
||||
<div class="header-fields">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'CDE.LoksyuName' }}" />
|
||||
</h1>
|
||||
<div class="cde-tag">
|
||||
<span class="cde-pill spell">{{ localize "CDE.UpperCaseLoksyu" }}</span>
|
||||
<span>Chroniques de l'Étrange</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="sheet-tabs tabs cde-neon-tabs" data-group="primary">
|
||||
<a class="item" data-action="tab" data-group="primary" data-tab="loksyu">{{ localize "CDE.Loksyu" }}</a>
|
||||
<a class="item" data-action="tab" data-group="primary" data-tab="description">{{ localize "CDE.Description" }}</a>
|
||||
</nav>
|
||||
|
||||
<section class="sheet-body cde-tab-body">
|
||||
<div class="tab" data-group="primary" data-tab="loksyu">
|
||||
<div class="cde-loksyu-grid">
|
||||
|
||||
<div class="cde-element-card cde-element--wood">
|
||||
<div class="cde-element-header">
|
||||
<img class="cde-element-img" src="systems/fvtt-chroniques-de-l-etrange/images/cde_bois.webp" alt="Bois" />
|
||||
<div class="cde-element-titles">
|
||||
<span class="cde-element-name">{{ localize "CDE.Wood" }}</span>
|
||||
<span class="cde-element-qualities">{{ localize "CDE.WoodQualities" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cde-element-values">
|
||||
<div class="cde-element-polarity cde-element-polarity--yang">
|
||||
<span class="cde-polarity-label">○ {{ localize "CDE.Yang" }}</span>
|
||||
<input type="number" min="0" name="system.wood.yang.value" value="{{systemData.wood.yang.value}}" title="{{ localize 'CDE.WoodYang' }}" />
|
||||
</div>
|
||||
<div class="cde-element-polarity cde-element-polarity--yin">
|
||||
<span class="cde-polarity-label">● {{ localize "CDE.Yin" }}</span>
|
||||
<input type="number" min="0" name="system.wood.yin.value" value="{{systemData.wood.yin.value}}" title="{{ localize 'CDE.WoodYin' }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cde-element-card cde-element--fire">
|
||||
<div class="cde-element-header">
|
||||
<img class="cde-element-img" src="systems/fvtt-chroniques-de-l-etrange/images/cde_feu.webp" alt="Feu" />
|
||||
<div class="cde-element-titles">
|
||||
<span class="cde-element-name">{{ localize "CDE.Fire" }}</span>
|
||||
<span class="cde-element-qualities">{{ localize "CDE.FireQualities" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cde-element-values">
|
||||
<div class="cde-element-polarity cde-element-polarity--yang">
|
||||
<span class="cde-polarity-label">○ {{ localize "CDE.Yang" }}</span>
|
||||
<input type="number" min="0" name="system.fire.yang.value" value="{{systemData.fire.yang.value}}" title="{{ localize 'CDE.FireYang' }}" />
|
||||
</div>
|
||||
<div class="cde-element-polarity cde-element-polarity--yin">
|
||||
<span class="cde-polarity-label">● {{ localize "CDE.Yin" }}</span>
|
||||
<input type="number" min="0" name="system.fire.yin.value" value="{{systemData.fire.yin.value}}" title="{{ localize 'CDE.FireYin' }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cde-element-card cde-element--earth">
|
||||
<div class="cde-element-header">
|
||||
<img class="cde-element-img" src="systems/fvtt-chroniques-de-l-etrange/images/cde_terre.webp" alt="Terre" />
|
||||
<div class="cde-element-titles">
|
||||
<span class="cde-element-name">{{ localize "CDE.Earth" }}</span>
|
||||
<span class="cde-element-qualities">{{ localize "CDE.EarthQualities" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cde-element-values">
|
||||
<div class="cde-element-polarity cde-element-polarity--yang">
|
||||
<span class="cde-polarity-label">○ {{ localize "CDE.Yang" }}</span>
|
||||
<input type="number" min="0" name="system.earth.yang.value" value="{{systemData.earth.yang.value}}" title="{{ localize 'CDE.EarthYang' }}" />
|
||||
</div>
|
||||
<div class="cde-element-polarity cde-element-polarity--yin">
|
||||
<span class="cde-polarity-label">● {{ localize "CDE.Yin" }}</span>
|
||||
<input type="number" min="0" name="system.earth.yin.value" value="{{systemData.earth.yin.value}}" title="{{ localize 'CDE.EarthYin' }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cde-element-card cde-element--metal">
|
||||
<div class="cde-element-header">
|
||||
<img class="cde-element-img" src="systems/fvtt-chroniques-de-l-etrange/images/cde_metal.webp" alt="Métal" />
|
||||
<div class="cde-element-titles">
|
||||
<span class="cde-element-name">{{ localize "CDE.Metal" }}</span>
|
||||
<span class="cde-element-qualities">{{ localize "CDE.MetalQualities" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cde-element-values">
|
||||
<div class="cde-element-polarity cde-element-polarity--yang">
|
||||
<span class="cde-polarity-label">○ {{ localize "CDE.Yang" }}</span>
|
||||
<input type="number" min="0" name="system.metal.yang.value" value="{{systemData.metal.yang.value}}" title="{{ localize 'CDE.MetalYang' }}" />
|
||||
</div>
|
||||
<div class="cde-element-polarity cde-element-polarity--yin">
|
||||
<span class="cde-polarity-label">● {{ localize "CDE.Yin" }}</span>
|
||||
<input type="number" min="0" name="system.metal.yin.value" value="{{systemData.metal.yin.value}}" title="{{ localize 'CDE.MetalYin' }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cde-element-card cde-element--water">
|
||||
<div class="cde-element-header">
|
||||
<img class="cde-element-img" src="systems/fvtt-chroniques-de-l-etrange/images/cde_eau.webp" alt="Eau" />
|
||||
<div class="cde-element-titles">
|
||||
<span class="cde-element-name">{{ localize "CDE.Water" }}</span>
|
||||
<span class="cde-element-qualities">{{ localize "CDE.WaterQualities" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cde-element-values">
|
||||
<div class="cde-element-polarity cde-element-polarity--yang">
|
||||
<span class="cde-polarity-label">○ {{ localize "CDE.Yang" }}</span>
|
||||
<input type="number" min="0" name="system.water.yang.value" value="{{systemData.water.yang.value}}" title="{{ localize 'CDE.WaterYang' }}" />
|
||||
</div>
|
||||
<div class="cde-element-polarity cde-element-polarity--yin">
|
||||
<span class="cde-polarity-label">● {{ localize "CDE.Yin" }}</span>
|
||||
<input type="number" min="0" name="system.water.yin.value" value="{{systemData.water.yin.value}}" title="{{ localize 'CDE.WaterYin' }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cde-loksyu-visual-row">
|
||||
<img class="loksyu-visual" src="systems/fvtt-chroniques-de-l-etrange/images/loksyu_long.webp" title="Loksyu — Roue des Cinq Éléments" alt="Loksyu" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab" data-group="primary" data-tab="description">
|
||||
<div class="cde-card cde-notes-editor">
|
||||
{{formInput systemFields.description enriched=descriptionHTML value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
@@ -1,48 +0,0 @@
|
||||
<section class="flexcol cde-sheet cde-actor {{cssClass}}">
|
||||
<header class="cde-header cde-actor-header">
|
||||
<img class="profile-img" src="{{actor.img}}" data-action="editImage" data-edit="img" title="{{actor.name}}" />
|
||||
<div class="header-fields">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'CDE.TinJiName' }}" />
|
||||
</h1>
|
||||
<div class="cde-tag">
|
||||
<span class="cde-pill supernatural">{{ localize "CDE.UpperCaseTinJi" }}</span>
|
||||
<span>Chroniques de l'Étrange</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="sheet-tabs tabs cde-neon-tabs" data-group="primary">
|
||||
<a class="item" data-action="tab" data-group="primary" data-tab="tinji">{{ localize "CDE.TinJi2" }}</a>
|
||||
<a class="item" data-action="tab" data-group="primary" data-tab="description">{{ localize "CDE.Description" }}</a>
|
||||
</nav>
|
||||
|
||||
<section class="sheet-body cde-tab-body">
|
||||
<div class="tab" data-group="primary" data-tab="tinji">
|
||||
<div class="cde-tinji-layout">
|
||||
<div class="cde-tinji-main">
|
||||
<div class="cde-tinji-chinese">天機</div>
|
||||
<div class="cde-tinji-subtitle">{{ localize "CDE.UpperCaseTinJi" }}</div>
|
||||
<div class="cde-tinji-value-wrapper">
|
||||
<input
|
||||
class="cde-tinji-input"
|
||||
type="number"
|
||||
min="0"
|
||||
name="system.value"
|
||||
value="{{systemData.value}}"
|
||||
title="{{ localize 'CDE.TinJi2' }}"
|
||||
/>
|
||||
</div>
|
||||
<div class="cde-tinji-hint">{{ localize "CDE.AuspiciousDice" }}</div>
|
||||
</div>
|
||||
<img class="tinji-visual" src="systems/fvtt-chroniques-de-l-etrange/images/tinji.webp" title="Tin Ji — 天機" alt="Tin Ji" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab" data-group="primary" data-tab="description">
|
||||
<div class="cde-card cde-notes-editor">
|
||||
{{formInput systemFields.description enriched=descriptionHTML value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
@@ -1,29 +1,37 @@
|
||||
{{!-- ===================== CAPACITÉS SURNATURELLES ===================== --}}
|
||||
|
||||
<div class="cde-super-add-row">
|
||||
<a class="cde-super-add-btn" data-action="create" data-type="supernatural" title="{{ localize 'CDE.SupernaturalCreate' }}">
|
||||
<i class="fas fa-plus"></i> {{ localize "CDE.SupernaturalCreate" }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{#if supernaturals.length}}
|
||||
<ol class="item-list cde-supernatural-list">
|
||||
{{#each supernaturals as |item|}}
|
||||
<li class="item cde-supernatural-item" data-item-id="{{item._id}}">
|
||||
<div class="cde-supernatural-header flexrow">
|
||||
<img src="{{item.img}}" title="{{item.name}}" width="28" height="28" />
|
||||
<div class="cde-supernatural-info">
|
||||
<span class="cde-supernatural-name">{{item.name}}</span>
|
||||
<div class="cde-super-card" data-item-id="{{item._id}}">
|
||||
|
||||
<div class="cde-super-header">
|
||||
<img class="cde-super-img" src="{{item.img}}" alt="{{item.name}}" />
|
||||
<div class="cde-super-info">
|
||||
<span class="cde-super-name">{{item.name}}</span>
|
||||
{{#if item.system.activation}}
|
||||
<span class="cde-super-meta">
|
||||
<span class="cde-act-badge cde-act--{{item.system.activation}}" title="{{ getActivationLabel item.system.activation }}">{{ getActivationLabel item.system.activation }}</span>
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="item-controls">
|
||||
<a class="item-control" title="{{ localize 'CDE.SupernaturalEdit' }}" data-action="edit"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control" title="{{ localize 'CDE.SupernaturalDelete' }}" data-action="delete"><i class="fas fa-trash"></i></a>
|
||||
<div class="cde-super-controls">
|
||||
<a data-action="edit" data-item-id="{{item._id}}" title="{{ localize 'CDE.SupernaturalEdit' }}"><i class="fas fa-edit"></i></a>
|
||||
<a data-action="delete" data-item-id="{{item._id}}" title="{{ localize 'CDE.SupernaturalDelete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if item.system.description}}
|
||||
<div class="cde-supernatural-desc">{{{item.system.description}}}</div>
|
||||
<div class="cde-super-desc">{{{item.system.description}}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
|
||||
</div>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{else}}
|
||||
<p class="cde-empty-list">{{ localize "CDE.NoSupernaturals" }}</p>
|
||||
<p class="cde-super-empty">{{ localize "CDE.NoSupernaturals" }}</p>
|
||||
{{/if}}
|
||||
<p>
|
||||
<a class="item-control" title="{{ localize 'CDE.SupernaturalCreate' }}" data-action="create" data-type="supernatural"><i class="fas fa-plus"></i> {{ localize "CDE.SupernaturalCreate" }}</a>
|
||||
</p>
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
{{!-- Loksyu standalone app --}}
|
||||
<div class="cde-loksyu-app-body">
|
||||
|
||||
{{#unless hasActor}}
|
||||
<p class="cde-empty-list"><i class="fas fa-exclamation-triangle"></i> {{ localize "CDE.LoksyuNotFound" }}</p>
|
||||
{{/unless}}
|
||||
|
||||
{{#if hasActor}}
|
||||
<div class="cde-loksyu-elements">
|
||||
{{#each elements as |el|}}
|
||||
<div class="cde-lok-card cde-lok-card--{{el.key}}">
|
||||
@@ -23,14 +18,14 @@
|
||||
<div class="cde-lok-polarity cde-lok-polarity--yang">
|
||||
<span class="cde-lok-pol-label">○ {{ localize "CDE.Yang" }}</span>
|
||||
<input class="cde-lok-input" type="number" min="0"
|
||||
data-field="system.{{el.key}}.yang.value"
|
||||
data-field="{{el.key}}.yang"
|
||||
value="{{el.yang}}"
|
||||
{{#unless ../canEdit}}disabled{{/unless}} />
|
||||
</div>
|
||||
<div class="cde-lok-polarity cde-lok-polarity--yin">
|
||||
<span class="cde-lok-pol-label">● {{ localize "CDE.Yin" }}</span>
|
||||
<input class="cde-lok-input" type="number" min="0"
|
||||
data-field="system.{{el.key}}.yin.value"
|
||||
data-field="{{el.key}}.yin"
|
||||
value="{{el.yin}}"
|
||||
{{#unless ../canEdit}}disabled{{/unless}} />
|
||||
</div>
|
||||
@@ -50,6 +45,5 @@
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
{{!-- Tin Ji standalone app --}}
|
||||
<div class="cde-tinji-app-body">
|
||||
|
||||
{{#unless hasActor}}
|
||||
<p class="cde-empty-list"><i class="fas fa-exclamation-triangle"></i> {{ localize "CDE.TinjiNotFound" }}</p>
|
||||
{{/unless}}
|
||||
|
||||
{{#if hasActor}}
|
||||
<div class="cde-tinji-display">
|
||||
<div class="cde-tinji-chinese-large">天機</div>
|
||||
<div class="cde-tinji-label">{{ localize "CDE.UpperCaseTinJi" }}</div>
|
||||
@@ -36,6 +31,5 @@
|
||||
</div>
|
||||
|
||||
<img class="cde-tinji-visual" src="systems/fvtt-chroniques-de-l-etrange/images/tinji.webp" alt="Tin Ji" />
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
{{!-- Hero: successes count (+ spell power for magic rolls) --}}
|
||||
<div class="cde-rr-hero">
|
||||
<span class="cde-rr-hero-count">{{successesdice}}</span>
|
||||
{{#if loksyuBonusSuc}}
|
||||
<span class="cde-rr-loksyu-bonus cde-rr-loksyu-bonus--success" title="Loksyu">+{{loksyuBonusSuc}} ☯</span>
|
||||
{{/if}}
|
||||
<div class="cde-rr-hero-right">
|
||||
<span class="cde-rr-hero-label">{{ localize "CDE.UpperCaseSuccesses" }}</span>
|
||||
<span class="cde-rr-hero-dice">{{totalDice}} <span class="cde-rr-hero-dice-label">d10</span></span>
|
||||
@@ -37,6 +40,9 @@
|
||||
|
||||
<div class="cde-rr-row cde-rr-row--auspicious">
|
||||
<span class="cde-rr-count">{{auspiciousdice}}</span>
|
||||
{{#if loksyuBonusFaste}}
|
||||
<span class="cde-rr-loksyu-bonus cde-rr-loksyu-bonus--faste" title="Loksyu">+{{loksyuBonusFaste}} ☯</span>
|
||||
{{/if}}
|
||||
<div class="cde-rr-icon"></div>
|
||||
<span class="cde-rr-label">{{ localize "CDE.UpperCaseAuspiciousDice" }}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user