Finish the Inventory item improvements

This commit is contained in:
Oliver-Akins 2024-02-06 19:29:05 -07:00
parent 83039c6144
commit 2f8ec1b79c
9 changed files with 107 additions and 13 deletions

View file

@ -84,6 +84,7 @@ export class ActorHandler extends Actor {
*/
async preItemEmbed(item) {
let type = item.type[0].toUpperCase() + item.type.slice(1);
console.log(`preEmbed type =`, type)
if (this.fn?.[`pre${type}Embed`]) {
return await this.fn?.[`pre${type}Embed`].bind(this)(item);
};