11 lines
252 B
JavaScript
11 lines
252 B
JavaScript
export default function*({item, wielder}) {
|
|
const amount = 50;
|
|
wielder.Health.health += amount;
|
|
wielder.Vulnerable.damage({
|
|
amount,
|
|
position: wielder.Position.toJSON(),
|
|
type: wielder.Vulnerable.Types.HEALING,
|
|
});
|
|
item.qty -= 1;
|
|
}
|