mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 17:59:59 +00:00
Fixed errors caused by lack of .layers in player object
This commit is contained in:
parent
09d4e88694
commit
a63a4084cb
5 changed files with 4 additions and 5 deletions
|
@ -88,7 +88,7 @@ export default defineComponent({
|
||||||
if (player.layers[this.id].unlocked) {
|
if (player.layers[this.id].unlocked) {
|
||||||
return (
|
return (
|
||||||
this.layer.tooltip ||
|
this.layer.tooltip ||
|
||||||
`{{ formatWhole(player.${this.id}.points) }} {{ layers.${this.id}.resource }}`
|
`{{ formatWhole(player.layers.${this.id}.points) }} {{ layers.${this.id}.resource }}`
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -531,7 +531,7 @@ export default {
|
||||||
<spacer />
|
<spacer />
|
||||||
<microtab family="stuff" style="width: 660px; height: 370px; background-color: brown; --background: brown; border: solid white; margin: auto" />
|
<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>
|
<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() {
|
style() {
|
||||||
|
|
|
@ -43,7 +43,7 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
name: "Farms",
|
name: "Farms",
|
||||||
//directMult() {return new Decimal(player.c.otherThingy)},
|
//directMult() {return new Decimal(player.layers.c.otherThingy)},
|
||||||
|
|
||||||
row: 1,
|
row: 1,
|
||||||
branches: [
|
branches: [
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import { layers } from "@/game/layers";
|
import { layers } from "@/game/layers";
|
||||||
import player from "@/game/player";
|
import player from "@/game/player";
|
||||||
import { DecimalSource } from "@/lib/break_eternity";
|
|
||||||
import { RawLayer } from "@/typings/layer";
|
import { RawLayer } from "@/typings/layer";
|
||||||
import Decimal, { format } from "@/util/bignum";
|
import Decimal, { format } from "@/util/bignum";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -52,7 +52,7 @@ const h = {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
tooltip() {
|
tooltip() {
|
||||||
return "Restore your points to {{ player.c.otherThingy }}";
|
return "Restore your points to {{ player.layers.c.otherThingy }}";
|
||||||
},
|
},
|
||||||
row: "side",
|
row: "side",
|
||||||
position: 3,
|
position: 3,
|
||||||
|
|
Loading…
Reference in a new issue