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