mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-21 19:42:17 +00:00
Ignore 3rdparty code in eslint, fix small things
This commit is contained in:
parent
a30f08ca78
commit
934735da98
2
.eslintignore
Normal file
2
.eslintignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
javascripts/lib/*.js
|
||||||
|
javascripts/DragDropTouch.js
|
@ -1,3 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
Vue.component("select-theme", {
|
Vue.component("select-theme", {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -84,7 +84,7 @@ dev.fixSave = function() {
|
|||||||
|
|
||||||
var fixed = save.replace(/NaN/gi, "10")
|
var fixed = save.replace(/NaN/gi, "10")
|
||||||
var stillToDo = JSON.parse(fixed)
|
var stillToDo = JSON.parse(fixed)
|
||||||
for (var i=0; i<stillToDo.autobuyers.length; i++) stillToDo.autobuyers[i].isOn = false
|
for (let i=0; i<stillToDo.autobuyers.length; i++) stillToDo.autobuyers[i].isOn = false
|
||||||
console.log(stillToDo)
|
console.log(stillToDo)
|
||||||
|
|
||||||
var save_data = stillToDo
|
var save_data = stillToDo
|
||||||
@ -431,11 +431,11 @@ dev.updateTestSave = function() {
|
|||||||
|
|
||||||
if (player.options.testVersion === 24) {
|
if (player.options.testVersion === 24) {
|
||||||
// following logic from autobuyers (before the addition of wall clock time stats)
|
// following logic from autobuyers (before the addition of wall clock time stats)
|
||||||
var speedup = getGameSpeedupFactor([GameSpeedEffect.EC12, GameSpeedEffect.WORMHOLE]);
|
let speedup = getGameSpeedupFactor([GameSpeedEffect.EC12, GameSpeedEffect.WORMHOLE]);
|
||||||
player.thisInfinityRealTime = Time.thisInfinity.totalSeconds / speedup;
|
player.thisInfinityRealTime = Time.thisInfinity.totalSeconds / speedup;
|
||||||
player.thisEternityRealTime = Time.thisEternity.totalSeconds / speedup;
|
player.thisEternityRealTime = Time.thisEternity.totalSeconds / speedup;
|
||||||
player.thisRealityRealTime = Time.thisReality.totalSeconds / speedup;
|
player.thisRealityRealTime = Time.thisReality.totalSeconds / speedup;
|
||||||
for (var i=0; i<10; i++) {
|
for (let i=0; i<10; i++) {
|
||||||
player.lastTenRuns[i][2] = undefined;
|
player.lastTenRuns[i][2] = undefined;
|
||||||
player.lastTenEternities[i][2] = undefined;
|
player.lastTenEternities[i][2] = undefined;
|
||||||
player.lastTenRealities[i][3] = undefined;
|
player.lastTenRealities[i][3] = undefined;
|
||||||
|
@ -54,7 +54,7 @@ function onLoad() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (player.version === undefined) { // value will need to be adjusted when update goes live
|
if (player.version === undefined) { // value will need to be adjusted when update goes live
|
||||||
for (var i = 0; i < player.autobuyers.length; i++) {
|
for (let i = 0; i < player.autobuyers.length; i++) {
|
||||||
if (player.autobuyers[i]%1 !== 0) player.infinityPoints = player.infinityPoints + player.autobuyers[i].cost - 1
|
if (player.autobuyers[i]%1 !== 0) player.infinityPoints = player.infinityPoints + player.autobuyers[i].cost - 1
|
||||||
}
|
}
|
||||||
player.autobuyers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
player.autobuyers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
if (!String.prototype.includes) {
|
if (!String.prototype.includes) {
|
||||||
String.prototype.includes = function(search, start) {
|
String.prototype.includes = function(search, start) {
|
||||||
'use strict';
|
|
||||||
if (typeof start !== 'number') {
|
if (typeof start !== 'number') {
|
||||||
start = 0;
|
start = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user