Actor/Crew rolls

This commit is contained in:
2022-09-21 16:58:02 +02:00
parent 8345ee0ebb
commit 7a9ed39d02
3 changed files with 13 additions and 15 deletions

View File

@ -1981,7 +1981,12 @@ export class PegasusActor extends Actor {
crewList.push( {id: actorId})
this.update( { 'system.crew': crewList } )
}
/* -------------------------------------------- */
delCrew(actorId) {
let crewList = duplicate( this.system.crew.filter( actorDef => actorDef.id != actorId ) || [] )
this.update( { 'system.crew': crewList } )
}
/* -------------------------------------------- */
rollPoolFromVehicle(statKey, useShield = false, subKey = "none") {
// Find relevant actor