fix: potion harm
This commit is contained in:
parent
0a86dda8d3
commit
f4517f4b50
|
@ -118,5 +118,6 @@ export function harmTypes() {
|
||||||
'sharp',
|
'sharp',
|
||||||
'fire',
|
'fire',
|
||||||
'ice',
|
'ice',
|
||||||
|
'potion',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,8 @@ import {AFFINITY_NONE} from '../../common/combat/constants';
|
||||||
|
|
||||||
// Healing potion.
|
// Healing potion.
|
||||||
export function potionJSON() {
|
export function potionJSON() {
|
||||||
const causeHealing = buildInvoke(['wielder', 'takeHarmFrom'], [
|
const causeHealing = buildInvoke(['item', 'harm'], [
|
||||||
buildTraversal(['item']),
|
buildTraversal(['wielder']),
|
||||||
]);
|
]);
|
||||||
const decrement = buildInvoke(
|
const decrement = buildInvoke(
|
||||||
['item', 'decrementQuantity'],
|
['item', 'decrementQuantity'],
|
||||||
|
@ -19,8 +19,7 @@ export function potionJSON() {
|
||||||
params: {
|
params: {
|
||||||
harmSpecs: [
|
harmSpecs: [
|
||||||
{
|
{
|
||||||
affinity: AFFINITY_NONE,
|
type: 'potion',
|
||||||
lock: 0,
|
|
||||||
power: -50,
|
power: -50,
|
||||||
variance: 0.1,
|
variance: 0.1,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user