8 lines
134 B
JavaScript
8 lines
134 B
JavaScript
if (other.Inventory) {
|
|
other.Inventory.give({
|
|
qty: 1,
|
|
source: '/assets/tomato/tomato.json',
|
|
})
|
|
ecs.destroy(entity.id)
|
|
}
|