mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Extract base into separate set
This commit is contained in:
@@ -2,20 +2,24 @@ import {translator as t} from '../helpers';
|
|||||||
import events from '../events';
|
import events from '../events';
|
||||||
|
|
||||||
import {armor as baseArmor} from './sets/base';
|
import {armor as baseArmor} from './sets/base';
|
||||||
|
|
||||||
import {armor as warriorArmor} from './sets/warrior';
|
import {armor as warriorArmor} from './sets/warrior';
|
||||||
import {armor as rogueArmor} from './sets/rogue';
|
import {armor as rogueArmor} from './sets/rogue';
|
||||||
import {armor as healerArmor} from './sets/healer';
|
import {armor as healerArmor} from './sets/healer';
|
||||||
import {armor as wizardArmor} from './sets/wizard';
|
import {armor as wizardArmor} from './sets/wizard';
|
||||||
|
|
||||||
import {armor as specialArmor} from './sets/special';
|
import {armor as specialArmor} from './sets/special';
|
||||||
import {armor as mysteryArmor} from './sets/mystery';
|
import {armor as mysteryArmor} from './sets/mystery';
|
||||||
import {armor as armoireArmor} from './sets/armoire';
|
import {armor as armoireArmor} from './sets/armoire';
|
||||||
|
|
||||||
let armor = {
|
let armor = {
|
||||||
base: baseArmor,
|
base: baseArmor,
|
||||||
|
|
||||||
warrior: warriorArmor,
|
warrior: warriorArmor,
|
||||||
rogue: rogueArmor,
|
rogue: rogueArmor,
|
||||||
wizard: wizardArmor,
|
wizard: wizardArmor,
|
||||||
healer: healerArmor,
|
healer: healerArmor,
|
||||||
|
|
||||||
special: specialArmor,
|
special: specialArmor,
|
||||||
mystery: mysteryArmor,
|
mystery: mysteryArmor,
|
||||||
armoire: armoireArmor,
|
armoire: armoireArmor,
|
||||||
|
|||||||
@@ -1,23 +1,21 @@
|
|||||||
import {translator as t} from '../helpers';
|
import {translator as t} from '../helpers';
|
||||||
import events from '../events';
|
import events from '../events';
|
||||||
|
|
||||||
|
import {base as baseHead} from './sets/base';
|
||||||
|
|
||||||
import {head as healerHead} from './sets/healer';
|
import {head as healerHead} from './sets/healer';
|
||||||
import {head as rogueHead} from './sets/rogue';
|
import {head as rogueHead} from './sets/rogue';
|
||||||
import {head as warriorHead} from './sets/warrior';
|
import {head as warriorHead} from './sets/warrior';
|
||||||
import {head as wizardHead} from './sets/wizard';
|
import {head as wizardHead} from './sets/wizard';
|
||||||
|
|
||||||
let head = {
|
let head = {
|
||||||
base: {
|
base: baseHead,
|
||||||
0: {
|
|
||||||
text: t('headBase0Text'),
|
|
||||||
notes: t('headBase0Notes'),
|
|
||||||
value: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
warrior: warriorHead,
|
warrior: warriorHead,
|
||||||
rogue: rogueHead,
|
rogue: rogueHead,
|
||||||
wizard: wizardHead,
|
wizard: wizardHead,
|
||||||
healer: healerHead,
|
healer: healerHead,
|
||||||
|
|
||||||
special: {
|
special: {
|
||||||
0: {
|
0: {
|
||||||
text: t('headSpecial0Text'),
|
text: t('headSpecial0Text'),
|
||||||
|
|||||||
@@ -1,9 +1,28 @@
|
|||||||
import {translator as t} from '../../helpers';
|
import {setGearSetDefaults} from '../../helpers';
|
||||||
|
|
||||||
export var armor = {
|
let armor = {
|
||||||
0: {
|
0: { value: 0 },
|
||||||
text: t('armorBase0Text'),
|
|
||||||
notes: t('armorBase0Notes'),
|
|
||||||
value: 0
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let head = {
|
||||||
|
0: { value: 0 },
|
||||||
|
};
|
||||||
|
|
||||||
|
let shield = {
|
||||||
|
0: { value: 0 },
|
||||||
|
};
|
||||||
|
|
||||||
|
let weapon = {
|
||||||
|
0: { value: 0 },
|
||||||
|
};
|
||||||
|
|
||||||
|
let baseSet = {
|
||||||
|
armor: armor,
|
||||||
|
head: head,
|
||||||
|
shield: shield,
|
||||||
|
weapon: weapon,
|
||||||
|
};
|
||||||
|
|
||||||
|
setGearSetDefaults(baseSet, {setName: 'base'});
|
||||||
|
|
||||||
|
export default baseSet;
|
||||||
|
|||||||
@@ -1,23 +1,21 @@
|
|||||||
import {translator as t} from '../helpers';
|
import {translator as t} from '../helpers';
|
||||||
import events from '../events';
|
import events from '../events';
|
||||||
|
|
||||||
|
import {base as baseShield} from './sets/base';
|
||||||
|
|
||||||
import {shield as healerShield} from './sets/healer';
|
import {shield as healerShield} from './sets/healer';
|
||||||
import {shield as rogueShield} from './sets/rogue';
|
import {shield as rogueShield} from './sets/rogue';
|
||||||
import {shield as warriorShield} from './sets/warrior';
|
import {shield as warriorShield} from './sets/warrior';
|
||||||
import {shield as wizardShield} from './sets/wizard';
|
import {shield as wizardShield} from './sets/wizard';
|
||||||
|
|
||||||
let shield = {
|
let shield = {
|
||||||
base: {
|
base: baseShield,
|
||||||
0: {
|
|
||||||
text: t('shieldBase0Text'),
|
|
||||||
notes: t('shieldBase0Notes'),
|
|
||||||
value: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
warrior: warriorShield,
|
warrior: warriorShield,
|
||||||
rogue: rogueShield,
|
rogue: rogueShield,
|
||||||
wizard: wizardShield,
|
wizard: wizardShield,
|
||||||
healer: healerShield,
|
healer: healerShield,
|
||||||
|
|
||||||
special: {
|
special: {
|
||||||
0: {
|
0: {
|
||||||
text: t('shieldSpecial0Text'),
|
text: t('shieldSpecial0Text'),
|
||||||
|
|||||||
@@ -1,23 +1,21 @@
|
|||||||
import {translator as t} from '../helpers';
|
import {translator as t} from '../helpers';
|
||||||
import events from '../events';
|
import events from '../events';
|
||||||
|
|
||||||
|
import {base as baseWeapon} from './sets/base';
|
||||||
|
|
||||||
import {weapon as healerWeapon} from './sets/healer';
|
import {weapon as healerWeapon} from './sets/healer';
|
||||||
import {weapon as rogueWeapon} from './sets/rogue';
|
import {weapon as rogueWeapon} from './sets/rogue';
|
||||||
import {weapon as warriorWeapon} from './sets/warrior';
|
import {weapon as warriorWeapon} from './sets/warrior';
|
||||||
import {weapon as wizardWeapon} from './sets/wizard';
|
import {weapon as wizardWeapon} from './sets/wizard';
|
||||||
|
|
||||||
let weapon = {
|
let weapon = {
|
||||||
base: {
|
base: baseWeapon,
|
||||||
0: {
|
|
||||||
text: t('weaponBase0Text'),
|
|
||||||
notes: t('weaponBase0Notes'),
|
|
||||||
value: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
warrior: warriorWeapon,
|
warrior: warriorWeapon,
|
||||||
rogue: rogueWeapon,
|
rogue: rogueWeapon,
|
||||||
wizard: wizardWeapon,
|
wizard: wizardWeapon,
|
||||||
healer: healerWeapon,
|
healer: healerWeapon,
|
||||||
|
|
||||||
special: {
|
special: {
|
||||||
0: {
|
0: {
|
||||||
text: t('weaponSpecial0Text'),
|
text: t('weaponSpecial0Text'),
|
||||||
|
|||||||
Reference in New Issue
Block a user