Files
habitica/website/common/script/content/gear/sets/mystery.js
2022-03-30 09:44:36 -05:00

276 lines
4.0 KiB
JavaScript

import defaults from 'lodash/defaults';
import forEach from 'lodash/forEach';
import t from '../../translation';
const armor = {
201402: { },
201403: { },
201405: { },
201406: { },
201407: { },
201408: { },
201409: { },
201410: { },
201412: { },
201501: { },
201503: { },
201504: { },
201506: { },
201508: { },
201509: { },
201511: { },
201512: { },
201603: { },
201604: { },
201605: { },
201606: { },
201607: { },
201609: { },
201610: { },
201612: { },
201703: { },
201704: { },
201707: { },
201710: { },
201711: { },
201712: { },
201802: { },
201806: { },
201807: { },
201808: { },
201809: { },
201810: { },
201903: { },
201904: { },
201906: { },
201907: { },
201908: { },
201909: { },
201910: { },
202006: { },
202007: { },
202101: { },
202102: { },
202103: { },
202104: { },
202106: { },
202110: { },
202112: { },
202204: { },
301404: { },
301703: { },
301704: { },
};
const back = {
201402: { },
201404: { },
201410: { },
201504: { },
201507: { },
201510: { },
201602: { },
201608: { },
201702: { },
201704: { },
201706: { },
201709: { },
201801: { },
201803: { },
201804: { },
201805: { },
201812: { },
201905: { },
201912: { },
202001: { },
202004: { },
202005: { },
202009: { },
202010: { },
202012: { },
202105: { },
202109: { },
202203: { },
};
const body = {
201705: { },
201706: { },
201711: { },
201901: { },
202002: { },
202003: { },
202008: { },
202107: { },
};
const eyewear = {
201503: { },
201506: { },
201507: { },
201701: { },
201902: { },
201907: { },
202108: { },
202201: { },
202202: { },
'202204A': { mystery: '202204' },
'202204B': { mystery: '202204' },
301404: { },
301405: { },
301703: { },
};
const head = {
201402: { },
201405: { },
201406: { },
201407: { },
201408: { },
201411: { },
201412: { },
201501: { },
201505: { },
201508: { },
201509: { },
201511: { },
201512: { },
201601: { },
201602: { },
201603: { },
201604: { },
201605: { },
201606: { },
201607: { },
201608: { },
201609: { },
201610: { },
201611: { },
201612: { },
201702: { },
201703: { },
201705: { },
201707: { },
201710: { },
201712: { },
201802: { },
201803: { },
201805: { },
201806: { },
201807: { },
201808: { },
201809: { },
201810: { },
201811: { },
201901: { },
201903: { },
201904: { },
201907: { },
201909: { },
201910: { },
201911: { },
201912: { },
202001: { },
202003: { },
202006: { },
202007: { },
202008: { },
202010: { },
202011: { },
202012: { },
202101: { },
202103: { },
202106: { },
202107: { },
202108: { },
202110: { },
202111: { },
202112: { },
202202: { },
301404: { },
301405: { },
301703: { },
301704: { },
};
const headAccessory = {
201403: { },
201404: { },
201409: { },
201502: { },
201510: { },
201801: { },
201804: { },
201812: { },
201905: { },
201906: { },
201908: { },
202004: { },
202005: { },
202009: { },
202102: { },
202105: { },
202109: { },
202203: { },
301405: { },
};
const shield = {
201601: { },
201701: { },
201708: { },
201709: { },
201802: { },
201902: { },
202011: { },
301405: { },
301704: { },
};
const weapon = {
201411: { },
201502: { },
201505: { },
201611: { },
201708: { },
201811: { },
201911: { },
202002: { },
202102: { },
202104: { twoHanded: true },
202111: { twoHanded: true },
202201: { },
301404: { },
};
forEach({
armor,
back,
body,
eyewear,
head,
headAccessory,
shield,
weapon,
}, (gearType, typeKey) => {
forEach(gearType, (gearItem, itemKey) => {
defaults(gearItem, {
text: (t(`${typeKey}Mystery${itemKey}Text`)),
notes: (t(`${typeKey}Mystery${itemKey}Notes`)),
mystery: itemKey,
value: 0,
});
});
});
export {
armor,
back,
body,
eyewear,
head,
headAccessory,
shield,
weapon,
};