prestige feature

This commit is contained in:
2023-04-09 13:59:19 +02:00
parent b213cae62b
commit a185bc2153
2 changed files with 26 additions and 2 deletions
+14
View File
@@ -13,6 +13,19 @@
<p>Exp: {{ adventurer.exp }} / {{ adventurer.getNextLevelExpRequirement() }}</p> <p>Exp: {{ adventurer.exp }} / {{ adventurer.getNextLevelExpRequirement() }}</p>
<p>DPS: {{ adventurer.getDPS().toPrecision(2) }}</p> <p>DPS: {{ adventurer.getDPS().toPrecision(2) }}</p>
</div> </div>
<div class="adventurer-upgrades">
<button
:disabled="!adventurer.canPrestigeUp()"
:title="!adventurer.canPrestigeUp() ? 'Adventurer needs to be at max level to prestige up' : ''"
@click="() => {
if (adventurer === null) return;
if (!adventurer.canPrestigeUp()) return;
adventurer.prestigeUp();
}"
>
Prestige up
</button>
</div>
</dialog> </dialog>
</template> </template>
@@ -73,6 +86,7 @@ export default defineComponent({
background: transparent; background: transparent;
border: none; border: none;
font-family: 'EB Garamond', serif; font-family: 'EB Garamond', serif;
transition: color 0.05s linear;
&:hover { &:hover {
color: #ff0000; color: #ff0000;
+12 -2
View File
@@ -35,8 +35,10 @@
</div> </div>
</section> </section>
<section class="collection panel pinned-paper"> <section class="collection panel pinned-paper">
<h1>Recruited adventurers ({{ Object.keys(adventurers).length }} / <h1>
{{ guild.adventurerCapacity.getAdventurerCapacity() }})</h1> Recruited adventurers ({{ Object.keys(adventurers).length }} / {{ guild.adventurerCapacity.getAdventurerCapacity() }})
</h1>
<small>Click an adventurer to see details about them</small>
<div class="adventurers"> <div class="adventurers">
<div <div
class="adventurer-tile" class="adventurer-tile"
@@ -134,6 +136,14 @@ export default defineComponent({
margin: 0; margin: 0;
} }
.collection {
small {
font-size: 1rem;
display: block;
margin-bottom: 0.5rem;
}
}
.adventurers { .adventurers {
display: flex; display: flex;
flex-direction: row; flex-direction: row;