mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Move special gear into own subdirectory
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
EVENTS,
|
EVENTS,
|
||||||
} from '../../constants';
|
} from '../../../constants';
|
||||||
import { ownsItem } from '../gear-helper';
|
import { ownsItem } from '../../gear-helper';
|
||||||
import backerGear from './special-backer';
|
import backerGear from './special-backer';
|
||||||
import contributorGear from './special-contributor';
|
import contributorGear from './special-contributor';
|
||||||
import t from '../../translation';
|
import t from '../../../translation';
|
||||||
|
|
||||||
let armor = {
|
let armor = {
|
||||||
0: backerGear.armorSpecial0,
|
0: backerGear.armorSpecial0,
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ownsItem } from '../gear-helper';
|
import { ownsItem } from '../../gear-helper';
|
||||||
import t from '../../translation';
|
import t from '../../../translation';
|
||||||
|
|
||||||
let isBackerOfLevel = (tierRequirement, ownedItem) => {
|
let isBackerOfLevel = (tierRequirement, ownedItem) => {
|
||||||
return (user) => {
|
return (user) => {
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ownsItem } from '../gear-helper';
|
import { ownsItem } from '../../gear-helper';
|
||||||
import t from '../../translation';
|
import t from '../../../translation';
|
||||||
|
|
||||||
let isContributorOfLevel = (tierRequirement, ownedItem) => {
|
let isContributorOfLevel = (tierRequirement, ownedItem) => {
|
||||||
return (user) => {
|
return (user) => {
|
||||||
@@ -5,8 +5,8 @@ import { each } from 'lodash';
|
|||||||
import camelCase from 'lodash.camelcase';
|
import camelCase from 'lodash.camelcase';
|
||||||
|
|
||||||
import { tree as allGear } from '../../common/script/content/gear';
|
import { tree as allGear } from '../../common/script/content/gear';
|
||||||
import backerGear from '../../common/script/content/gear/sets/special-backer';
|
import backerGear from '../../common/script/content/gear/sets/special/special-backer';
|
||||||
import contributorGear from '../../common/script/content/gear/sets/special-contributor';
|
import contributorGear from '../../common/script/content/gear/sets/special/special-contributor';
|
||||||
|
|
||||||
describe('Gear', () => {
|
describe('Gear', () => {
|
||||||
each(allGear, (piece, gearType) => {
|
each(allGear, (piece, gearType) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user