fix: potion harm

This commit is contained in:
cha0s 2020-04-19 23:56:15 -05:00
parent 0a86dda8d3
commit f4517f4b50
2 changed files with 4 additions and 4 deletions

View File

@ -118,5 +118,6 @@ export function harmTypes() {
'sharp', 'sharp',
'fire', 'fire',
'ice', 'ice',
'potion',
]; ];
} }

View File

@ -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,
}, },