Fixed errors caused by lack of .layers in player object

This commit is contained in:
thepaperpilot 2021-08-30 23:14:22 -05:00
parent 09d4e88694
commit a63a4084cb
5 changed files with 4 additions and 5 deletions

View file

@ -88,7 +88,7 @@ export default defineComponent({
if (player.layers[this.id].unlocked) {
return (
this.layer.tooltip ||
`{{ formatWhole(player.${this.id}.points) }} {{ layers.${this.id}.resource }}`
`{{ formatWhole(player.layers.${this.id}.points) }} {{ layers.${this.id}.resource }}`
);
} else {
return (

View file

@ -531,7 +531,7 @@ export default {
<spacer />
<microtab family="stuff" style="width: 660px; height: 370px; background-color: brown; --background: brown; border: solid white; margin: auto" />
<div>Adjust how many points H gives you!</div>
<Slider :value="player.layers.c.otherThingy" @change="value => player.c.otherThingy = value" :min="1" :max="30" />`
<Slider :value="player.layers.c.otherThingy" @change="value => player.layers.c.otherThingy = value" :min="1" :max="30" />`
}
},
style() {

View file

@ -43,7 +43,7 @@ export default {
return false;
},
name: "Farms",
//directMult() {return new Decimal(player.c.otherThingy)},
//directMult() {return new Decimal(player.layers.c.otherThingy)},
row: 1,
branches: [

View file

@ -1,7 +1,6 @@
/* eslint-disable */
import { layers } from "@/game/layers";
import player from "@/game/player";
import { DecimalSource } from "@/lib/break_eternity";
import { RawLayer } from "@/typings/layer";
import Decimal, { format } from "@/util/bignum";
import {

View file

@ -52,7 +52,7 @@ const h = {
})
],
tooltip() {
return "Restore your points to {{ player.c.otherThingy }}";
return "Restore your points to {{ player.layers.c.otherThingy }}";
},
row: "side",
position: 3,