Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shields for Brazil #425

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
1 change: 1 addition & 0 deletions doc-img/shield_map_world.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2693,6 +2693,56 @@ export function loadShields() {

// SOUTH AMERICA

// Brazil
shields["BR"] = homePlateDownShield(
5,
Color.shields.white,
Color.shields.black,
Color.shields.black,
2,
0
);
[
"AC",
"AL",
"AM",
"AP",
"BA",
"CE",
"DF",
"ES",
"GO",
"MA",
"MG",
"MS",
"MT",
"PA",
"PB",
"PE",
"PI",
"PR",
"RJ",
"RN",
"RO",
"RR",
"RS",
"SC",
"SE",
"SP",
"TO",
].forEach(
(state) =>
(shields[`BR:${state}`] = pentagonUpShield(
6,
15,
Color.shields.white,
Color.shields.black,
Color.shields.black,
0,
0
))
);

// Chile
shields["CL:national"] = {
spriteBlank: ["shield_badge_2", "shield_badge_3"],
Expand Down
2 changes: 2 additions & 0 deletions src/shieldtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ let networks = [
"US:PA:Turnpike",

"CA:AB:primary",
"BR",
"CA:SK:tertiary",
"CA:SK:primary",
"AU:WA:NH",
Expand All @@ -90,6 +91,7 @@ let networks = [
"AU:ACT:T",
"US:NM:San_Juan:NCM",
"US:TX:Harris:HCTRA",
"BR:SP",

"JP:prefectural",
"PK:national",
Expand Down