From fbca5a4d8f2cd9795dcb3defc2742ec661e7118c Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sun, 7 Mar 2021 12:58:04 -0500 Subject: [PATCH] Travel Agency now displays a world map. --- src/Locations/ui/TravelAgencyLocation.tsx | 46 +++++++++++++++-------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/src/Locations/ui/TravelAgencyLocation.tsx b/src/Locations/ui/TravelAgencyLocation.tsx index 3f21b6183..887aa2091 100644 --- a/src/Locations/ui/TravelAgencyLocation.tsx +++ b/src/Locations/ui/TravelAgencyLocation.tsx @@ -32,21 +32,16 @@ export class TravelAgencyLocation extends React.Component { } render() { - const travelBtns: React.ReactNode[] = []; - for (const key in CityName) { - const city = CityName[key]; + const thisTravelAgencyLocation = this; - // Skip current city - if (city === this.props.p.city) { continue; } - - travelBtns.push( - - ) + function LocationLetter(props: any) { + if(props.city !== thisTravelAgencyLocation.props.p.city) { + return + {props.city} + {props.city[0]} + + } + return {props.city[0]} } return ( @@ -55,7 +50,28 @@ export class TravelAgencyLocation extends React.Component { From here, you can travel to any other city! A ticket costs {numeralWrapper.formatMoney(CONSTANTS.TravelCost)}

- {travelBtns} +
               ,_   .  ._. _.  .
+
           , _-\','|~\~      ~/      ;-'_   _-'     ,;_;_,    ~~-
+
  /~~-\_/-'~'--' \~~| ',    ,'      /  / ~|-_\_/~/~      ~~--~~~~'--_
+
  /              ,/'-/~ '\ ,' _  , ','|~                   ._/-, /~
+
  ~/-'~\_,       '-,| '|. '   ~  ,\ /'~                /    /_  /~
+
.-~      '|        '',\~|\       _\~     ,_  ,              /,
+
          '\       /'~          |_/~\\,-,~  \ "         ,_,/ |
+
           |       /            ._-~'\_ _~|              \ ) 
+
            \   __-\           '/      ~ |\  \_          /  ~
+
  .,         '\ |,  ~-_      - |          \\_' ~|  /\  \~ ,
+
               ~-_'  _;       '\           '-,   \,' /\/  |
+
                 '\_,~'\_       \_ _,       /'    '  |, /|'
+
                   /     \_       ~ |      /         \  ~'; -,_.
+
                   |       ~\        |    |  ,        '-_, ,; ~ ~\
+
                    \,     /        \    / /|            ,-, ,   -,
+
                     |    ,/          |  |' |/          ,-   ~ \   '.
+
                    ,|   ,/           \ ,/              \      |
+
                    /    |             ~                 -~~-, /   _
+
                    | ,-'                                    ~    /
+
                    / ,'                                      ~
+
                    ',|  ~
+
                      ~'
) }