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

Fix Reumario loyal and simplified code #108

Closed
wants to merge 5 commits into from

Conversation

Toranks
Copy link
Contributor

@Toranks Toranks commented Feb 28, 2023

This is one of the weirdest unit modifications I've ever seen xD
Storing unit, directly modifying variables, and unstoring unit? All of this completely unnecessary and makes the trait "loyal" non translatable.
I've done all the changes with [modify_unit] and [transform_unit] without storing anything, much cleaner. I've simplified other parts of the code too, as the [allow_recruit] using comma list instead of repeat every time.

@Toranks
Copy link
Contributor Author

Toranks commented Feb 28, 2023

{MAKE_LOYAL (id) (Milildur)}

{MAKE_LOYAL (id) (Elorain)}

This must be changed too, because uses the same method.

Same on 10 Siege of Haeltin. All of these show this message in debug mode, because they use a deprecated method:

imagen

@Toranks Toranks marked this pull request as draft February 28, 2023 11:18
macros/ano_macros.cfg Outdated Show resolved Hide resolved
[filter]
{OP}={WHAT}
side=1
[/filter]
[/store_unit]
{TRAIT_LOYAL}
Copy link
Collaborator

Choose a reason for hiding this comment

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

remember to follow wmlindent's indentation rules

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'll run wmlindent when I finish to test all of this

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok good to hear

@cooljeanius
Copy link
Collaborator

This is one of the weirdest unit modifications I've ever seen xD

Yeah some things to remember here are:

  1. This is an old add-on; often times the code is from before mainline added an officially-supported way of doing what it's trying to do
  2. szopen was a rather idiosyncratic developer

@Toranks Toranks mentioned this pull request Mar 1, 2023
@Toranks
Copy link
Contributor Author

Toranks commented Mar 1, 2023

Closed. Continues here:
#103

@Toranks Toranks closed this Mar 1, 2023
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.

None yet

2 participants