- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
const orbs = Object.keys(defaultOrbs).reduce((acc, el) => {
const newAcc = {}
Object.keys(defaultOrbs[el]).forEach((elk) => {
if (newAcc[elk] == null) newAcc[elk] = { ...(acc[elk] || {})}
newAcc[elk][el] = defaultOrbs[el][elk]
})
return newAcc
}, {})
invoke(orbs, mult) {
if(this.props.onChange) {
this.props.onChange(Object.keys(orbs).reduce((acc, el) => ({
...acc,
[el]: Object.keys(orbs[el]).reduce((ack, elk) => ({
...ack,
[elk]: orbs[el][elk] * mult
}), {})
}), {}))
}
}
rotoeb 16.08.2018 20:17 # 0
wylde 16.08.2018 20:41 # −1
real_escape_string 16.08.2018 21:51 # +1
real_escape_string 16.08.2018 22:22 # 0
guest8 16.08.2018 22:42 # −999
guest8 16.08.2018 22:44 # −999
gost 16.08.2018 20:36 # −2
wylde 16.08.2018 20:40 # −2
gost 16.08.2018 21:59 # −1
guest8 17.08.2018 00:41 # −999
rotoeb 17.08.2018 00:58 # 0