forked from public/foundryvtt-reve-de-dragon
Amélioration de recherches
This commit is contained in:
@ -1617,7 +1617,7 @@ export class RdDActor extends RdDBaseActor {
|
||||
}
|
||||
|
||||
async actionNourritureboisson(item, onActionItem) {
|
||||
switch (item.isComestible()) {
|
||||
switch (item.getUtilisationCuisine()) {
|
||||
case 'brut': {
|
||||
let d = new Dialog({
|
||||
title: "Nourriture brute",
|
||||
@ -1678,7 +1678,7 @@ export class RdDActor extends RdDBaseActor {
|
||||
return;
|
||||
}
|
||||
const item = this.getItem(itemId)
|
||||
if (!item.isComestible()) {
|
||||
if (!item.getUtilisationCuisine()) {
|
||||
return;
|
||||
}
|
||||
if (choix.doses > item.system.quantite) {
|
||||
@ -2502,7 +2502,7 @@ export class RdDActor extends RdDBaseActor {
|
||||
}
|
||||
|
||||
async preparerNourriture(item) {
|
||||
if (item.isComestible() == 'brut') {
|
||||
if (item.getUtilisationCuisine() == 'brut') {
|
||||
const nourriture = {
|
||||
name: 'Plat de ' + item.name,
|
||||
type: 'recettecuisine',
|
||||
|
Reference in New Issue
Block a user