Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat/Console message appears when a building is completed #189

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

titison
Copy link
Contributor

@titison titison commented May 3, 2019

Displaying a message on chat/console when a building finishes.
Any more ideas? I would add them here, before we accept the pull request.
Also see https://forum.megaglest.org/index.php?topic=9721.0

@@ -2039,6 +2039,12 @@ void Unit::born(const CommandType *ct) {
faction->applyStaticProduction(type,ct);
setCurrSkill(scStop);

if(ct != NULL && (ct->getClass() == ccBuild || ct->getClass() == ccRepair)) {
//assume this is a building. This could lead to problems in the future,
//but there is no real way to detect a building
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's maybe not a bad thing if it detects everything, not just buildings. If players also get notified when a Thor statue is completed, or a wicker behemoth, that could be helpful too.

But then the output message may need to be more generic.

@andy5995
Copy link
Collaborator

andy5995 commented May 6, 2019

Question marks appear on each side of the message

screen58

@andy5995
Copy link
Collaborator

andy5995 commented Oct 18, 2019

I accidentally tested this PR in a network MP game, and was recording at the time. Video at https://www.twitch.tv/videos/496304434

I'd have to review it a little, but I think that the player can see when enemy buildings are completed as well.

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