Skip to content

Commit

Permalink
Merge pull request #129 from Tmktahu/tk-states-and-tweaks
Browse files Browse the repository at this point in the history
Initial States Handling + Misc Tweaks
  • Loading branch information
Tmktahu authored Dec 27, 2023
2 parents 907e76f + a9bb14a commit fd1404f
Show file tree
Hide file tree
Showing 7 changed files with 375 additions and 34 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wakfu-wizard",
"version": "2.4.1",
"version": "2.4.2",
"private": true,
"scripts": {
"serve": "vite",
Expand Down
6 changes: 3 additions & 3 deletions src/components/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</template>

<script setup>
import { ref, watch, nextTick } from 'vue';
import { ref, watch, nextTick, computed } from 'vue';
import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
Expand Down Expand Up @@ -74,7 +74,7 @@ watch(
);
const languageMenu = ref(null);
const languageMenuItems = ref([
const languageMenuItems = computed(() => [
{
label: t('sidebar.language'),
items: [
Expand Down Expand Up @@ -108,7 +108,7 @@ const languageMenuItems = ref([
const themeMenu = ref(null);
const currentTheme = ref('bonta');
const themeMenuItems = ref([
const themeMenuItems = computed(() => [
{
label: t('sidebar.colorTheme'),
items: [
Expand Down
2 changes: 2 additions & 0 deletions src/components/characterSheet/ItemFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ const FILTER_TYPE_IDS = [
EFFECT_TYPE_DATA.randomElementalMasteries.id,
EFFECT_TYPE_DATA.randomElementalResistances.id,
EFFECT_TYPE_DATA.harvestingQuantity.id,
EFFECT_TYPE_DATA.armorGiven.id,
EFFECT_TYPE_DATA.armorReceived.id,
];
const filterTypeOptions = FILTER_TYPE_IDS.map((typeId) => {
Expand Down
9 changes: 5 additions & 4 deletions src/components/characterSheet/ItemStatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,14 @@ const getTotalMastery = (item) => {
...EFFECT_TYPE_DATA.meleeMastery.rawIds,
...EFFECT_TYPE_DATA.distanceMastery.rawIds,
...EFFECT_TYPE_DATA.berserkMastery.rawIds,
...EFFECT_TYPE_DATA.berserkMastery.rawIds,
...EFFECT_TYPE_DATA.criticalMastery.rawIds,
...EFFECT_TYPE_DATA.randomElementalMasteries.rawIds,
];
item?.equipEffects?.forEach((effect) => {
if (EFFECT_TYPE_DATA.randomElementalMasteries.rawIds.includes(effect.id)) {
totalValue += effect.values[0] * effect.values[2];
} else if (masteryEffectIds.includes(effect.id)) {
// if (EFFECT_TYPE_DATA.randomElementalMasteries.rawIds.includes(effect.id)) {
// totalValue += effect.values[0] * effect.values[2];
if (masteryEffectIds.includes(effect.id)) {
totalValue += effect.values[0];
}
});
Expand Down
Loading

0 comments on commit fd1404f

Please sign in to comment.