Start vehicle automation
This commit is contained in:
@ -156,10 +156,10 @@ export class PegasusVehicleSheet extends ActorSheet {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
this.actor.incDecQuantity( li.data("item-id"), +1 );
|
||||
} )
|
||||
html.find('.current-nrg-minus').click(event => {
|
||||
html.find('.vehicle-current-nrg-minus').click(event => {
|
||||
this.actor.incDecNRG( -1 );
|
||||
} )
|
||||
html.find('.current-nrg-plus').click(event => {
|
||||
html.find('.vehicle-current-nrg-plus').click(event => {
|
||||
this.actor.incDecNRG( 1 );
|
||||
} )
|
||||
|
||||
@ -286,7 +286,7 @@ export class PegasusVehicleSheet extends ActorSheet {
|
||||
if (item == undefined) {
|
||||
item = this.actor.items.get( dragData.uuid )
|
||||
}
|
||||
let ret = await this.actor.preprocessItem( event, item, true )
|
||||
let ret = await this.actor.preprocessItemVehicle( event, item, true )
|
||||
if ( ret ) {
|
||||
super._onDropItem(event, dragData)
|
||||
}
|
||||
|
Reference in New Issue
Block a user