feature: export voice over function - #1
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 12 minutes and 53 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughReplaced a hardcoded footstep injury probability with a new MCM option Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@gamedata/scripts/zzz_player_injuries.script`:
- Around line 1721-1733: In play_actor_on_footstep_voice_over(), sound_play is
declared local only inside the if branch so the else branch sees nil; move the
declaration "local sound_play = math.random(1,13)" to the top of the function
(before the zzz_player_injuries_mcm.get_config check) so both the
"new_voice_sounds" branch and the legacy else branch use the same sound_play
variable; keep existing logic that builds file using muffle and
pain_<sound_play>.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 825185b7-edc4-4f9a-9c78-6d7d935af4c0
📒 Files selected for processing (2)
gamedata/scripts/zzz_player_injuries.scriptgamedata/scripts/zzz_player_injuries_mcm.script
📜 Review details
🔇 Additional comments (2)
gamedata/scripts/zzz_player_injuries_mcm.script (1)
39-40: Good config wiring for footstep damage chance.The new
chance_damage_on_footstepoption is consistently added in defaults and exposed in MCM with a valid range and matching default.Also applies to: 63-63
gamedata/scripts/zzz_player_injuries.script (1)
35-35: Nice separation of concerns in footstep handling.Using a configurable chance gate and delegating VO playback to a helper makes the footstep path cleaner and easier to maintain.
Also applies to: 1700-1702
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@gamedata/configs/text/eng/ui_st_body_health_system.xml`:
- Around line 277-280: Replace the awkward phrase "on sprinting" with "while
sprinting" in the affected UI text entries: update the label text "Chance to
receive damage on sprinting" and the description string with id
ui_mcm_body_health_system_chance_damage_on_footstep_desc so the copy reads
natural English ("Chance to receive damage while sprinting" and "Damages the
actor while sprinting with broken legs").
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 5799e4d3-a6fa-4379-a88b-38ed1c00953a
📒 Files selected for processing (2)
gamedata/configs/text/eng/ui_st_body_health_system.xmlgamedata/configs/text/rus/ui_st_body_health_system.xml
📜 Review details
🔇 Additional comments (2)
gamedata/configs/text/eng/ui_st_body_health_system.xml (1)
276-281: String IDs correctly align with the new MCM option.The added keys follow the existing
ui_mcm_body_health_system_<id>and<id>_descconvention and are consistent withchance_damage_on_footstep.gamedata/configs/text/rus/ui_st_body_health_system.xml (1)
278-283: RU localization keys are correctly added and aligned.The new Russian entries mirror the English key names and maintain localization parity for
chance_damage_on_footstep.
No description provided.