Find all replaceable uniques, generate replacement text, check for compatibility, and replace! (#6105)

* Find all replaceable uniques, generate replacement text, check for compatibility, and replace!

All of the work up until now has lead up to this point - since we already know what's out and what to replace it with, we can do 90%+ of the work ourselves and spare the sanity of our modders

For an example run:
- Download your favorite mod
- Check its deprecated uniques in the options menu
- Run the autoupdater from the same menu
- See how they disappear
- Bask in the glory

* A few unreplaced uniques raised problems in some of the replacement texts

* Old unusable deprecated uniques are suddenly important again, because they can help autoupdate mods!

I'm wondering if to remove outdated mods entirely from the uniques.md, since they're going to keep accumulating

* Padding for the 'autoupdate' button

* Only display autoupdate button if there are unique to update
Also, fixed some of the revived deprecated unique's replacement text thanks to fancy new tests :)
Tech uniques autoupdate!

* Toast now pops correctly, added translation entries
This commit is contained in:
Yair Morgenstern
2022-02-03 14:58:17 +02:00
committed by GitHub
parent 02c37f19fe
commit 3661ad8d5b
5 changed files with 185 additions and 18 deletions

View File

@ -552,6 +552,9 @@ Order trade offers by amount =
Check extension mods based on vanilla =
Checking mods for errors... =
No problems found. =
Autoupdate mod uniques =
Uniques updated! =
Show experimental world wrap for maps =
HIGHLY EXPERIMENTAL - YOU HAVE BEEN WARNED! =
Enable portrait orientation =