mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
Common reorg (#8025)
* Re-organize common folder * fix: Correct paths in tests * fix: move new content to proper folder * chore: Move audio folder to assets * Move sprites to sprites assets directory * Move css sprites to assets directory * Split out readmes for common code and sprites * Move images to assets directory * Move destinatin of shared browserified file * remove unused file * move compiled js to client-old * Fix karma tests * fix: Correct paths for sprites
This commit is contained in:
committed by
Matteo Pagliazzi
parent
d971e673af
commit
81b7eeeb71
141
website/common/script/content/gear/sets/wizard.js
Normal file
141
website/common/script/content/gear/sets/wizard.js
Normal file
@@ -0,0 +1,141 @@
|
||||
import t from '../../translation';
|
||||
|
||||
let armor = {
|
||||
1: {
|
||||
text: t('armorWizard1Text'),
|
||||
notes: t('armorWizard1Notes', { int: 2 }),
|
||||
int: 2,
|
||||
value: 30,
|
||||
},
|
||||
2: {
|
||||
text: t('armorWizard2Text'),
|
||||
notes: t('armorWizard2Notes', { int: 4 }),
|
||||
int: 4,
|
||||
value: 45,
|
||||
},
|
||||
3: {
|
||||
text: t('armorWizard3Text'),
|
||||
notes: t('armorWizard3Notes', { int: 6 }),
|
||||
int: 6,
|
||||
value: 65,
|
||||
},
|
||||
4: {
|
||||
text: t('armorWizard4Text'),
|
||||
notes: t('armorWizard4Notes', { int: 9 }),
|
||||
int: 9,
|
||||
value: 90,
|
||||
},
|
||||
5: {
|
||||
text: t('armorWizard5Text'),
|
||||
notes: t('armorWizard5Notes', { int: 12 }),
|
||||
int: 12,
|
||||
value: 120,
|
||||
last: true,
|
||||
},
|
||||
};
|
||||
|
||||
let head = {
|
||||
1: {
|
||||
text: t('headWizard1Text'),
|
||||
notes: t('headWizard1Notes', { per: 2 }),
|
||||
per: 2,
|
||||
value: 15,
|
||||
},
|
||||
2: {
|
||||
text: t('headWizard2Text'),
|
||||
notes: t('headWizard2Notes', { per: 3 }),
|
||||
per: 3,
|
||||
value: 25,
|
||||
},
|
||||
3: {
|
||||
text: t('headWizard3Text'),
|
||||
notes: t('headWizard3Notes', { per: 5 }),
|
||||
per: 5,
|
||||
value: 40,
|
||||
},
|
||||
4: {
|
||||
text: t('headWizard4Text'),
|
||||
notes: t('headWizard4Notes', { per: 7 }),
|
||||
per: 7,
|
||||
value: 60,
|
||||
},
|
||||
5: {
|
||||
text: t('headWizard5Text'),
|
||||
notes: t('headWizard5Notes', { per: 10 }),
|
||||
per: 10,
|
||||
value: 80,
|
||||
last: true,
|
||||
},
|
||||
};
|
||||
|
||||
let shield = {
|
||||
// Wizard's weapons are two handed
|
||||
// And thus do not have shields
|
||||
// But the content structure still expects an object
|
||||
};
|
||||
|
||||
let weapon = {
|
||||
|
||||
0: {
|
||||
twoHanded: true,
|
||||
text: t('weaponWizard0Text'),
|
||||
notes: t('weaponWizard0Notes'), value: 0 },
|
||||
1: {
|
||||
twoHanded: true,
|
||||
text: t('weaponWizard1Text'),
|
||||
notes: t('weaponWizard1Notes', { int: 3, per: 1 }),
|
||||
int: 3,
|
||||
per: 1,
|
||||
value: 30,
|
||||
},
|
||||
2: {
|
||||
twoHanded: true,
|
||||
text: t('weaponWizard2Text'),
|
||||
notes: t('weaponWizard2Notes', { int: 6, per: 2 }),
|
||||
int: 6,
|
||||
per: 2,
|
||||
value: 50,
|
||||
},
|
||||
3: {
|
||||
twoHanded: true,
|
||||
text: t('weaponWizard3Text'),
|
||||
notes: t('weaponWizard3Notes', { int: 9, per: 3 }),
|
||||
int: 9,
|
||||
per: 3,
|
||||
value: 80,
|
||||
},
|
||||
4: {
|
||||
twoHanded: true,
|
||||
text: t('weaponWizard4Text'),
|
||||
notes: t('weaponWizard4Notes', { int: 12, per: 5 }),
|
||||
int: 12,
|
||||
per: 5,
|
||||
value: 120,
|
||||
},
|
||||
5: {
|
||||
twoHanded: true,
|
||||
text: t('weaponWizard5Text'),
|
||||
notes: t('weaponWizard5Notes', { int: 15, per: 7 }),
|
||||
int: 15,
|
||||
per: 7,
|
||||
value: 160,
|
||||
},
|
||||
6: {
|
||||
twoHanded: true,
|
||||
text: t('weaponWizard6Text'),
|
||||
notes: t('weaponWizard6Notes', { int: 18, per: 10 }),
|
||||
int: 18,
|
||||
per: 10,
|
||||
value: 200,
|
||||
last: true,
|
||||
},
|
||||
};
|
||||
|
||||
let wizardSet = {
|
||||
armor,
|
||||
head,
|
||||
shield,
|
||||
weapon,
|
||||
};
|
||||
|
||||
module.exports = wizardSet;
|
||||
Reference in New Issue
Block a user