mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +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) {
|
||||
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 (
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue