Skip to content

Hint Occultists toward the blood path before the voices wake - #83

Merged
XxFran10xX merged 1 commit into
mainfrom
feat/occultist-hints
Nov 25, 2026
Merged

XxFran10xX merged 1 commit into
mainfrom
feat/occultist-hints

Conversation

@XxFran10xX

@XxFran10xX XxFran10xX commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Status record

  • Reviewed: Fable 5.2 (medium) APPROVE at 3c9f9ae (3 minors, not fixed: live voices.yml needs the hints section by hand; timers reset on relog or character switch)
  • Second opinion: CodeRabbit APPROVED at 3c9f9ae (no findings)
  • Dev-tested at 3c9f9ae (with the draft dungeon API Dungeon mage weapons API: runes socketed, power, kept apart from crafted gear #82 on Dev): Occultist bot alone got a riddle ~1 min after joining (test timing); two kills of another player's tamed wolf with a sword gave whisper 24 (12 each) and exactly one stolen-animal line (cooldown held the second); no Magic errors in the Dev log
  • Local tests: blood package passes with 100% coverage at 3c9f9ae (the full suite only fails the known Windows-only Gear/Profile file-permission tests; Linux CI decides)

Why

Blood Magic has been live on Main since 11-15. Occultist is the evil trait that fills the whisper meter 3× as fast, but it gives no clue about what to do. Neither Occultist on Main has fed the meter at all, and nobody has woken the voices through real play since the 11-15 keeper fix. fran agreed to two kinds of hints, only for Occultists.

What

For characters with a fast trait (whispers.fast_traits, i.e. Occultist) whose voices haven't woken yet (stage NONE):

  • Deed hints: when a deed feeds the meter without waking the voices, the player gets one faint line about that deed. The deeds are a stolen animal, an own animal, a permanent kill, robbery and soured equilibrium. Each kind of deed can give a hint at most once per deed_cooldown_minutes (60).
  • Riddles: one random riddle while the player is alone (no one within voices.alone_radius). The first comes 30–90 minutes after joining, then one every 2–4 hours online. The trait is only looked up when a riddle falls due.
  • The lines are the character's own thoughts, drawn in the pale start colours of the "self" voice with a quiet heart sound. They never name the rules or Lorveor; the lore was checked against the vault (Alaric Thorme and True Vampires are public codex lore).
  • Both stop once the voices wake. Staff /magic blood whisper additions give no hint.
  • The new hints: section is in wildmagic/bloodmagic/voices.yml. Live configs aren't overwritten, so on push the section has to be copied in by hand.
  • Timers are kept in memory only. No saved data changes, and no BloodRecord fields were added.

🤖 Generated with Claude Code

Characters with a fast trait (Occultist) whose voices haven't woken get two
kinds of faint hints, in their own pale voice:
- a short line when a deed feeds their whisper meter (stolen or own animal,
  a permanent kill, robbery, soured equilibrium), once per deed per hour;
- a rare riddle while alone: the first 30-90 minutes after joining, then
  every 2-4 hours online.

Both stop once the voices wake. Lines and timings live in the new hints:
section of wildmagic/bloodmagic/voices.yml. Timers are in memory only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@XxFran10xX

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added configurable pre-awakening whispers, including hints for specific deeds and occasional riddles.
    • Hints can include custom styling and sound, with configurable cooldowns and timing. Riddles are sent only when the character meets the relevant conditions and is alone.
  • Tests
    • Added coverage for hint triggers, eligibility, scheduling and configuration.

The change adds configurable occultist hints before voices awaken. Deed events can trigger rate-limited messages for eligible fast-trait characters. Scheduled riddles wait for the configured conditions. The whisper service manages hint timing and clears per-player hint state during its lifecycle.

Changes: Occultist hint configuration and delivery

Layer / File(s) Summary
Hint settings and delivery rules
src/main/java/net/tfminecraft/magic/blood/OccultistHints.java, src/main/java/net/tfminecraft/magic/blood/BloodConfig.java, src/main/resources/wildmagic/bloodmagic/voices.yml, src/test/java/net/tfminecraft/magic/blood/OccultistHintsTest.java
OccultistHints loads validated settings, rate-limits deed hints, and schedules riddles. BloodConfig loads and resets hint settings. The bundled configuration defines hint text, style, and timing. Tests cover settings and delivery conditions.
Whisper event integration and timer lifecycle
src/main/java/net/tfminecraft/magic/blood/WhisperService.java, src/main/java/net/tfminecraft/magic/blood/BloodListener.java, src/main/java/net/tfminecraft/magic/blood/EvilPlayWhispers.java, src/test/java/net/tfminecraft/magic/blood/OccultistHintsTest.java
Whisper events pass deed types for character kills, robbery, animal kills, and corruption. The service ticks riddle timers and clears hint state when a player is forgotten or the service is cleared. Tests cover deed sources, eligibility, and timer behaviour.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant BloodListener
  participant WhisperService
  participant OccultistHints
  participant Player
  BloodListener->>WhisperService: addTo with CHARACTER_KILL deed
  WhisperService->>OccultistHints: Send deed hint when eligibility conditions are met
  OccultistHints->>Player: Send configured hint and optional sound
Loading

Possibly related PRs

  • TF-Minecraft/Magic#78: This PR changes animal-kill whisper rules that this change hooks into; both modify keeper-based animal-kill handling.
Merge Risk: Minimal · up to 3c9f9

This adds faint pre-awakening hints for Occultists, rate-limited per deed and delivered as periodic riddles while the player is alone. No concrete defect was found. Operators must copy the new hints section into live voices.yml by hand to enable the feature.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 821dc75f-f3c8-4abf-8f44-1a0ca3977af0
Commits

Reviewing files that changed from the base of the PR and between 9b0dab0 and 3c9f9ae.

Files selected for processing: 7

  • src/main/java/net/tfminecraft/magic/blood/BloodConfig.java
  • src/main/java/net/tfminecraft/magic/blood/BloodListener.java
  • src/main/java/net/tfminecraft/magic/blood/EvilPlayWhispers.java
  • src/main/java/net/tfminecraft/magic/blood/OccultistHints.java
  • src/main/java/net/tfminecraft/magic/blood/WhisperService.java
  • src/main/resources/wildmagic/bloodmagic/voices.yml
  • src/test/java/net/tfminecraft/magic/blood/OccultistHintsTest.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions github-actions Bot added the size:L 100-499 effective changed lines (tests excluded in mixed PRs). label Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@XxFran10xX
XxFran10xX merged commit 9c6174a into main Nov 25, 2026
3 checks passed
@XxFran10xX
XxFran10xX deleted the feat/occultist-hints branch November 25, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (tests excluded in mixed PRs).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant