Merge branch 'v1.4-fix' into 'v1.4'
Fix: ajout de souffle sur refoulement See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!259
This commit is contained in:
commit
1f77c6227b
@ -1273,7 +1273,7 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async ajouterSouffle(options = { chat: false }) {
|
async ajouterSouffle(options = { chat: false }) {
|
||||||
let souffle = await RdDRollTables.getSouffle();
|
let souffle = Misc.data(await RdDRollTables.getSouffle());
|
||||||
souffle._id = undefined; //TBC
|
souffle._id = undefined; //TBC
|
||||||
await this.createEmbeddedDocuments('Item', [souffle]);
|
await this.createEmbeddedDocuments('Item', [souffle]);
|
||||||
if (options.chat) {
|
if (options.chat) {
|
||||||
@ -1289,11 +1289,11 @@ export class RdDActor extends Actor {
|
|||||||
async ajouterQueue(options = { chat: false }) {
|
async ajouterQueue(options = { chat: false }) {
|
||||||
let queue;
|
let queue;
|
||||||
if (Misc.data(this).data.reve.reve.thanatosused) {
|
if (Misc.data(this).data.reve.reve.thanatosused) {
|
||||||
queue = await RdDRollTables.getOmbre();
|
queue = Misc.data(await RdDRollTables.getOmbre());
|
||||||
await this.update({ "data.reve.reve.thanatosused": false });
|
await this.update({ "data.reve.reve.thanatosused": false });
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
queue = await RdDRollTables.getQueue();
|
queue = Misc.data(await RdDRollTables.getQueue());
|
||||||
}
|
}
|
||||||
await this.createEmbeddedDocuments('Item', [queue]);
|
await this.createEmbeddedDocuments('Item', [queue]);
|
||||||
if (options.chat) {
|
if (options.chat) {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<ul class="alterne-list">
|
<ul class="alterne-list">
|
||||||
{{#each commands as |command key|}}
|
{{#each commands as |command key|}}
|
||||||
<li class="list-item">
|
<li class="list-item">
|
||||||
{{{command}}}
|
<div>{{{command}}}</div>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
Loading…
Reference in New Issue
Block a user