Actions sur objets d'un véhicule
Permettre les mêmes actions pour les objets d'un véhicule que pour ceux d'un personnage ou créature
This commit is contained in:
parent
0cf412bf06
commit
1fdfa6a834
@ -112,6 +112,19 @@ export class RdDActorVehiculeSheet extends ActorSheet {
|
|||||||
const li = RdDSheetUtility.getEventElement(event);
|
const li = RdDSheetUtility.getEventElement(event);
|
||||||
RdDUtility.confirmerSuppression(this, li);
|
RdDUtility.confirmerSuppression(this, li);
|
||||||
});
|
});
|
||||||
|
html.find('.item-vendre').click(async event => {
|
||||||
|
const item = RdDSheetUtility.getItem(event, this.actor);
|
||||||
|
item?.proposerVente();
|
||||||
|
});
|
||||||
|
html.find('.item-montrer').click(async event => {
|
||||||
|
const item = RdDSheetUtility.getItem(event, this.actor);
|
||||||
|
item?.postItem();
|
||||||
|
});
|
||||||
|
|
||||||
|
html.find('.item-action').click(async event => {
|
||||||
|
const item = RdDSheetUtility.getItem(event, this.actor);
|
||||||
|
this.actor.actionItem(item);
|
||||||
|
});
|
||||||
|
|
||||||
html.find('.creer-un-objet').click(async event => {
|
html.find('.creer-un-objet').click(async event => {
|
||||||
RdDUtility.selectObjetType(this);
|
RdDUtility.selectObjetType(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user