Skip to content

Commit

Permalink
DIsplay current values in the altars
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Paranoiaque committed Feb 8, 2024
1 parent 6b4022c commit 43ba5de
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 27 deletions.
119 changes: 118 additions & 1 deletion src/app/altars/altars.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,16 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (!altarQuestConditionGaia.xp.validated) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionGaia.xp.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (!altarQuestConditionGaia.xp.validated) {
Expand Down Expand Up @@ -297,6 +307,16 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (!altarQuestConditionGaia.defense.validated) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionGaia.defense.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (!altarQuestConditionGaia.defense.validated) {
Expand Down Expand Up @@ -574,6 +594,18 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionHestia.placenactu.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionHestia.placenactu.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand All @@ -599,13 +631,25 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
| translate
: {
value:
(altarQuestConditionHestia.placenactu
(altarQuestConditionHestia.placepactu
.quantity
| number
: ''
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionHestia.placepactu.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionHestia.placepactu.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand Down Expand Up @@ -638,6 +682,18 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionHestia.placecactu.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionHestia.placecactu.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand Down Expand Up @@ -670,6 +726,18 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionHestia.totalplace.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionHestia.totalplace.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand Down Expand Up @@ -934,6 +1002,19 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionPrometheus.victory.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionPrometheus.victory
.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand Down Expand Up @@ -967,6 +1048,18 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionPrometheus.hf.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionPrometheus.hf.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand Down Expand Up @@ -1321,6 +1414,18 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionDivineunits.mint.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionDivineunits.mint.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand Down Expand Up @@ -1353,6 +1458,18 @@ <h2 class="text-center fw-bold fs-3 mb-4" translate>
: this.translate.currentLang)
}
}}
@if (
!altarQuestConditionDivineunits.prod.validated
) {
<div class="fw-light fst-italic">
<span translate>Currently</span>
<span translate>:</span>
{{
altarQuestConditionDivineunits.prod.currently
| number: '' : this.translate.currentLang
}}
</div>
}
</th>
<td class="text-center">
@if (
Expand Down
52 changes: 26 additions & 26 deletions src/app/altars/altars.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,38 @@ import times from '@iconify/icons-fa6-solid/xmark';
})
export class AltarsComponent implements OnInit, OnDestroy {
public altarQuestConditionDivineunits = {
food: { quantity: 0, validated: 0 },
grapes: { quantity: 0, validated: 0 },
marble: { quantity: 0, validated: 0 },
gold: { quantity: 0, validated: 0 },
mint: { quantity: 0, validated: 0 },
prod: { quantity: 0, validated: 0 },
war: { quantity: 0, validated: 0 },
food: { quantity: 0, validated: 0, currently: 0 },
grapes: { quantity: 0, validated: 0, currently: 0 },
marble: { quantity: 0, validated: 0, currently: 0 },
gold: { quantity: 0, validated: 0, currently: 0 },
mint: { quantity: 0, validated: 0, currently: 0 },
prod: { quantity: 0, validated: 0, currently: 0 },
war: { quantity: 0, validated: 0, currently: 0 },
};
public altarQuestConditionGaia = {
iron: { quantity: 0, validated: 0 },
grapes: { quantity: 0, validated: 0 },
gold: { quantity: 0, validated: 0 },
xp: { quantity: 0, validated: 0 },
defense: { quantity: 0, validated: 0 },
iron: { quantity: 0, validated: 0, currently: 0 },
grapes: { quantity: 0, validated: 0, currently: 0 },
gold: { quantity: 0, validated: 0, currently: 0 },
xp: { quantity: 0, validated: 0, currently: 0 },
defense: { quantity: 0, validated: 0, currently: 0 },
};
public altarQuestConditionHestia = {
water: { quantity: 0, validated: 0 },
food: { quantity: 0, validated: 0 },
grapes: { quantity: 0, validated: 0 },
wine: { quantity: 0, validated: 0 },
placenactu: { quantity: 0, validated: 0 },
placepactu: { quantity: 0, validated: 0 },
placecactu: { quantity: 0, validated: 0 },
totalplace: { quantity: 0, validated: 0 },
water: { quantity: 0, validated: 0, currently: 0 },
food: { quantity: 0, validated: 0, currently: 0 },
grapes: { quantity: 0, validated: 0, currently: 0 },
wine: { quantity: 0, validated: 0, currently: 0 },
placenactu: { quantity: 0, validated: 0, currently: 0 },
placepactu: { quantity: 0, validated: 0, currently: 0 },
placecactu: { quantity: 0, validated: 0, currently: 0 },
totalplace: { quantity: 0, validated: 0, currently: 0 },
};
public altarQuestConditionPrometheus = {
water: { quantity: 0, validated: 0 },
wine: { quantity: 0, validated: 0 },
gold: { quantity: 0, validated: 0 },
alliance: { quantity: 0, validated: 0 },
victory: { quantity: 0, validated: 0 },
hf: { quantity: 0, validated: 0 },
water: { quantity: 0, validated: 0, currently: 0 },
wine: { quantity: 0, validated: 0, currently: 0 },
gold: { quantity: 0, validated: 0, currently: 0 },
alliance: { quantity: 0, validated: 0, currently: 0 },
victory: { quantity: 0, validated: 0, currently: 0 },
hf: { quantity: 0, validated: 0, currently: 0 },
};

checkIcon = checkIcon;
Expand Down

0 comments on commit 43ba5de

Please sign in to comment.