mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
Travel Agency now displays a world map.
This commit is contained in:
parent
c2ceaa9bdd
commit
44c2bab557
@ -231,6 +231,9 @@ export let CONSTANTS: IMap<any> = {
|
|||||||
v0.48.0
|
v0.48.0
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
ASCII
|
||||||
|
* Travel Agency now displays a world map
|
||||||
|
|
||||||
Netscript
|
Netscript
|
||||||
* softReset is a new netscript function that performs a soft reset
|
* softReset is a new netscript function that performs a soft reset
|
||||||
regardless of if the player has bought augmentations or not.
|
regardless of if the player has bought augmentations or not.
|
||||||
|
@ -32,21 +32,16 @@ export class TravelAgencyLocation extends React.Component<IProps, any> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const travelBtns: React.ReactNode[] = [];
|
const thisTravelAgencyLocation = this;
|
||||||
for (const key in CityName) {
|
|
||||||
const city = CityName[key];
|
|
||||||
|
|
||||||
// Skip current city
|
function LocationLetter(props: any) {
|
||||||
if (city === this.props.p.city) { continue; }
|
if(props.city !== thisTravelAgencyLocation.props.p.city) {
|
||||||
|
return <span className='tooltip' style={{color: 'blue', whiteSpace: 'nowrap', margin: '0px', padding: '0px'}} onClick={createTravelPopup.bind(null, props.city, thisTravelAgencyLocation.props.travel)}>
|
||||||
travelBtns.push(
|
<span className='tooltiptext'>{props.city}</span>
|
||||||
<StdButton
|
{props.city[0]}
|
||||||
key={city}
|
</span>
|
||||||
onClick={createTravelPopup.bind(null, city, this.props.travel)}
|
}
|
||||||
style={this.btnStyle}
|
return <span>{props.city[0]}</span>
|
||||||
text={`Travel to ${city}`}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -55,7 +50,28 @@ export class TravelAgencyLocation extends React.Component<IProps, any> {
|
|||||||
From here, you can travel to any other city! A ticket
|
From here, you can travel to any other city! A ticket
|
||||||
costs {numeralWrapper.formatMoney(CONSTANTS.TravelCost)}
|
costs {numeralWrapper.formatMoney(CONSTANTS.TravelCost)}
|
||||||
</p>
|
</p>
|
||||||
{travelBtns}
|
<pre> ,_ . ._. _. .</pre>
|
||||||
|
<pre> , _-\','|~\~ ~/ ;-'_ _-' ,;_;_, ~~-</pre>
|
||||||
|
<pre> /~~-\_/-'~'--' \~~| ', ,' / / ~|-_\_/~/~ ~~--~~~~'--_</pre>
|
||||||
|
<pre> / ,/'-/~ '\ ,' _ , '<LocationLetter city='Volhaven' />,'|~ ._/-, /~</pre>
|
||||||
|
<pre> ~/-'~\_, '-,| '|. ' ~ ,\ /'~ / /_ /~</pre>
|
||||||
|
<pre>.-~ '| '',\~|\ _\~ ,_ , <LocationLetter city='Chongqing' /> /,</pre>
|
||||||
|
<pre> '\ <LocationLetter city='Sector-12' /> /'~ |_/~\\,-,~ \ " ,_,/ |</pre>
|
||||||
|
<pre> | / ._-~'\_ _~| \ ) <LocationLetter city='New Tokyo' /></pre>
|
||||||
|
<pre> \ __-\ '/ ~ |\ \_ / ~</pre>
|
||||||
|
<pre> ., '\ |, ~-_ - | \\_' ~| /\ \~ ,</pre>
|
||||||
|
<pre> ~-_' _; '\ '-, \,' /\/ |</pre>
|
||||||
|
<pre> '\_,~'\_ \_ _, /' ' |, /|'</pre>
|
||||||
|
<pre> / \_ ~ | / \ ~'; -,_.</pre>
|
||||||
|
<pre> | ~\ | | , '-_, ,; ~ ~\</pre>
|
||||||
|
<pre> \, <LocationLetter city='Aevum' /> / \ / /| ,-, , -,</pre>
|
||||||
|
<pre> | ,/ | |' |/ ,- ~ \ '.</pre>
|
||||||
|
<pre> ,| ,/ \ ,/ \ <LocationLetter city='Ishima' /> |</pre>
|
||||||
|
<pre> / | ~ -~~-, / _</pre>
|
||||||
|
<pre> | ,-' ~ /</pre>
|
||||||
|
<pre> / ,' ~</pre>
|
||||||
|
<pre> ',| ~</pre>
|
||||||
|
<pre> ~'</pre>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user