[MIRROR] Fixes the mess between ROLE_REV and ROLE_REV_HEAD [MDB IGNORE] (#10705)

* Fixes the mess between ROLE_REV and ROLE_REV_HEAD (#64068)

* Fixes the mess between ROLE_REV and ROLE_REV_HEAD

* Update code/modules/client/preferences/migrations/tgui_prefs_migration.dm

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Update revolution.dm

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Fixes the mess between ROLE_REV and ROLE_REV_HEAD

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-15 16:28:00 +00:00
committed by GitHub
co-authored by Mothblocks John Willard
parent 98311e9542
commit c3b1510356
5 changed files with 6 additions and 4 deletions
@@ -43,6 +43,8 @@
// "Familes [sic] Antagonists" was the old name of the catch-all.
migrate_antagonist("Familes Antagonists", list(ROLE_FAMILIES, ROLE_FAMILY_HEAD_ASPIRANT))
// If you have an antagonist enabled, it will add the alternative preferences for said antag in be_special.
// will_exist is the role we check if enabled, to_add list is the antagonists we add onto the be_special list.
/datum/preferences/proc/migrate_antagonist(will_exist, list/to_add)
if (will_exist in be_special)
for (var/add in to_add)