Skip to content

Commit

Permalink
Add collectability bar for simulator mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Dec 16, 2024
1 parent b39518d commit a8b4d7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/components/designer/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function reload() {
v-else
:item="designerStore.content.item"
:recipe="designerStore.content.recipe"
:collectability="designerStore.content.collectability"
:attributes="attributes"
/>
</template>
Expand Down
4 changes: 3 additions & 1 deletion src/components/designer/Simulator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
Actions,
Conditions,
simulateOneStep,
RecipeLevel,
Collectability,
} from '@/libs/Craft';
import { Enhancer } from '@/libs/Enhancer';
import StatusBarVue from './StatusBar.vue';
Expand All @@ -50,6 +50,7 @@ const props = defineProps<{
recipe: Recipe;
item: Item;
attributes: Attributes;
collectability?: Collectability;
}>();
const displayJob = inject(displayJobKey) as Ref<Jobs>;

Expand Down Expand Up @@ -174,6 +175,7 @@ function leaveAction() {
:enhancers="attributesEnhancers"
:status="preview ?? currentStatus"
:show-condition="true"
:collectability="collectability"
@click-attributes="openAttrEnhSelector = true"
/>
<el-scrollbar class="action-queue">
Expand Down
12 changes: 1 addition & 11 deletions src/components/guide/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ const time = computed<
else return 'night';
});

function feedback() {
window.open('https://pd.qq.com/s/al6b5xo69', '_blank');
clarityReport('goFeedback');
}

function goFco() {
window.open('https://yyyy.games/fco/', '_blank');
clarityReport('goFco');
Expand All @@ -70,10 +65,7 @@ function goFco() {
>
{{ $t('select-recipe') }}
</el-button>
<el-button v-if="!E1.c()" type="info" size="large" @click="feedback">
{{ $t('feedback') }}
</el-button>
<el-button v-else type="warning" size="large" @click="cks += E1.t0">
<el-button v-if="E1.c()" type="warning" size="large" @click="cks += E1.t0">
{{ E1.t1 }}
</el-button>
<el-button v-if="isWebsite" size="large" @click="goFco">
Expand Down Expand Up @@ -151,7 +143,6 @@ no-data = 无配方
confirm = 确认
select-recipe = 选择配方
go-back = 回到 FCO
feedback = 反馈问题
</fluent>

<fluent locale="en-US">
Expand All @@ -174,5 +165,4 @@ no-data = No recipe
confirm = Confirm
select-recipe = Select recipe
go-back = Back to FCO
feedback = Feedback
</fluent>

0 comments on commit a8b4d7b

Please sign in to comment.