mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 16:01:15 +00:00
## Description: - Refactor cosmetics.json to use base64 as the lookup key, to reduce the complexity of lookup. - Add refine() logic to PatternSchema to check if the pattern is valid. - Split PatternDecoder class out of Cosmetic.ts to resolve temporal deadzone caused by static parsing of cosmetics.json with the new refine(). ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors
73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
{
|
|
"role_groups": {
|
|
"donor": ["1359441841371480176", "1330243292306341969"],
|
|
"creator": ["1286745100411473930"]
|
|
},
|
|
"patterns": {
|
|
"ABMIVVU=": {
|
|
"name": "stripes_v"
|
|
},
|
|
"ABMIDw8=": {
|
|
"name": "stripes_h"
|
|
},
|
|
"ABMIpaU=": {
|
|
"name": "checkerboard"
|
|
},
|
|
"AFIoAAABOEAHgkAc+AN/4AMcgAAA": {
|
|
"name": "choco"
|
|
},
|
|
"AHE4AQACAAQACAAQACAAQACAAAABAAIABAAIABAAIABAAIA=": {
|
|
"name": "diagonal",
|
|
"role_group": "donor"
|
|
},
|
|
"AHE4AYACQAQgCBAQCCAEQAKAAYABQAIgBBAICBAEIAJAAYA=": {
|
|
"name": "cross",
|
|
"role_group": "donor"
|
|
},
|
|
"AHEYA8AMMDAMwAPAAzAMDDADwA==": {
|
|
"name": "mini_cross",
|
|
"role_group": "donor"
|
|
},
|
|
"AHE4//8AAAAAAAAAAAAAAAAAAP//AAAAAAAAAAAAAAAAAAA=": {
|
|
"name": "horizontal_stripes",
|
|
"role_group": "donor"
|
|
},
|
|
"AHE4AQEAAAAAAAAAAAAAAAAAAAEBAAAAAAAAAAAAAAAAAAA=": {
|
|
"name": "sparse_dots",
|
|
"role_group": "donor"
|
|
},
|
|
"ALIUAAAAnsRIgiRZjuRpAiNJHiNJAAAA": {
|
|
"name": "evan",
|
|
"role_group": "creator"
|
|
},
|
|
"AHEYAYACQAQgCBAQCCAEQAKAAQ==": {
|
|
"name": "diagonal_stripe",
|
|
"role_group": "donor"
|
|
},
|
|
"AHEYAAAYGDw8fn7//35+PDwYGA==": {
|
|
"name": "mountain_ridge",
|
|
"role_group": "donor"
|
|
},
|
|
"AHEYAAACIAAAAAAAAAAACBAAAA==": {
|
|
"name": "scattered_dots",
|
|
"role_group": "donor"
|
|
},
|
|
"AHEYw8PDwwwMDAwwDDAMw8PDww==": {
|
|
"name": "circuit_board",
|
|
"role_group": "donor"
|
|
},
|
|
"AHEYSZJJkkmSSZJJkkmSSZJJkg==": {
|
|
"name": "vertical_bars",
|
|
"role_group": "donor"
|
|
},
|
|
"AHEYAAAAAAAAAkCCQUQiLnQWaA==": {
|
|
"name": "-w-",
|
|
"role_group": "donor"
|
|
},
|
|
"AAIiAAAAAAAAAAAAAAAAAAAAAIDD8YnweTiiD5FIYEIgEpkIRCKBCoFIpCIQeTwyPB6RjEAkEIgQKEQiApFAIEIgEYkIOAKfCIGIIyIAAAAAAAAAAAA=": {
|
|
"name": "openfront",
|
|
"role_group": "creator"
|
|
}
|
|
}
|
|
}
|