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

Unhardcode and document things in Chronoshiftable #9982

Merged
merged 2 commits into from
Nov 22, 2015

Conversation

abcdefg30
Copy link
Member

No description provided.

@penev92
Copy link
Member

penev92 commented Nov 14, 2015

Seems OK 👍

@@ -41,6 +49,7 @@ public Chronoshiftable(ActorInitializer init, ChronoshiftableInfo info)
{
this.info = info;
self = init.Self;
iPositional = self.TraitOrDefault<IPositionable>();
Copy link
Member

Choose a reason for hiding this comment

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

I assume this would need #8848 to work independent from trait ordering.

Copy link
Member

Choose a reason for hiding this comment

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

Please implement INotifyCreated and move this there to avoid trait-initialization-order bugs.

@abcdefg30
Copy link
Member Author

Updated.

public readonly bool ExplodeInstead = false;
public readonly string ChronoshiftSound = "chrono2.aud";

[Desc("Should the actor return to its location after the chronoshift weared out?.")]
Copy link
Member

Choose a reason for hiding this comment

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

s/location/origin
?.

Copy link
Member

Choose a reason for hiding this comment

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

Repeating the vocabulary used in the parameter often doesn't really help explain things.

Copy link
Member

Choose a reason for hiding this comment

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

Certainly, but location is completely incorrect.

Copy link
Member

Choose a reason for hiding this comment

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

I read it as s/location/origin question mark. Not ?. being a syntax error. Try being more verbose next time. Especially when you have to vertically scroll to see the problem.

Mailaender added a commit that referenced this pull request Nov 22, 2015
Unhardcode and document things in Chronoshiftable
@Mailaender Mailaender merged commit 3727fcc into OpenRA:bleed Nov 22, 2015
@Mailaender
Copy link
Member

Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants