Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d06926e8f6 | ||
|
|
a900a2dc46 | ||
|
|
3dfee20484 |
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 1.6.1 - Little Bugfixes
|
||||||
|
- PC sheet : fixed the "Complete this rank" button who stayed hidden in experience tab.
|
||||||
|
- GmMonitor : fixed a bug with render when the list was emptied.
|
||||||
|
- Combat : fixed a null error when sometimes the combatant actor is null.
|
||||||
|
|
||||||
## 1.6.0 - QoL & SoftLock
|
## 1.6.0 - QoL & SoftLock
|
||||||
- PC/NPC/Armies sheet:
|
- PC/NPC/Armies sheet:
|
||||||
- Added SoftLock functionality.
|
- Added SoftLock functionality.
|
||||||
|
|||||||
@@ -142,14 +142,14 @@ export class CombatL5r5e extends Combat {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_sortCombatants(a, b) {
|
_sortCombatants(a, b) {
|
||||||
// if tie, sort by honor, less honorable first
|
// if tie : sort by honor, less honorable first
|
||||||
if (a.initiative === b.initiative) {
|
if (a.initiative === b.initiative) {
|
||||||
// skip if armies
|
// skip if no actor or if armies
|
||||||
if (a.actor.data.type === "army" || b.actor.data.type === "army") {
|
if (!a.actor || !b.actor || a.actor.data.type === "army" || b.actor.data.type === "army") {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if tie, Character > Adversary > Minion
|
// if tie again : Character > Adversary > Minion
|
||||||
if (a.actor.data.data.social.honor === b.actor.data.data.social.honor) {
|
if (a.actor.data.data.social.honor === b.actor.data.data.social.honor) {
|
||||||
return (
|
return (
|
||||||
CombatL5r5e._getWeightByActorType(a.actor.data) - CombatL5r5e._getWeightByActorType(b.actor.data)
|
CombatL5r5e._getWeightByActorType(a.actor.data) - CombatL5r5e._getWeightByActorType(b.actor.data)
|
||||||
|
|||||||
@@ -330,6 +330,7 @@ export class GmMonitor extends FormApplication {
|
|||||||
}
|
}
|
||||||
if (!foundry.utils.isObjectEmpty(updateData)) {
|
if (!foundry.utils.isObjectEmpty(updateData)) {
|
||||||
await actor.update(updateData);
|
await actor.update(updateData);
|
||||||
|
this.render(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
"description": "This is an authorised multilingual game system En|Fr|Es, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>",
|
"description": "This is an authorised multilingual game system En|Fr|Es, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>",
|
||||||
"url": "https://gitlab.com/teaml5r/l5r5e",
|
"url": "https://gitlab.com/teaml5r/l5r5e",
|
||||||
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
|
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
|
||||||
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.6.0/raw/l5r5e.zip?job=build",
|
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.6.1/raw/l5r5e.zip?job=build",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"minimumCoreVersion": "9",
|
"minimumCoreVersion": "9",
|
||||||
"compatibleCoreVersion": "9",
|
"compatibleCoreVersion": "9",
|
||||||
"manifestPlusVersion": "1.0.0",
|
"manifestPlusVersion": "1.0.0",
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
<th>{{localize 'l5r5e.advancements.total_xp_curriculum'}} : {{rankObject.spent.curriculum}}{{#if rankObject.goal}} / {{rankObject.goal}}{{/if}}</th>
|
<th>{{localize 'l5r5e.advancements.total_xp_curriculum'}} : {{rankObject.spent.curriculum}}{{#if rankObject.goal}} / {{rankObject.goal}}{{/if}}</th>
|
||||||
<th>{{localize 'l5r5e.advancements.total_xp_spent'}} : {{rankObject.spent.total}}</th>
|
<th>{{localize 'l5r5e.advancements.total_xp_spent'}} : {{rankObject.spent.total}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{#if data.editable_not_soft_locked}}
|
{{#if ../data.editable_not_soft_locked}}
|
||||||
{{#ifCond ../data.data.identity.school_rank '<' 6}}
|
{{#ifCond ../data.data.identity.school_rank '<' 6}}
|
||||||
{{#ifCond (ifCond ../data.data.identity.school_rank '==' rankObject.rank) '&&' (ifCond rankObject.spent.curriculum '>=' rankObject.goal)}}
|
{{#ifCond (ifCond ../data.data.identity.school_rank '==' rankObject.rank) '&&' (ifCond rankObject.spent.curriculum '>=' rankObject.goal)}}
|
||||||
<tr class="tfoot flexrow row tab" data-group="advancements" data-tab="advancement_rank_{{rankObject.rank}}">
|
<tr class="tfoot flexrow row tab" data-group="advancements" data-tab="advancement_rank_{{rankObject.rank}}">
|
||||||
|
|||||||
Reference in New Issue
Block a user