-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d369ad
commit c10b45c
Showing
24 changed files
with
196 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<template> | ||
You have collapsed <h4>{{ format(player.stars.collapsed, 2) }} / {{ format(Infinity) }} {{ formatGain(player.stars.collapsed, STARS.gain.value) }}</h4> stars, and based on all Rank types,<br /> | ||
<span class="green">it boosts Mass gain by <h4>{{ formatMult(STARS.effect.value) }}</h4>.</span><br /><br /> | ||
<button v-if="player.stars.unlocked < STARS.count" class="btn" :class="player.atom.quark.lt(STARS.nextAt.value) ? 'locked' : null" @click="STARS.unlock()">Unlock a new type of Star.<br />Cost: {{ formatInteger(STARS.nextAt.value) }} Quark.</button><br /><br /> | ||
<div class="table-center"> | ||
<template v-for="i in player.stars.unlocked"> | ||
<div v-if="i > 1" style="width: 30px; font-size: 30px;"><br>←</div> | ||
<div style="width: 250px"> | ||
<img :src="getSrc(i - 1)" /><br /><br /> | ||
<div> | ||
{{ format(player.stars.stars[i - 1], 2) }}<br /> | ||
{{ formatGain(player.stars.stars[i - 1], STARS.starGain(player.stars.stars[i]))}} | ||
</div> | ||
</div> | ||
</template> | ||
</div><br /><br /> | ||
</template> | ||
<script setup> | ||
import { format, formatMult, formatInteger, formatGain } from "../core/format" | ||
import { player } from "../core/save" | ||
import { STARS } from "./stars" | ||
// i love vite guys | ||
function getSrc(icon) { | ||
return new URL(`../images/stars/${icon}.png`, import.meta.url).href; | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { computed } from "vue" | ||
import { player } from "../core/save" | ||
import Decimal from "break_eternity.js" | ||
import { MASS_DILATION } from "./md" | ||
|
||
const REQUIREMENTS = [Infinity] | ||
|
||
const nextAt = computed(() => { | ||
const unl = player.stars.unlocked | ||
if (unl >= REQUIREMENTS.length) return Infinity | ||
return REQUIREMENTS[unl] | ||
}) | ||
function unlock() { | ||
if (player.atom.quark.lt(nextAt.value)) return | ||
player.atom.quark = player.atom.quark.sub(nextAt.value) | ||
player.stars.unlocked++ | ||
} | ||
|
||
function starGain(i) { | ||
let gain = Decimal.dOne.add(i); | ||
if (player.md.upgrades[8].gte(1)) gain = gain.mul(MASS_DILATION.effect(8)) | ||
return gain | ||
} | ||
|
||
const gain = computed(() => { | ||
return player.stars.stars[0] | ||
}) | ||
|
||
const effect = computed(() => { | ||
return 1 | ||
}) | ||
|
||
export const STARS = { | ||
count: REQUIREMENTS.length, | ||
nextAt, | ||
unlock, | ||
starGain, | ||
gain, | ||
effect | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.