Skip to content

Release v1.8.1#8

Merged
BAKAOLC merged 4 commits into
mainfrom
develop
Nov 16, 2025
Merged

Release v1.8.1#8
BAKAOLC merged 4 commits into
mainfrom
develop

Conversation

@BAKAOLC

@BAKAOLC BAKAOLC commented Nov 16, 2025

Copy link
Copy Markdown
Collaborator

v1.8.1 正式版本

新增功能

  • 新增音效标签 \ rigger_on_hurt\,用于角色受伤时自动播放音效
  • 新增 \search_found_item_quality_xxx\ 系列音效标签,可在搜索完成时根据物品品质触发不同音效(支持 none/white/green/blue/purple/orange/red/q7/q8)

改进

  • 添加物品生命周期跟踪确保品质音效在搜索完成时正确触发

Copilot AI review requested due to automatic review settings November 16, 2025 10:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This release adds two new sound trigger features to the custom model system: automatic sound playback when characters take damage (trigger_on_hurt), and quality-based sound effects when searching items (search_found_item_quality_xxx). The version number is updated to 1.8.1, and the JsonSettings configuration previously in Constant.cs has been refactored to a separate class in DuckovCustomModel.Core.

Key Changes

  • Added trigger_on_hurt sound tag with event handler in ModelHandler that plays sounds when characters take damage
  • Added search_found_item_quality_xxx sound tag series (9 quality levels) with item inspection tracking system in new ItemDisplayPatches class
  • Refactored JsonSettings from Constant.cs to DuckovCustomModel.Core/JsonSettings.cs

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md & README_EN.md Added documentation for new trigger_on_hurt and search_found_item_quality_xxx sound tags with usage examples
CHANGELOG.md & CHANGELOG_EN.md Added v1.8.1 release notes describing the new features
DuckovCustomModel/Constant.cs Updated version to 1.8.1 and removed JsonSettings (moved to Core)
DuckovCustomModel.Core/Data/SoundTags.cs Added constants for new sound tags
DuckovCustomModel/MonoBehaviours/ModelHandler.cs Added OnHurt event handler and subscription to OnHurtEvent
DuckovCustomModel/HarmonyPatches/ItemDisplayPatches.cs New file implementing item inspection tracking and quality-based sound playback

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DuckovCustomModel/HarmonyPatches/ItemDisplayPatches.cs
Comment thread DuckovCustomModel/MonoBehaviours/ModelHandler.cs
@BAKAOLC BAKAOLC merged commit 8de3c10 into main Nov 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants