Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📄 Step 25-2 規格書(寵物系統引導)
1. 階段目標
2. 功能需求
2.1 教學流程控制
tutorial_pet_step。focusTarget(UI 元件 ID)overlay(高亮+遮罩)instruction_key(多語文字)action(觸發條件)tutorial_pet_step = nextStep。tutorial_pet_completed=true。2.2 教學步驟(完整 4 步)
pet_intro。back_home。pet_ticket_info。2.3 UI/UX
2.4 狀態儲存
{ "tutorial_pet": { "step": 0, "completed": false, "rewardGiven": false } }step=0:未開始;完成第 N 步 → 記錄step=N。completed=true:流程完成,App 重啟不再觸發。rewardGiven=true:已發放 10 張抽獎券,避免重複。2.5 i18n(示例)
{ "tutorial.pet_intro": { "zh": "寵物可以靠抽卡獲取,寵物是你最強力的夥伴", "en": "Pets can be obtained through gacha, they are your strongest allies" }, "tutorial.back_home": { "zh": "返回首頁", "en": "Return to Home" }, "tutorial.pet_ticket_info": { "zh": "現在開始可以通過每日任務獲得抽獎券", "en": "You can now earn gacha tickets from daily quests" }, "tutorial.pet_ticket_reward": { "zh": "獲得 10 張寵物抽獎券!", "en": "You received 10 Pet Gacha Tickets!" } }3. 驗收標準
tutorial_pet.completed=true,重啟不再觸發。4. 實例化需求測試案例
測試案例 1:完整流程
測試案例 2:中途退出
測試案例 3:重置存檔
測試案例 4:重複領取防護