mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-24 21:21:59 +00:00
make it actually work
This commit is contained in:
parent
1c874553d3
commit
622bc8b8fe
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,2 +1,6 @@
|
||||
.vscode
|
||||
.idea
|
||||
.idea
|
||||
node_modules
|
||||
.eslintrc.js
|
||||
package-lock.json
|
||||
|
||||
|
@ -3,6 +3,7 @@ Vue.component('effarig-tab', {
|
||||
return {
|
||||
pour: false,
|
||||
time: new Date().getTime(),
|
||||
rmStore: 0
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -13,19 +14,20 @@ Vue.component('effarig-tab', {
|
||||
Effarig.pourRM(diff)
|
||||
}
|
||||
this.time = now
|
||||
this.rmStore = player.celestials.effarig.rmStore
|
||||
},
|
||||
},
|
||||
template:
|
||||
`<div class="l-effarig-celestial-tab">
|
||||
<div class="l-effarig-unlocks">
|
||||
</div
|
||||
</div>
|
||||
|
||||
<div class="c-rm-container"
|
||||
<button class="c-primary-button"
|
||||
<div class="c-rm-container">
|
||||
<button class="storebtn"
|
||||
@mousedown="pour = true"
|
||||
@mouseup="pour = false"
|
||||
>Pour RM</button>
|
||||
{{this.shorten(rmStore)}} RM poured
|
||||
{{shorten(rmStore)}} RM poured
|
||||
</div>
|
||||
|
||||
<div class="c-unlock-descriptions">
|
||||
|
@ -5,6 +5,6 @@ var Effarig = {
|
||||
this.timePoured += diff
|
||||
let rmPoured = Math.min(1e6 * Math.pow(this.timePoured, 2), player.reality.realityMachines)
|
||||
player.celestials.effarig.rmStore += rmPoured
|
||||
player.reality.realityMachines -= rmPoured
|
||||
player.reality.realityMachines = player.reality.realityMachines.minus(rmPoured)
|
||||
}
|
||||
}
|
@ -17,174 +17,7 @@ function updateState() {
|
||||
|
||||
function onLoad() {
|
||||
if (player.totalmoney === undefined || isNaN(player.totalmoney)) player.totalmoney = player.money;
|
||||
if (player.options === undefined) {
|
||||
player.options = {
|
||||
scientific: false,
|
||||
animationOn: true
|
||||
}
|
||||
}
|
||||
if (player.options.invert === true) Theme.set("Inverted"); player.options.invert = undefined;
|
||||
if (player.options.newsHidden === undefined) player.options.newsHidden = false;
|
||||
if (player.options.noSacrificeConfirmation === undefined) player.options.noSacrificeConfirmation = false;
|
||||
if (player.options.retryChallenge === undefined) player.options.retryChallenge = false;
|
||||
if (player.options.bulkOn === undefined) player.options.bulkOn = true
|
||||
if (player.options.cloud === undefined) player.options.cloud = true
|
||||
if (player.options.hotkeys === undefined) player.options.hotkeys = true
|
||||
if (player.options.themes === undefined) player.options.themes = "Normal"
|
||||
if (player.options.secretThemeKey === undefined) player.options.secretThemeKey = 0
|
||||
if (player.achievements === undefined) player.achievements = [];
|
||||
if (player.sacrificed === undefined) player.sacrificed = new Decimal(0);
|
||||
if (player.infinityUpgrades === undefined) player.infinityUpgrades = [];
|
||||
if (player.infinityPoints === undefined) player.infinityPoints = new Decimal(0);
|
||||
if (player.infinitied === undefined) player.infinitied = 0;
|
||||
if (player.totalTimePlayed === undefined) player.totalTimePlayed = 0;
|
||||
if (player.bestInfinityTime === undefined) player.bestInfinityTime = 9999999999;
|
||||
if (player.thisInfinityTime === undefined) player.thisInfinityTime = 9999999999;
|
||||
if (player.galaxies === undefined) player.galaxies = 0;
|
||||
if (player.lastUpdate === undefined) player.lastUpdate = new Date().getTime();
|
||||
if (player.achPow === undefined) player.achPow = 1;
|
||||
if (player.newsArray === undefined) player.newsArray = [];
|
||||
if (player.chall2Pow === undefined) player.chall2Pow = 1;
|
||||
if (player.chall3Pow === undefined) player.chall3Pow = 0.01;
|
||||
if (player.challenges === undefined) player.challenges = []
|
||||
if (player.currentChallenge === undefined) player.currentChallenge = ""
|
||||
if (player.infinitied > 0 && !player.challenges.includes("challenge1")) player.challenges.push("challenge1")
|
||||
if (player.matter === undefined) player.matter = new Decimal(0)
|
||||
if (player.autobuyers === undefined) player.autobuyers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
||||
if (player.costMultipliers === undefined) player.costMultipliers = [new Decimal(1e3), new Decimal(1e4), new Decimal(1e5), new Decimal(1e6), new Decimal(1e8), new Decimal(1e10), new Decimal(1e12), new Decimal(1e15)]
|
||||
if (player.tickspeedMultiplier === undefined) player.tickspeedMultiplier = new Decimal(10)
|
||||
if (player.partInfinityPoint === undefined) player.partInfinityPoint = 0
|
||||
if (player.challengeTimes === undefined) player.challengeTimes = [600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31]
|
||||
if (player.infchallengeTimes === undefined) player.infchallengeTimes = [600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31, 600*60*24*31]
|
||||
if (player.lastTenRuns === undefined) player.lastTenRuns = [[600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1]]
|
||||
if (player.infMult === undefined) player.infMult = new Decimal(1)
|
||||
if (player.infMultCost === undefined) player.infMultCost = new Decimal(100)
|
||||
if (player.tickSpeedMultDecrease === undefined) player.tickSpeedMultDecrease = 10
|
||||
if (player.tickSpeedMultDecreaseCost === undefined) player.tickSpeedMultDecreaseCost = 3e6
|
||||
if (player.dimensionMultDecrease === undefined) player.dimensionMultDecrease = 10
|
||||
if (player.dimensionMultDecreaseCost === undefined) player.dimensionMultDecreaseCost = 1e8
|
||||
if (player.overXGalaxies === undefined) player.overXGalaxies = 10;
|
||||
if (player.partInfinitied === undefined) player.partInfinitied = 0
|
||||
if (player.spreadingCancer === undefined) player.spreadingCancer = 0
|
||||
if (player.postC4Tier === undefined) player.postC4Tier = 0
|
||||
if (player.postC3Reward === undefined) player.postC3Reward = new Decimal(1)
|
||||
if (player.offlineProd === undefined) player.offlineProd = 0
|
||||
if (player.offlineProdCost === undefined) player.offlineProdCost = 1e7
|
||||
if (player.autoSacrifice === undefined) player.autoSacrifice = 1
|
||||
if (player.postChallUnlocked === undefined) player.postChallUnlocked = 0
|
||||
if (player.infMultBuyer === undefined) player.infMultBuyer = false
|
||||
if (player.autoCrunchMode === undefined) player.autoCrunchMode = "amount"
|
||||
if (player.challengeTarget === undefined) {
|
||||
player.challengeTarget = 0
|
||||
if (player.currentChallenge != "") player.challengeTarget = Number.MAX_VALUE
|
||||
}
|
||||
if (player.lastTenEternities === undefined) player.lastTenEternities = [[600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1], [600*60*24*31, 1]]
|
||||
if (player.respec === undefined) player.respec = false
|
||||
if (player.options.commas === undefined) player.options.commas = true
|
||||
if (player.eternityChalls === undefined) player.eternityChalls = {}
|
||||
if (player.eternityChallGoal === undefined) player.eternityChallGoal = new Decimal(Number.MAX_VALUE)
|
||||
if (player.currentEternityChall === undefined) player.currentEternityChall = ""
|
||||
if (player.eternityChallUnlocked === undefined) player.eternityChallUnlocked = 0
|
||||
if (player.options.chart === undefined) player.options.chart = {}
|
||||
if (player.options.chart.updateRate === undefined) player.options.chart.updateRate = 1000
|
||||
if (player.options.chart.duration === undefined) player.options.chart.duration = 10
|
||||
if (player.options.chart.warning === undefined) player.options.chart.warning = 0
|
||||
if (player.options.chart.on === undefined) player.options.chart.on = false
|
||||
if (player.options.chart.dips === undefined) player.options.chart.dips = true
|
||||
if (player.etercreq === undefined) player.etercreq = 0
|
||||
if (player.options.updateRate === undefined) player.options.updateRate = 50
|
||||
if (player.eterc8ids === undefined) player.eterc8ids = 50
|
||||
if (player.eterc8repl === undefined) player.eterc8repl = 40
|
||||
if (player.infinitiedBank === undefined) player.infinitiedBank = 0
|
||||
if (player.dimlife === undefined) player.dimlife = false
|
||||
if (player.dead === undefined) player.dead = false
|
||||
if (player.dilation === undefined) player.dilation = {}
|
||||
if (player.dilation.studies === undefined) player.dilation.studies = []
|
||||
if (player.dilation.active === undefined) player.dilation.active = false
|
||||
if (player.dilation.tachyonParticles === undefined) player.dilation.tachyonParticles = new Decimal(0)
|
||||
if (player.dilation.dilatedTime === undefined) player.dilation.dilatedTime = new Decimal(0)
|
||||
if (player.dilation.totalTachyonParticles === undefined) player.dilation.totalTachyonParticles = new Decimal(0)
|
||||
if (player.dilation.nextThreshold === undefined) player.dilation.nextThreshold = new Decimal(1000)
|
||||
if (player.dilation.freeGalaxies === undefined) player.dilation.freeGalaxies = 0
|
||||
if (player.dilation.upgrades === undefined) player.dilation.upgrades = []
|
||||
if (player.dilation.rebuyables === undefined) player.dilation.rebuyables = { 1: 0, 2: 0, 3: 0 }
|
||||
if (player.timeDimension5 === undefined) player.timeDimension5 = {cost: new Decimal("1e2350"), amount: new Decimal(0), power: new Decimal(1), bought: 0 }
|
||||
if (player.timeDimension6 === undefined) player.timeDimension6 = {cost: new Decimal("1e2650"), amount: new Decimal(0), power: new Decimal(1), bought: 0 }
|
||||
if (player.timeDimension7 === undefined) player.timeDimension7 = {cost: new Decimal("1e3000"), amount: new Decimal(0), power: new Decimal(1), bought: 0 }
|
||||
if (player.timeDimension8 === undefined) player.timeDimension8 = {cost: new Decimal("1e3350"), amount: new Decimal(0), power: new Decimal(1), bought: 0 }
|
||||
if (player.why === undefined) player.why = 0
|
||||
if (player.options.animations === undefined) player.options.animations = {floatingText: true, bigCrunch: true, eternity: true, tachyonParticles: true}
|
||||
if (player.options.animations.reality === undefined) player.options.animations.reality = true;
|
||||
if (player.options.confirmations === undefined) player.options.confirmations = {challenges: player.options.challConf, eternity: player.options.eternityconfirm, dilation: true, reality: true};
|
||||
if (player.secretUnlocks === undefined) player.secretUnlocks = {painTimer: 0, why: player.why, fixed: "notyetfixed", dragging: 0, themes: []};
|
||||
if (player.realTimePlayed === undefined) player.realTimePlayed = player.totalTimePlayed;
|
||||
if (player.realities === undefined) player.realities = 0;
|
||||
if (player.thisReality === undefined) player.thisReality = player.totalTimePlayed;
|
||||
if (player.bestReality === undefined) player.bestReality = 999999999999;
|
||||
if (player.lastTenRealities === undefined) player.lastTenRealities = [[60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0], [60000*60*24*31, new Decimal(1), 0]];
|
||||
if (player.wormhole === undefined) {
|
||||
player.wormhole = [{
|
||||
speed: 60 * 60, // Seconds to fill
|
||||
power: 180, // Multiplier from the wormhole
|
||||
duration: 10, // How long it lasts.
|
||||
phase: 0,
|
||||
active: false,
|
||||
unlocked: false,
|
||||
},
|
||||
{
|
||||
speed: 60 * 6,
|
||||
power: 90,
|
||||
duration: 7,
|
||||
phase: 0,
|
||||
active: false,
|
||||
unlocked: false,
|
||||
},
|
||||
{
|
||||
speed: 6 * 6,
|
||||
power: 45,
|
||||
duration: 4,
|
||||
phase: 0,
|
||||
active: false,
|
||||
unlocked: false,
|
||||
}]
|
||||
player.wormholePause = false
|
||||
}
|
||||
if (player.reality === undefined) {
|
||||
player.reality = {
|
||||
realityMachines: new Decimal(0),
|
||||
glyphs: {
|
||||
active: [],
|
||||
inventory: [],
|
||||
slots: 3,
|
||||
last: "",
|
||||
sac: {
|
||||
power: 0,
|
||||
infinity: 0,
|
||||
time: 0,
|
||||
replication: 0,
|
||||
dilation: 0
|
||||
}
|
||||
},
|
||||
seed: Math.floor(Date.now() * Math.random()+1),
|
||||
rebuyables: {1: 0, 2: 0, 3: 0, 4: 0, 5: 0,},
|
||||
upg: [],
|
||||
upgReqs: [null, true, true, true, true, true,
|
||||
false, false, false, false, false,
|
||||
false, false, false, false, false,
|
||||
false, false, false, false, false,
|
||||
false, false, false, false, false,
|
||||
false, false, false, false, false],
|
||||
upgReqChecks: [false],
|
||||
automatorRows: 0,
|
||||
automatorCommands: [],
|
||||
perks: [],
|
||||
respec: false,
|
||||
tdbuyers: [false, false, false, false, false, false, false, false],
|
||||
epmultbuyer: false,
|
||||
pp: 0
|
||||
};
|
||||
}
|
||||
if (player.ttbuyer === undefined) player.ttbuyer = false
|
||||
player = Object.assign(defaultStart, player)
|
||||
$("#ttautobuyer").text(player.ttbuyer ? "Automator: ON" : "Automator: OFF")
|
||||
|
||||
if (player.autoEternityMode === undefined) player.autoEternityMode = "amount";
|
||||
|
Loading…
Reference in New Issue
Block a user