Skip to content

Conversation

@JoyfulShush
Copy link
Contributor

Adds a new key to houses used by WAE, which denotes whether future buildings they place have the "AI Repairable" flag automatically set or not.

This key is set to true or false when mappers use the "Enable/Disable Building Repair" buttons, respectively. New text is also added to show it, both in the confirmation message and also in the house statistics.

This is useful since in most cases, mappers that use the Enable Building Repair typically want to make sure all structures for that house (typically used by AI) are automatically repaired, but currently it only applies to current structures, not future structures.

Automatically saves and loads as a key from/to the map for each house via INI reading/writing logic.

Copy link
Member

@Rampastring Rampastring left a comment

Choose a reason for hiding this comment

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

This PR modifies translated strings, but does not update the reference translation.

Furthermore, from the contribution guideline:

If your code significantly modifies existing strings so that their meaning is changed (fixing typos etc. does not count), you need to update the translation key for that string to signal the change to translators. A good way to do this is to append an incrementing version identifier to the translation key, or increment the key if it already exists. For example, if you modified the ExpandMapWindow.InvalidWidth.Title string in a significant way, you'd change its translation key to ExpandMapWindow.InvalidWidth.Title.v2. If then, you returned and changed its meaning again at a later date, you'd change the translation key to ExpandMapWindow.InvalidWidth.Title.v3.

This PR significantly modifies EnableAIRepairs.Description and DisableAIRepairs.Description.

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