diff --git a/common/script/src/content/gear/back.js b/common/script/src/content/gear/back.js index 45d2371099..d8286d16c2 100644 --- a/common/script/src/content/gear/back.js +++ b/common/script/src/content/gear/back.js @@ -1,16 +1,12 @@ import {translator as t} from '../helpers'; import events from '../events'; +import {back as baseBack} from './sets/base'; + import {back as mysteryBack} from './sets/mystery'; let back = { - base: { - 0: { - text: t('backBase0Text'), - notes: t('backBase0Notes'), - value: 0 - } - }, + base: baseBack, mystery: mysteryBack, special: { wondercon_red: { diff --git a/common/script/src/content/gear/body.js b/common/script/src/content/gear/body.js index 3b921b7192..09050f0db1 100644 --- a/common/script/src/content/gear/body.js +++ b/common/script/src/content/gear/body.js @@ -1,14 +1,10 @@ import {translator as t} from '../helpers'; import events from '../events'; +import {back as baseBody} from './sets/base'; + let body = { - base: { - 0: { - text: t('bodyBase0Text'), - notes: t('bodyBase0Notes'), - value: 0 - } - }, + base: baseBody, special: { wondercon_red: { text: t('bodySpecialWonderconRedText'), diff --git a/common/script/src/content/gear/eyewear.js b/common/script/src/content/gear/eyewear.js index 8098ab0620..2fac695d7d 100644 --- a/common/script/src/content/gear/eyewear.js +++ b/common/script/src/content/gear/eyewear.js @@ -1,17 +1,12 @@ import {translator as t} from '../helpers'; import events from '../events'; +import {eyewear as baseEyewear} from './sets/base'; + import {eyewear as mysteryEyewear} from './sets/mystery'; let eyewear = { - base: { - 0: { - text: t('eyewearBase0Text'), - notes: t('eyewearBase0Notes'), - value: 0, - last: true - } - }, + base: baseEyewear, special: { wondercon_red: { text: t('eyewearSpecialWonderconRedText'), diff --git a/common/script/src/content/gear/head-accessory.js b/common/script/src/content/gear/head-accessory.js index 7864e691fa..1a00b7c829 100644 --- a/common/script/src/content/gear/head-accessory.js +++ b/common/script/src/content/gear/head-accessory.js @@ -1,15 +1,12 @@ import {translator as t} from '../helpers'; import events from '../events'; +import {headAccessory as baseHeadAccessory} from './sets/base'; + +import {headAccessory as mysteryHeadAccessory} from './sets/mystery'; + let headAccessory = { - base: { - 0: { - text: t('headAccessoryBase0Text'), - notes: t('headAccessoryBase0Notes'), - value: 0, - last: true - } - }, + base: baseHeadAccessory, special: { springRogue: { event: events.spring, @@ -140,38 +137,7 @@ let headAccessory = { }) } }, - mystery: { - 201403: { - text: t('headAccessoryMystery201403Text'), - notes: t('headAccessoryMystery201403Notes'), - mystery: '201403', - value: 0 - }, - 201404: { - text: t('headAccessoryMystery201404Text'), - notes: t('headAccessoryMystery201404Notes'), - mystery: '201404', - value: 0 - }, - 201409: { - text: t('headAccessoryMystery201409Text'), - notes: t('headAccessoryMystery201409Notes'), - mystery: '201409', - value: 0 - }, - 201502: { - text: t('headAccessoryMystery201502Text'), - notes: t('headAccessoryMystery201502Notes'), - mystery: '201502', - value: 0 - }, - 301405: { - text: t('headAccessoryMystery301405Text'), - notes: t('headAccessoryMystery301405Notes'), - mystery: '301405', - value: 0 - } - } + mystery: mysteryHeadAccessory }; export default headAccessory; diff --git a/common/script/src/content/gear/sets/base.js b/common/script/src/content/gear/sets/base.js index 2b7f092a6a..b051b8a03b 100644 --- a/common/script/src/content/gear/sets/base.js +++ b/common/script/src/content/gear/sets/base.js @@ -4,10 +4,26 @@ let armor = { 0: { value: 0 }, }; +let back = { + 0: { value: 0 } +}; + +let body = { + 0: { value: 0 } +}; + +let eyewear = { + 0: { value: 0 } +}; + let head = { 0: { value: 0 }, }; +let headAccessory = { + 0: { value: 0 }, +}; + let shield = { 0: { value: 0 }, }; @@ -18,7 +34,11 @@ let weapon = { let baseSet = { armor: armor, + back: back, + body: body, + eyewear: eyewear, head: head, + headAccessory: headAccessory, shield: shield, weapon: weapon, };