feat(magic): reorder schools, fix Wu Xing aspect & power formula
- `magicOrder` ArrayField + ▲/▼ buttons for manual reordering
- Magic rolls use school's aspect for Wu Xing, not speciality's element
- Spell power: `difficulty × (aspectValue + freePowerLevels)` (not `successes × diff`)
- Prompt replaces `aspectspeciality`/`bonusmalusspeciality`/`heispend` with `freepowerlevels`
fix: code review issues
- combat.js: guard undefined `ids` in rollInitiative
- rolling.js: catch Dice So Nice promise, normalize French→English kungfu aspects
- weapon/armor/ingredient: `{ min: 0 }` on quantity
- character.js/npc.js: catch rollForActor fire-and-forget promises
- roll-actions.js/tinji-app.js: await ChatMessage.create
- sanhei.js: null guard on properties
- spell.js/kungfu.js: fix aspect name comments (French→English)
This commit is contained in:
@@ -2253,6 +2253,23 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
&:hover i { color: @cde-text; }
|
||||
}
|
||||
|
||||
.cde-magic-order-btn {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
color: @cde-muted;
|
||||
border-radius: 3px;
|
||||
flex-shrink: 0;
|
||||
transition: color 0.12s, background 0.12s;
|
||||
|
||||
i { font-size: 9px; }
|
||||
|
||||
&:hover { color: @cde-text; background: fade(@cde-border-hi, 25%); }
|
||||
}
|
||||
|
||||
// Specialities list
|
||||
.cde-magic-specialities {
|
||||
border-top: 1px solid @cde-border;
|
||||
@@ -3582,6 +3599,13 @@ ol.item-list {
|
||||
text-shadow: 0 0 12px var(--rr-accent, transparent);
|
||||
}
|
||||
|
||||
.cde-rr-spell-power-formula {
|
||||
font-size: 10px;
|
||||
color: @cde-muted;
|
||||
margin: 2px 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cde-rr-spell-power-label {
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
|
||||
Reference in New Issue
Block a user