Auto formatting
This commit is contained in:
parent
3f62582af5
commit
3ee1b593c8
@ -696,13 +696,13 @@ export class RdDActor extends Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
buildSubConteneurObjetList( conteneurId, deleteList ) {
|
buildSubConteneurObjetList(conteneurId, deleteList) {
|
||||||
let conteneur = this.items.find( conteneur => conteneurId == conteneur._id); // recup conteneur
|
let conteneur = this.items.find(conteneur => conteneurId == conteneur._id); // recup conteneur
|
||||||
if ( conteneur && conteneur.type =='conteneur' ) { // Si présent
|
if (conteneur && conteneur.type == 'conteneur') { // Si présent
|
||||||
for ( let subId of conteneur.data.data.contenu ) {
|
for (let subId of conteneur.data.data.contenu) {
|
||||||
let subObj = this.items.find( subobjet => subId == subobjet._id); // recup conteneur
|
let subObj = this.items.find(subobjet => subId == subobjet._id); // recup conteneur
|
||||||
if ( subObj && subObj.type == 'conteneur') {
|
if (subObj && subObj.type == 'conteneur') {
|
||||||
this.buildSubConteneurObjetList( subId, deleteList );
|
this.buildSubConteneurObjetList(subId, deleteList);
|
||||||
}
|
}
|
||||||
if ( subObj) // Robust...
|
if ( subObj) // Robust...
|
||||||
deleteList.push( {id: subId, conteneurId: conteneurId } );
|
deleteList.push( {id: subId, conteneurId: conteneurId } );
|
||||||
@ -768,7 +768,7 @@ export class RdDActor extends Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async moveItemsBetweenActors( itemId, sourceActorId ) {
|
async moveItemsBetweenActors(itemId, sourceActorId) {
|
||||||
let itemsList = []
|
let itemsList = []
|
||||||
let sourceActor = game.actors.get( sourceActorId );
|
let sourceActor = game.actors.get( sourceActorId );
|
||||||
itemsList.push( {id: itemId, conteneurId: undefined }); // Init list
|
itemsList.push( {id: itemId, conteneurId: undefined }); // Init list
|
||||||
@ -798,7 +798,7 @@ export class RdDActor extends Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
detectSurEncombrement( ) {
|
detectSurEncombrement() {
|
||||||
let maxEnc = 0;
|
let maxEnc = 0;
|
||||||
if ( this.data.type == 'vehicule')
|
if ( this.data.type == 'vehicule')
|
||||||
maxEnc = this.data.data.capacite_encombrement;
|
maxEnc = this.data.data.capacite_encombrement;
|
||||||
@ -2221,7 +2221,7 @@ export class RdDActor extends Actor {
|
|||||||
encaissement.hasPlayerOwner = this.hasPlayerOwner;
|
encaissement.hasPlayerOwner = this.hasPlayerOwner;
|
||||||
encaissement.resteEndurance = santeActuelle.endurance.value
|
encaissement.resteEndurance = santeActuelle.endurance.value
|
||||||
encaissement.sonne = perteEndurance.sonne;
|
encaissement.sonne = perteEndurance.sonne;
|
||||||
encaissement.jetEndurance = perteEndurance.jetEndurance,
|
encaissement.jetEndurance = perteEndurance.jetEndurance;
|
||||||
encaissement.endurance = santeOrig.endurance.value - perteEndurance.newValue;
|
encaissement.endurance = santeOrig.endurance.value - perteEndurance.newValue;
|
||||||
encaissement.vie = santeOrig.vie.value - perteVie.newValue;
|
encaissement.vie = santeOrig.vie.value - perteVie.newValue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user