fix some PR requests

This commit is contained in:
IvarK 2019-08-28 09:39:03 +03:00
parent 32523fd6aa
commit ede18d6c0b
4 changed files with 12 additions and 12 deletions

View File

@ -28,7 +28,7 @@ Vue.component("ra-pet", {
};
},
expPerMin() {
const avgLvl = this.lastTenGlyphLevls.reduce((acc, value) => acc + value, 0) / 10;
const avgLvl = this.lastTenGlyphLevels.reduce((acc, value) => acc + value, 0) / 10;
const avgTimeMs = this.lastTenRunTimers.reduce((acc, value) => acc + value, 0) / 10;
const expGain = Math.pow(2, avgLvl / 500 - 10) * this.expBoost;
return Math.round(expGain / (avgTimeMs / 60000));
@ -47,7 +47,7 @@ Vue.component("ra-pet", {
this.expBoost = pet.expBoost;
this.exp = pet.exp;
this.requiredExp = pet.requiredExp;
this.lastTenGlyphLevls = player.lastTenRealities.map(([, , , lvl]) => lvl);
this.lastTenGlyphLevels = player.lastTenRealities.map(([, , , lvl]) => lvl);
this.lastTenRunTimers = player.lastTenRealities.map(([, , time]) => time);
},
},

View File

@ -3,7 +3,7 @@
Vue.component("ra-tab", {
data() {
return {
expMultis: [0, 0, 0, 0],
expMults: [0, 0, 0, 0],
currentExpGain: 0,
showReality: false,
showLaitela: false
@ -12,7 +12,7 @@ Vue.component("ra-tab", {
methods: {
update() {
this.unlocks = player.celestials.ra.unlocks;
this.expMultis = this.pets.map(obj => obj.pet.expBoost);
this.expMults = this.pets.map(obj => obj.pet.expBoost);
this.currentExpGain = Ra.pets.teresa.baseExp;
this.showReality = Ra.pets.teresa.level > 2;
this.showLaitela = Ra.pets.v.isUnlocked;
@ -59,23 +59,23 @@ Vue.component("ra-tab", {
<button @click="startRun" class="l-ra-reality-container" v-if="showReality">
<div class="l-ra-reality-inner">
<h1> Start Ra's Reality</h1>
<p> Rules: you can't dimension boost and tick reduction is forced to be 11%. </p>
<p> Rules: You can't dimension boost and tick reduction is forced to be 11%. </p>
<br>
<br>
<h2> Memory multipliers: </h2>
<div class="c-ra-rewards">
<span class="c-ra-rewards-inner"> Teresa: {{formatX(expMultis[0], 2, 2)}} </span>
<span class="c-ra-rewards-inner"> Teresa: {{formatX(expMults[0], 2, 2)}} </span>
<span
class="c-ra-rewards-inner"
v-if="pets[1].pet.isUnlocked"> Effarig: {{formatX(expMultis[1], 2, 2)}} </span>
v-if="pets[1].pet.isUnlocked"> Effarig: {{formatX(expMults[1], 2, 2)}} </span>
</div>
<div class="c-ra-rewards">
<span
class="c-ra-rewards-inner"
v-if="pets[2].pet.isUnlocked"> Enslaved: {{formatX(expMultis[2], 2, 2)}} </span>
v-if="pets[2].pet.isUnlocked"> Enslaved: {{formatX(expMults[2], 2, 2)}} </span>
<span
class="c-ra-rewards-inner"
v-if="pets[3].pet.isUnlocked"> V: {{formatX(expMultis[3], 2, 2)}} </span>
v-if="pets[3].pet.isUnlocked"> V: {{formatX(expMults[3], 2, 2)}} </span>
</div>
</div>
</button>

View File

@ -325,7 +325,7 @@ const RA_UNLOCKS = {
EFFARIG_XP: {
id: 7,
description: "Get Effarig to level 3",
reward: "Boost Effarig memory gain based on glyph count in Ra's Reality",
reward: "Boost Effarig memory gain based on glyph count in Ra's Reality, less glyphs means higher boost",
pet: Ra.pets.effarig,
level: 3
},
@ -373,7 +373,7 @@ const RA_UNLOCKS = {
ENSLAVED_XP: {
id: 13,
description: "Get Enslaved to level 3",
reward: "Boost Enslaved memory gain based on game time in Ra's Reality",
reward: "Boost Enslaved memory gain based on game time in Ra's Reality, lower time means higher boost",
pet: Ra.pets.enslaved,
level: 3
},

View File

@ -5803,7 +5803,7 @@ kbd {
padding: 1rem;
margin: 2rem auto;
background: linear-gradient(#2f2f2f, #464646);
border-radius: 15px;
border-radius: 1.5rem;
}
.c-ra-pet-title {