Beautified calculator.js
This commit is contained in:
parent
cb1189c623
commit
64544dc084
1 changed files with 3 additions and 3 deletions
6
dist/js/calculator.js
vendored
6
dist/js/calculator.js
vendored
|
@ -44,9 +44,9 @@ function toJSON(item, models) {
|
||||||
|
|
||||||
for (let i = 0; i < models.length; i++) {
|
for (let i = 0; i < models.length; i++) {
|
||||||
const model = models[i];
|
const model = models[i];
|
||||||
const damage = getMappedDamage(i+1, itemDamages[item]);
|
const damage = getMappedDamage(i + 1, itemDamages[item]);
|
||||||
|
|
||||||
json['overrides'][i+1] = {
|
json['overrides'][i + 1] = {
|
||||||
'predicate': {
|
'predicate': {
|
||||||
'damaged': 0,
|
'damaged': 0,
|
||||||
'damage': damage
|
'damage': damage
|
||||||
|
@ -56,7 +56,7 @@ function toJSON(item, models) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Insert damaged model
|
//Insert damaged model
|
||||||
json['overrides'][models.length+1] = {
|
json['overrides'][models.length + 1] = {
|
||||||
'predicate': {
|
'predicate': {
|
||||||
'damaged': 1,
|
'damaged': 1,
|
||||||
'damage': 0
|
'damage': 0
|
||||||
|
|
Reference in a new issue