-
Notifications
You must be signed in to change notification settings - Fork 163
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
Backporting Garrison logic from romanovs-vengeance #681
base: master
Are you sure you want to change the base?
Conversation
Author: Devon Dieffenbach (darky) Credit: DnAp (https://github.com/DnAp) - Original PR: OpenRA/OpenRA#12774
Adds garrison art. Make some more buildings garrisonable. Adjusts garrison amount to match original. (McBurger Kong and McRoo don' match in original for some reason, i made Kong have 10 too.) Add proper structure garrisoned/abandoned notification.
Removed -rubble on ^GarrisonableBuilding
flakt and shk shouldn't be Garrisonable.
|
This works surprisingly well in-game. To properly attribute someone elses code: use |
} | ||
|
||
[Desc("Garrisoners can fire their weapons out of fire ports.")] | ||
public class AttackGarrisonedRVInfo : AttackFollowInfo, IRulesetLoaded, Requires<GarrisonableInfo> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't duplicate traits. Submit your changes to them first instead: https://github.com/OpenRA/OpenRA/blob/bleed/OpenRA.Mods.Common/Traits/Attack/AttackGarrisoned.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really that was a 1:1 port here. It's been way too long (years) since I have really looked into openRA. I have no idea how much impact replacing CargoInfo with GarrisonableInfo would cause here or how much energy not having what almost looks like a dupe Trait would be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. https://gist.github.com/Mailaender/accd6464cb1b7a12ccad5d75256f1da2/revisions In that case the whole pull request should probably move to https://github.com/OpenRA/OpenRA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They rejected the whole PR already... Right now openRA doesn't support multiple cargo types.
While not perfect I think it works quite fine already and keeping it RA2 centric right now allow us to move forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... Duplication isn't good. Rename it to AttackFromGarrison
or something then at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surely I can rename it but I just wanted to let you know I might not have the engine knowledge to do any better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also can't think of a clever way of using inheritance. This might be the only way to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's next then ? What would you like to do and how ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request seems to differ from what was initially submitted at OpenRA/OpenRA#12774 so I suggest a new attempt at the engine project. You can rebase a copy to playtest-20200118
type in the commit into https://github.com/OpenRA/ra2/blob/master/mod.config#L7 and keep a test case with the .yaml changes here. See some of my pull requests with Engine Update Required
as reference.
Travis build failed due to :
|
Removed useless else condition.
Is it fair to say this one is dead? |
Backported all the Garrison logic from romanovs-vengeance, without custom content. Right now, e1 (GI) and e2 (Conscript) can garrison.
Should address issue #204.
Author: Devon Dieffenbach (darky)
Credit: DnAp (https://github.com/DnAp) - Original PR: OpenRA/OpenRA#12774
TODO: