Skip to content

Rank promotion feedback - #505

Open
JoyfulShush wants to merge 5 commits into
OpenTS-Developers:mainfrom
JoyfulShush:rank-promotion-feedback
Open

JoyfulShush wants to merge 5 commits into
OpenTS-Developers:mainfrom
JoyfulShush:rank-promotion-feedback

Conversation

@JoyfulShush

Copy link
Copy Markdown
Contributor

Fixes #451

Refactors the VeterancyClass somewhat. It now accepts a callback for reporting promotions.

The only way to change the amount of experience a techno has is through Set_Experience, which is used as a pipeline to changing the experience and checking if the callback should be called, producing a promotion event. It can never go over VeteranCap.

Requests to change the experience now pass whether those experience changed should be notified to the player by the caller via sounds and flashes (assuming those are defined in Rules.ini), giving callers control over those announcements. For example, an Armory or a promotion crate would announce the unit being promoted, but pre-placed units or units spawned by a trigger as promoted will not.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Development builds of 64ed31b:

The links work without a GitHub account. Artifacts expire after 90 days, and this comment follows the latest successful build.

Comment thread code/veteran.h Outdated
Comment thread code/veteran.h
Comment thread manual/content/keys/voxunitpromoted.md Outdated

This branch has not been deployed

No deployments
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.

Add rank-promotion feedback and immediate sight refresh

2 participants