You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Except in cases where such would be inherited from EU4 definitions (e.g. France), we could generate revolutionary flags for all countries coming from CK3. This would ensure that less eyesore colour combinations appear with revolutionary targets and sister republics.
The following line must be added to the country's countries/XXX.txt definition file: revolutionary_colors = { A B C }
A, B and C are determined thus, from the country's coat of arms definition:
Case 0: The title is mapped to a EU4 country with a defined revolutionary_colors line: copy it from the EU4 file as it is
Case 1: The only named colours are yellow and/or white: do NOT output the revolutionary_colors line at all
Case 2: There is no named colour (borked file): do NOT output the revolutionary_colors line at all
Case 3: There is a named colour that is not yellow or white:
Set A to the numerical value of the first named colour, not counting yellow or white (black = 1, purple = 3, red = 16, blue = 15, green = 9, brown = 7, orange = 6, blue_light = 14)
To set B, IF A is NOT 1 (so not black): see what comes first in definition between yellow, white and black. Set B to 1 if black, to 8 if yellow, to 0 if white
To set B, IF A is 1 (thus black): see what comes first in definition between yellow and white. Set B to 8 if yellow, to 0 if white
To set B, in case there is no yellow or white: set B to 0
To set C, IF B is NOT 1: list all colours appearing excludingyellow and white, output the second one listed.
To set C, IF B is 1: list all colours appearing excludingyellow, white and black, output the second one listed.
To set C, if there is no colour when excluding: set C equal to A
light_grey, samnite_beige, offwhite, ck2_white --> white (which means the algorithm will treat light_grey as if it were written white throughout the entire process)
Except in cases where such would be inherited from EU4 definitions (e.g. France), we could generate revolutionary flags for all countries coming from CK3. This would ensure that less eyesore colour combinations appear with revolutionary targets and sister republics.
The following line must be added to the country's
countries/XXX.txt
definition file:revolutionary_colors = { A B C }
A, B and C are determined thus, from the country's coat of arms definition:
Case 0: The title is mapped to a EU4 country with a defined
revolutionary_colors
line: copy it from the EU4 file as it isCase 1: The only named colours are
yellow
and/orwhite
: do NOT output therevolutionary_colors
line at allCase 2: There is no named colour (borked file): do NOT output the
revolutionary_colors
line at allCase 3: There is a named colour that is not
yellow
orwhite
:yellow
orwhite
(black
= 1,purple
= 3,red
= 16,blue
= 15,green
= 9,brown
= 7,orange
= 6,blue_light
= 14)yellow
,white
andblack
. Set B to 1 ifblack
, to 8 ifyellow
, to 0 ifwhite
yellow
andwhite
. Set B to 8 ifyellow
, to 0 ifwhite
yellow
orwhite
: set B to 0yellow
andwhite
, output the second one listed.yellow
,white
andblack
, output the second one listed.Example.
Coat of arms definition:
Process:
revolutionary_colors
line defined in the EU4 vanilla country file? NOyellow
andwhite
? YESyellow
andwhite
:blue
. Set A to 15yellow
,white
orblack
:yellow
. Set B to 8yellow
orwhite
by appearance:blue
,black
,red
black
. Set C to 1revolutionary_colors = { 15 8 1 }
(revolutionary flag is blue-yellow-black)Hardcoded exceptions by title:
The text was updated successfully, but these errors were encountered: