mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Fix
- Rewrite exports of debuffPotion functions
- Force clear debuffPotions in setDebuffPotionItems to make the same behavior as in develop branch
- Change class of debuffPotion items to shop_{key}
- Resolve lint warnings
This commit is contained in:
@@ -46,10 +46,8 @@ import updateStore from './libs/updateStore';
|
||||
import inAppRewards from './libs/inAppRewards';
|
||||
|
||||
import setDebuffPotionItems from './libs/setDebuffPotionItems';
|
||||
api.setDebuffPotionItems = setDebuffPotionItems;
|
||||
|
||||
import getDebuffPotionItems from './libs/getDebuffPotionItems';
|
||||
api.getDebuffPotionItems = getDebuffPotionItems;
|
||||
|
||||
import uuid from './libs/uuid';
|
||||
|
||||
@@ -164,6 +162,9 @@ api.shops = shops;
|
||||
api.achievements = achievements;
|
||||
api.randomVal = randomVal;
|
||||
api.hasClass = hasClass;
|
||||
api.setDebuffPotionItems = setDebuffPotionItems;
|
||||
api.getDebuffPotionItems = getDebuffPotionItems;
|
||||
|
||||
|
||||
api.fns = {
|
||||
autoAllocate,
|
||||
|
||||
Reference in New Issue
Block a user