module/actor-sheet.js
/**
     * Listen for roll buttons on items.
     * @param {MouseEvent} event    The originating left click event
     */
Listen for roll buttons on items.
@param {MouseEvent} event    The originating left click event
Listen for roll buttons on items . @param { MouseEvent } event The originating left click event
_onItemRoll(event)
    {
        let button = $(event.currentTarget);
        let r = new Roll(button.data('roll'), this.actor.getRollData());
        const li = button.parents(".item");
        const item = this.actor.getOwnedItem(li.data("itemId"));
        r.roll().toMessage({
            user: game.user._id,
            speaker: ChatMessage.getSpeaker({ actor: this.actor }),
            flavor: `<h2>${item.name}</h2><h3>${button.text()}</h3>`
        });
    }
_onItemRoll ( event ) { let button = $ ( event . currentTarget ) ; let r = new Roll ( button . data ( 'roll' ) , this . actor . getRollData ( ) ) ; const li = button . parents ( ".item" ) ; const item = this . actor . getOwnedItem ( li . data ( "itemId" ) ) ; r . roll ( ) . toMessage ( { user : game . user . _id , speaker : ChatMessage . getSpeaker ( { actor : this . actor } ) , flavor : ` ${ item . name } ${ button . text ( ) } ` } ) ; }
Listen for roll buttons on items.
Listen for roll buttons on items .