Vehicles enhancements
This commit is contained in:
@ -246,7 +246,7 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
this.actor.rollPool( 'agi', false, "ranged-atk");
|
||||
});
|
||||
html.find('.defense-roll').click((event) => {
|
||||
this.actor.rollPool( 'def', true);
|
||||
this.actor.rollPool( 'def', true, "defence");
|
||||
});
|
||||
html.find('.damage-melee').click((event) => {
|
||||
this.actor.rollPool( 'str', false, "melee-dmg");
|
||||
@ -365,7 +365,10 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
if (item == undefined) {
|
||||
item = this.actor.items.get( dragData.uuid )
|
||||
}
|
||||
let ret = await this.actor.preprocessItem( event, item, true )
|
||||
console.log("Dropped", item)
|
||||
|
||||
let itemFull = await PegasusUtility.searchItem( item )
|
||||
let ret = await this.actor.preprocessItem( event, itemFull, true )
|
||||
if ( ret ) {
|
||||
super._onDropItem(event, dragData)
|
||||
}
|
||||
|
Reference in New Issue
Block a user