*if passengers_carrying = 0
	*gosub destination_spinner

*temp torpedoes_avail 0
*rand torpedoes_avail 1 5

*temp torpedo_price 0
*set torpedo_price 2500

*rand dieroll 0.8 1.2

*set torpedo_price (2500 * dieroll)
*set torpedo_price round(torpedo_price)

*temp repair_cost 0
*temp repair_units_needed 0

*rand dieroll 100 150

*set repair_units_needed (100 - ship_hp)

*set repair_cost (repair_units_needed * dieroll)

*temp recharge_cost 0
*temp units_needed 0

*rand dieroll 5 15

*set units_needed (battery_max - battery)

*set recharge_cost (units_needed * dieroll)

*set refuel_cost 0
*temp units_needed 0

*if story_mode = false
	*rand dieroll 10 20
	
*if story_mode = true
	*rand dieroll 5 11

*set units_needed (fuel_max - fuel)

*set refuel_cost (units_needed * dieroll)

*temp passengers_avail 0

*rand passengers_avail 1 75
*rand passengers_bid_price 4 33

*temp passengers_want 0

*if sound
	*sound lasersword.wav
	
*set on_starbase true

*label smart

✴️ [b]${starbase_name}[/b]

Looking around, you find yourself in a bustling starbase.  
Deciphering the intergalactic pixographs, you see there a variety of services on offer.

[b]:::[/b] What do you want to do, Captain?

*fake_choice
	*selectable_if (story_mode = true) #🛄 Visit passenger terminal
		*goto passenger_lounge
	#✈️ Visit dealership
		*goto dealership
	*selectable_if (story_mode = false) #🚇 Visit armory
		*goto armory
	#⛽ Refuel ship
		*goto refuel
	#🔋 Recharge ship
		*goto recharge
	*selectable_if (story_mode = false) #🛠️ Repair ship
		*goto repair
	#🛫 Leave starbase
		*goto leave_starbase
	
*label dealership

🛸 [b]${starbase_name} Starship Price List[/b]

🕊️ Pigeon: ¢1,000
*line_break
🇸🇷 Hopper: ¢2,500
*line_break
🇧🇹 Firefly: ¢6,000
*line_break
🇧🇯 Gila: ¢15,000
*line_break
🇵🇼 Hokusai: ¢25,000
*line_break
🇧🇮 Caravelle: ¢45,000
*line_break
🇮🇲 Trireme: ¢48,000
*line_break
🇧🇳 Clipper: ¢100,000
*line_break
🇲🇴 Zheng He: ¢125,000
*line_break
🇸🇨 Cruiser: ¢160,000
*line_break
🇷🇴 Corabie: ¢250,000
*line_break
🇨🇱 McCall: ¢500,000
*line_break
🇰🇲 Battleship: ¢840,000
*line_break
🇺🇬 Dreadnought: ¢1.24 million
*line_break
🇱🇸 Iluli: ¢3 million

[b]:::[/b] How can we serve you today, Captain ${name} of the ${ship_name}?

*fake_choice
	#📗 Browse catalog
		*goto ship_learn
	#🔑 Upgrade to a new spaceship
		*goto sell_spaceship
	#↩️ Explore other areas of the starbase
		*goto smart

*label ship_learn
*label spaceship_catalog

[b]:::[/b] Which starship would you like to learn more about?

*fake_choice
	#🕊️ Pigeon
		*goto pigeon
	#🇸🇷 Hopper
		*goto hopper
	#🇧🇹 Firefly
		*goto firefly
	#🇧🇯 Gila
		*goto gila
	#🇵🇼 Hokusai
		*goto hokusai
	#🇧🇮 Caravelle
		*goto caravelle
	#🇮🇲 Trireme
		*goto trireme
	#🇧🇳 Clipper
		*goto clipper
	#🇲🇴 Zheng He
		*goto zheng_he
	#🇸🇨 Cruiser
		*goto cruiser
	#🇷🇴 Corabie
		*goto corabie
	#🇨🇱 McCall
		*goto mccall
	#🇰🇲 Battleship
		*goto battleship
	#🇺🇬 Dreadnought
		*goto dreadnought
	
*label pigeon

[b]Pigeon Class Ship Specifications[/b]

🔥 Fuel  (max): 100
*line_break
☄️ Speed: Warp 1.1
*line_break
🔋 Battery (max): 100
*line_break
🚇 Torpedoes (max): 0
*line_break
📦 Cargo holds: 5
*line_break
🛌 Passenger berths: 1
*line_break
*line_break
🏦 Price: ¢1,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label hopper

[b]Hopper Class Ship Specifications[/b]

🔥 Fuel  (max): 150
*line_break
☄️ Speed: Warp 1.5
*line_break
🔋 Battery (max): 120
*line_break
🚇 Torpedoes (max): 0
*line_break
📦 Cargo holds: 10
*line_break
🛌 Passenger berths: 2
*line_break
*line_break
🏦 Price: ¢2,500

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart
	
*label firefly

[b]Firefly Class Ship Specifications[/b]

🔥 Fuel  (max): 250
*line_break
☄️ Speed: Warp 2.0
*line_break
🔋 Battery (max): 150
*line_break
🚇 Torpedoes (max): 1
*line_break
📦 Cargo holds: 25
*line_break
🛌 Passenger berths: 5
*line_break
*line_break
🏦 Price: ¢6,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart
	
*label gila

[b]Gila Class Ship Specifications[/b]

🔥 Fuel  (max): 200
*line_break
☄️ Speed: Warp 2.0
*line_break
🔋 Battery (max): 225
*line_break
🚇 Torpedoes (max): 5
*line_break
📦 Cargo holds: 30
*line_break
🛌 Passenger berths: 15
*line_break
*line_break
🏦 Price: ¢15,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label hokusai

[b]Hokusai Class Ship Specifications[/b]

🔥 Fuel  (max): 200
*line_break
☄️ Speed: Warp 10
*line_break
🔋 Battery (max): 250
*line_break
🚇 Torpedoes (max): 0
*line_break
📦 Cargo holds: 10
*line_break
🛌 Passenger berths: 2
*line_break
*line_break
🏦 Price: ¢25,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label caravelle

[b]Caravelle Class Ship Specifications[/b]

🔥 Fuel  (max): 300
*line_break
☄️ Speed: Warp 3.0
*line_break
🔋 Battery (max): 200
*line_break
🚇 Torpedoes (max): 0
*line_break
📦 Cargo holds: 20
*line_break
🛌 Passenger berths: 25
*line_break
*line_break
🏦 Price: ¢45,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label trireme

[b]Trireme Class Ship Specifications[/b]

🔥 Fuel  (max): 250
*line_break
☄️ Speed: Warp 3.0
*line_break
🔋 Battery (max): 300
*line_break
🚇 Torpedoes (max): 3
*line_break
📦 Cargo holds: 12
*line_break
🛌 Passenger berths: 0
*line_break
*line_break
🏦 Price: ¢48,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label clipper

[b]Clipper Class Ship Specifications[/b]

🔥 Fuel  (max): 350
*line_break
☄️ Speed: Warp 4.0
*line_break
🔋 Battery (max): 350
*line_break
🚇 Torpedoes (max): 1
*line_break
📦 Cargo holds: 100
*line_break
🛌 Passenger berths: 100
*line_break
*line_break
🏦 Price: ¢100,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label zheng_he

[b]Zheng He Class Ship Specifications[/b]

🔥 Fuel  (max): 400
*line_break
☄️ Speed: Warp 3.0
*line_break
🔋 Battery (max): 500
*line_break
🚇 Torpedoes (max): 6
*line_break
📦 Cargo holds: 200
*line_break
🛌 Passenger berths: 500
*line_break
*line_break
🏦 Price: ¢125,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label cruiser

[b]Cruiser Class Ship Specifications[/b]

🔥 Fuel  (max): 400
*line_break
☄️ Speed: Warp 3.0
*line_break
🔋 Battery (max): 500
*line_break
🚇 Torpedoes (max): 6
*line_break
📦 Cargo holds: 50
*line_break
🛌 Passenger berths: 5
*line_break
*line_break
🏦 Price: ¢160,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label corabie

[b]Corabie Class Ship Specifications[/b]

🔥 Fuel  (max): 400
*line_break
☄️ Speed: Warp 4.0
*line_break
🔋 Battery (max): 500
*line_break
🚇 Torpedoes (max): 10
*line_break
📦 Cargo holds: 25
*line_break
🛌 Passenger berths: 5
*line_break
*line_break
🏦 Price: ¢250,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label mccall

[b]McCall Class Ship Specifications[/b]

🔥 Fuel  (max): 800
*line_break
☄️ Speed: Warp 2.5
*line_break
🔋 Battery (max): 350
*line_break
🚇 Torpedoes (max): 1
*line_break
📦 Cargo holds: 400
*line_break
🛌 Passenger berths: 350
*line_break
*line_break
🏦 Price: ¢500,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label battleship

[b]Battleship Class Ship Specifications[/b]

🔥 Fuel  (max): 800
*line_break
☄️ Speed: Warp 2.5
*line_break
🔋 Battery (max): 600
*line_break
🚇 Torpedoes (max): 10
*line_break
📦 Cargo holds: 5
*line_break
🛌 Passenger berths: 0
*line_break
*line_break
🏦 Price: ¢840,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label dreadnought

[b]Dreadnought Class Ship Specifications[/b]

🔥 Fuel  (max): 1000
*line_break
☄️ Speed: Warp 1.0
*line_break
🔋 Battery (max): 1000
*line_break
🚇 Torpedoes (max): 25
*line_break
📦 Cargo holds: 5
*line_break
🛌 Passenger berths: 0
*line_break
*line_break
🏦 Price: ¢1,240,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart

*label iluli

[b]Iluli Class Ship Specifications[/b]

🔥 Fuel  (max): 1000
*line_break
☄️ Speed: Warp 3.0
*line_break
🔋 Battery (max): 450
*line_break
🚇 Torpedoes (max): 2
*line_break
📦 Cargo holds: 450
*line_break
🛌 Passenger berths: 500
*line_break
*line_break
🏦 Price: ¢3,000,000

*fake_choice
	#🔑 Upgrade to a new spaceship!
		*goto sell_spaceship
	#📗 Peruse the catalog
		*goto spaceship_catalog
	#↩️ Explore other areas of the starbase
		*goto smart


*label sell_spaceship
	
⚠️ All sales are final!

*fake_choice
	*selectable_if (credits >= 1000) #🕊️ Pigeon
		*gosub cargo_clear
		*set ship_class "🕊️ Pigeon"
		*set credits - 1000
		*set fuel_max 100
		*set battery_max 100
		*set battery 100
		*set cargo_holds 5
		*set cargo_space_free 5
		*set speed 1.1
		*set torpedoes_max 0
		*set passengers_max 1
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 2500) #🇸🇷 Hopper
		*gosub cargo_clear
		*set ship_class "🇸🇷 Hopper"
		*set credits - 2500
		*set fuel_max 150
		*set battery_max 120
		*set battery battery_max
		*set cargo_holds 10
		*set cargo_space_free cargo_holds
		*set speed 1.5
		*set torpedoes_max 0
		*set passengers_max 2
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 6000) #🇧🇹 Firefly
		*gosub cargo_clear
		*set ship_class "🇧🇹 Firefly"
		*set credits - 6000
		*set fuel_max 250
		*set battery_max 150
		*set battery 150
		*set cargo_holds 25
		*set cargo_space_free 25
		*set speed 2
		*set torpedoes_max 1
		*set passengers_max 5
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 15000) #🇧🇯 Gila
		*gosub cargo_clear
		*set ship_class "🇧🇯 Gila"
		*set credits - 15000
		*set fuel_max 200
		*set battery_max 225
		*set battery 225
		*set cargo_holds 30
		*set cargo_space_free 30
		*set speed 2
		*set torpedoes_max 5
		*set passengers_max 15
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 25000) #🇵🇼 Hokusai
		*gosub cargo_clear
		*set ship_class "🇵🇼 Hokusai"
		*set credits - 25000
		*set fuel_max 200
		*set battery_max 250
		*set battery 250
		*set cargo_holds 10
		*set cargo_space_free 10
		*set speed 10
		*set torpedoes_max 0
		*set passengers_max 2
		*set berths_available passengers_max
		*set passengers_carrying 0
		*goto after_ship_purchase
	*selectable_if (credits >= 45000) #🇧🇮 Caravelle
		*gosub cargo_clear
		*set ship_class "🇧🇮 Caravelle"
		*set credits - 45000
		*set fuel_max 300
		*set battery_max 200
		*set battery 200
		*set cargo_holds 20
		*set cargo_space_free 20
		*set speed 3
		*set torpedoes_max 0
		*set passengers_max 25
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 48000) #🇮🇲 Trireme
		*gosub cargo_clear
		*set ship_class "🇮🇲 Trireme"
		*set credits - 48000
		*set fuel_max 250
		*set battery_max 300
		*set battery 300
		*set cargo_holds 12
		*set cargo_space_free cargo_holds
		*set speed 3
		*set torpedoes_max 3
		*set passengers_max 0
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 100000) #🇧🇳 Clipper
		*gosub cargo_clear
		*set ship_class "🇧🇳 Clipper"
		*set credits - 100000
		*set fuel_max 350
		*set battery_max 350
		*set battery battery_max
		*set cargo_holds 100
		*set cargo_space_free cargo_holds
		*set speed 4
		*set torpedoes_max 1
		*set passengers_max 100
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 125000) #🇲🇴 Zheng He
		*gosub cargo_clear
		*set ship_class "🇲🇴 Zheng He"
		*set credits - 125000
		*set fuel_max 500
		*set battery_max 500
		*set battery battery_max
		*set cargo_holds 200
		*set cargo_space_free cargo_holds
		*set speed 2
		*set torpedoes_max 2
		*set passengers_max 500
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 160000) #🇸🇨 Cruiser
		*gosub cargo_clear
		*set ship_class "🇸🇨 Cruiser"
		*set credits - 160000
		*set fuel_max 400
		*set battery_max 500
		*set battery battery_max
		*set cargo_holds 50
		*set cargo_space_free cargo_holds
		*set speed 3
		*set torpedoes_max 6
		*set passengers_max 5
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 250000) #🇷🇴 Corabie
		*gosub cargo_clear
		*set ship_class "🇷🇴 Corabie"
		*set credits - 250000
		*set fuel_max 400
		*set battery_max 500
		*set battery battery_max
		*set cargo_holds 25
		*set cargo_space_free cargo_holds
		*set speed 4
		*set torpedoes_max 10
		*set passengers_max 5
		*set berths_available passengers_max
		*set passengers_carrying 0
		*goto after_ship_purchase
	*selectable_if (credits >= 500000) #🇨🇱 McCall
		*gosub cargo_clear
		*set ship_class "🇨🇱 McCal"
		*set credits - 500000
		*set fuel_max 800
		*set battery_max 350
		*set battery battery_max
		*set cargo_holds 400
		*set cargo_space_free cargo_holds
		*set speed 2.5
		*set torpedoes_max 1
		*set passengers_max 350
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 840000) #🇰🇲 Battleship
		*gosub cargo_clear
		*set ship_class "🇰🇲 Battleship"
		*set credits - 840000
		*set fuel_max 800
		*set battery_max 600
		*set battery battery_max
		*set cargo_holds 5
		*set cargo_space_free cargo_holds
		*set speed 2.5
		*set torpedoes_max 10
		*set passengers_max 0
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 1240000) #🇺🇬 Dreadnought
		*gosub cargo_clear
		*set ship_class "🇺🇬 Dreadnought"
		*set credits - 1240000
		*set fuel_max 1000
		*set battery_max 1000
		*set battery battery_max
		*set cargo_holds 5
		*set cargo_space_free cargo_holds
		*set speed 1
		*set torpedoes_max 25
		*set passengers_max 0
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	*selectable_if (credits >= 3000000) #🇱🇸 Iluli
		*gosub cargo_clear
		*set ship_class "🇱🇸 Iluli"
		*set credits - 3000000
		*set fuel_max 1000
		*set battery_max 450
		*set battery battery_max
		*set cargo_holds 450
		*set cargo_space_free cargo_holds
		*set speed 3
		*set torpedoes_max 2
		*set passengers_max 500
		*set berths_available passengers_max
		*set passengers_carrying 0
		*set ship_hp 100
		*goto after_ship_purchase
	#Cancel order
		*if sound
			*sound briefchirp.wav
			
		[i]Starship order canceled...[/i]
		
		*page_break 😌
		
		*goto dealership
		
*label after_ship_purchase

*set ship_hp 100
*rand regnumber 6018975 9816354

🛸 [b]${starbase_name} Starship Dealer[/b]

*if sound
	*sound cashregister.wav
	
✅ You are now the proud owner of a ${ship_class} vessel.

::: Enter the name of your new ship:

*input_text ship_name

*set ship_name "[i]${ship_name}[/i]"

*label keep_name

🛸 [b]${starbase_name} Starship Dealer[/b]

Using the starbase's eye-scan technology, you quickly fill out all the requisite registration forms for your new ship.

*if sound
	*sound bing.wav

A moment later, you hear a soft chime.

*check_achievements
*if choice_achieved_upgrade_ship = false
	*achieve upgrade_ship

[i]${ship_name} is now your legally registered vessel.[/i]

[i]Your previous ship, and all of its contents, now belong to the Galactic Council.[/i]

[i]Thank you for choosing ${starbase_name} Starship Dealer for your intergalactic vessel needs![/i]

*page_break 🛸 ${ship_name}

*goto smart

*label refuel

✴️⛽ [b]Intergalactic Fuel[/b]

*if sound
	*sound briefchirp.wav

Approaching a gleaming kiosk, you uplink your public data key and then eyescroll through the menus until the screen reads:

*if refuel_cost = 0
	*if sound
		*sound warningbleep.wav
		
	⛽ [i]${ship_name} warp core fuel storage full[/i]
	
	*page_break 😌
	*goto smart

⛽ [i]${ship_name} projected refuel cost: ${refuel_cost} intergalactic credits[/i]

[i]Refuel now, Y/N?[/i]

*fake_choice
	*selectable_if (credits >= refuel_cost) #Yes
		*set credits - refuel_cost
	#No
		⛽ [b]Intergalactic Fuel[/b]
	
		Instead of fussing around with recharging your ship's warp core fuel stocks, you decide it is better to explore other areas of the starbase.
		
		*page_break 😌
		*goto smart
	
⛽ [b]Intergalactic Fuel[/b]
	
*if sound
	*sound droids2.wav
	
After palming over your payment authorization key, the screen blinks and then displays a new message:

⛽ [i]Refuel in progress.  Thank you for choosing Intergalactic Oil for your refueling needs.[/i]

Nodding to yourself, you turn around to explore the starbase, confident in the knowledge that your ship's warp core fuel stores will be fully replenished by the time you leave.

*page_break 😌

*set fuel fuel_max
*goto smart

*label recharge

🔋 [b]${starbase_name} Charging Station[/b]

*if sound
	*sound briefchirp.wav

Approaching a gleaming kiosk, you uplink your public data key and then eyescroll through the menus until the screen reads:

*if recharge_cost = 0
	*if sound
		*sound warningbleep.wav
	
	⚡ [i]${ship_name} batteries full[/i]
	
	*page_break 😌
	*goto smart

⚡ [i]${ship_name} projected recharge cost: ${recharge_cost} intergalactic credits[/i]

[i]Recharge now, Y/N?[/i]

*fake_choice
	*selectable_if (credits >= recharge_cost) #Yes
		*set credits - recharge_cost
	#No
		🔋 [b]${starbase_name} Charging Station[/b]
		
		Instead of fussing around with recharging your ship's batteries, you decide it is better to explore other areas of the starbase.
		
		*page_break 😌
		*goto smart
	
🔋 [b]${starbase_name} Charging Station[/b]
	
*if sound
	*sound droids2.wav
	
After palming over your payment authorization key, the screen blinks and then displays a new message:

⚡ [i]Recharge in progress.  Thank you for choosing ${starbase_name} for your recharging needs![/i]

Nodding to yourself, you turn around to explore the starbase, confident in the knowledge that your ship's batteries will be fully charged by the time you leave.

*page_break 😌

*set battery battery_max

*goto smart

*label armory

*if sound
	*sound armory.wav

🚇 [b]${starbase_name} Armory[/b]

*if torpedoes_avail < 1
	[i]Sorry, we're all out of torpedoes at the moment. [/i]
	[i][/i]
	[i]Come visit us again![/i]
	
	*page_break 😌
	*goto smart

Available torpedoes for sale: ${torpedoes_avail}

Today's price (per torpedo): ¢${torpedo_price}

[b]:::[/b] How can we serve you today, Captain ${name} of the ${ship_name}?

*fake_choice
	*selectable_if (torpedoes_max > 0) #🔻 Buy torpedoes
		*goto buy_torpedoes
	#↩️ Explore other areas of the starbase
		*goto smart
	
*label buy_torpedoes

*temp buytorpnumber 0

🚇 [b]${starbase_name} Armory[/b]

Number of torpedoes onboard ${ship_name}: ${torpedoes}

[b]:::[/b] How many torpedoes would you like to purchase?

*input_number buytorpnumber 1 torpedoes_avail

*temp slots_avail 0

*set slots_avail (torpedoes_max - torpedoes)

*if buytorpnumber > slots_avail
	*if sound
		*sound warningbeep.wav
		
	⚠️ You don't have enough available slots for that many torpedoes!
	
	*page_break 😌
	*goto armory

*temp totalprice 0

*set totalprice (buytorpnumber * torpedo_price)

*if totalprice > credits
	*if sound
		*sound warningbeep.wav
		
	⚠️ You don't have enough credits to make this purchase!
	
	*page_break 😌
	*goto armory

*set credits - totalprice
*set torpedoes + buytorpnumber
*set torpedoes_avail - buytorpnumber

*set lastsaleprice torpedo_price
*set lasttotalsale totalprice

*if sound
	*sound torpedoloaded.wav

*if buytorpnumber = 1
	✅ You purchased ${buytorpnumber} torpedo 🚇 for a total of ¢${totalprice}.

*if buytorpnumber > 1
	✅ You purchased ${buytorpnumber} torpedoes 🚇 for a total of ¢${totalprice}.
	
[b]:::[/b] Thank you for choosing ${starbase_name} Armory!  We look forward to serving you again.

*page_break 😌
*goto smart

*label passenger_lounge

*if sound
	*sound passengerlounge.mp3

🛄 [b]${starbase_name} Passenger Terminal[/b]

Several people are clustered around a large electronic screen that shows departure and arrival information.

🪐 Destination: Planet ${passenger_destination} (Quadrant ${passenger_quadrant})

🧑‍🚀 Number of passengers seeking berths: ${passengers_avail}

🎫 Ticket price: ¢${passengers_bid_price}/passenger

🛏️ Berths available on [i]${ship_name}[/i]: ${berths_available}

[b]:::[/b] What do you want to do, Captain?

*fake_choice
	*selectable_if (berths_available > 0) #👨‍🚀  Take on some passengers
	#↩️ Explore other areas of the starbase
		*goto smart
	
🛄 [b]${starbase_name} Passenger Terminal[/b]

🧑‍🚀 Number of passengers seeking berths: ${passengers_avail}

🛏️ Berths available on [i]${ship_name}[/i]: ${berths_available}

::: How many passengers would you like to on board?

*input_number passengers_want 0 passengers_avail

*if passengers_want = 0
	🛄 [b]${starbase_name} Passenger Terminal[/b]
	
	*if sound
		*sound grandloser1.wav
		
	The crowd lets out a groan after you announce that you are not going to be taking on any passengers, after all.
	
	Silently, you make your way back to the main area of the starbase.
	
	*page_break 😌
	*goto smart

*if passengers_want > berths_available
	🛄 [b]${starbase_name} Passenger Terminal[/b]
	
	*if sound
		*sound warningbeep.wav
		
	⚠️ You don't have that many berths available!
	
	*page_break 😌
	*goto passenger_lounge

*if passengers_want = 1
	🛄 [b]${starbase_name} Passenger Terminal[/b]
	
	*if sound
		*sound cashregister.mp3
		
	👩‍🚀 You have taken on ${passengers_want} passenger.
	
	Upon reaching ${passenger_destination}, the passenger will pay you ${passengers_bid_price} credits.
	
*if passengers_want > 1
	🛄 [b]${starbase_name} Passenger Terminal[/b]
	
	*if sound
		*sound cashregister.mp3
	
	👩‍🚀 You have taken on ${passengers_want} passengers.  
	
	Upon reaching ${passenger_destination}, each passenger will pay you ${passengers_bid_price} credits.

*set passengers_avail - passengers_want
*set passengers_carrying + passengers_want
*set berths_available - passengers_want

*page_break 🛅
*goto smart

*label leave_starbase

*set on_starbase false

*if sound
	*sound leavestarbase.wav

*set battery -1

*if starbases_visited > 3
	*goto_scene startrip_main

After exploring all the sights of the starbase, you make your way back to the ${ship_name}.

*if rp
	${rp_emoji} "Perfect timing, ${name}."

You then fire up the engines before running through your preflight checklist.

Verifying that the docking hatch is now disengaged, you gently engage impulse thrusters and pull your ship away from ${starbase_name}.

Scanning the control board, you are relieved to see no incoming messages from Traffic Control.

*page_break 🌠 Explore the Galaxy

*goto_scene startrip_main

*label destination_spinner

*rand dieroll 1 150

*if dieroll = 1
	*set passenger_destination planet1_name
	*set passenger_quadrant planet1_quadrant
	*return

*if dieroll = 2
	*set passenger_destination planet2_name
	*set passenger_quadrant planet2_quadrant
	*return
	
*if dieroll = 3
	*set passenger_destination planet3_name
	*set passenger_quadrant planet3_quadrant
	*return
	
*if dieroll = 4
	*set passenger_destination planet4_name
	*set passenger_quadrant planet4_quadrant
	*return
	
*if dieroll = 5
	*set passenger_destination planet5_name
	*set passenger_quadrant planet5_quadrant
	*return
	
*if dieroll = 6
	*set passenger_destination planet6_name
	*set passenger_quadrant planet6_quadrant
	*return
	
*if dieroll = 7
	*set passenger_destination planet7_name
	*set passenger_quadrant planet7_quadrant
	*return
	
*if dieroll = 8
	*set passenger_destination planet8_name
	*set passenger_quadrant planet8_quadrant
	*return
	
*if dieroll = 9
	*set passenger_destination planet9_name
	*set passenger_quadrant planet9_quadrant
	*return
	
*if dieroll = 10
	*set passenger_destination planet10_name
	*set passenger_quadrant planet10_quadrant
	*return
	
*if dieroll = 11
	*set passenger_destination planet11_name
	*set passenger_quadrant planet11_quadrant
	*return
	
*if dieroll = 12
	*set passenger_destination planet12_name
	*set passenger_quadrant planet12_quadrant
	*return
	
*if dieroll = 13
	*set passenger_destination planet13_name
	*set passenger_quadrant planet13_quadrant
	*return
	
*if dieroll = 14
	*set passenger_destination planet14_name
	*set passenger_quadrant planet14_quadrant
	*return
	
*if dieroll = 15
	*set passenger_destination planet15_name
	*set passenger_quadrant planet15_quadrant
	*return
	
*if dieroll = 16
	*set passenger_destination planet16_name
	*set passenger_quadrant planet6_quadrant
	*return
	
*if dieroll = 17
	*set passenger_destination planet17_name
	*set passenger_quadrant planet17_quadrant
	*return
	
*if dieroll = 18
	*set passenger_destination planet18_name
	*set passenger_quadrant planet18_quadrant
	*return
	
*if dieroll = 19
	*set passenger_destination planet19_name
	*set passenger_quadrant planet19_quadrant
	*return
	
*if dieroll = 20
	*set passenger_destination planet20_name
	*set passenger_quadrant planet20_quadrant
	*return

*if dieroll = 21
	*set passenger_destination planet21_name
	*set passenger_quadrant planet21_quadrant
	*return
	
*if dieroll = 22
	*set passenger_destination planet22_name
	*set passenger_quadrant planet22_quadrant
	*return
	
*if dieroll = 23
	*set passenger_destination planet23_name
	*set passenger_quadrant planet23_quadrant
	*return
	
*if dieroll = 24
	*set passenger_destination planet24_name
	*set passenger_quadrant planet24_quadrant
	*return
	
*if dieroll = 25
	*set passenger_destination planet25_name
	*set passenger_quadrant planet25_quadrant
	*return
	
*if dieroll = 26
	*set passenger_destination planet26_name
	*set passenger_quadrant planet26_quadrant
	*return
	
*if dieroll = 27
	*set passenger_destination planet27_name
	*set passenger_quadrant planet27_quadrant
	*return
	
*if dieroll = 28
	*set passenger_destination planet28_name
	*set passenger_quadrant planet28_quadrant
	*return
	
*if dieroll = 29
	*set passenger_destination planet29_name
	*set passenger_quadrant planet29_quadrant
	*return

*if dieroll = 30
	*set passenger_destination planet30_name
	*set passenger_quadrant planet30_quadrant
	*return

*if dieroll = 31
	*set passenger_destination planet31_name
	*set passenger_quadrant planet31_quadrant
	*return
	
*if dieroll = 32
	*set passenger_destination planet32_name
	*set passenger_quadrant planet32_quadrant
	*return
	
*if dieroll = 33
	*set passenger_destination planet33_name
	*set passenger_quadrant planet33_quadrant
	*return
	
*if dieroll = 34
	*set passenger_destination planet34_name
	*set passenger_quadrant planet34_quadrant
	*return
	
*if dieroll = 35
	*set passenger_destination planet35_name
	*set passenger_quadrant planet35_quadrant
	*return
	
*if dieroll = 36
	*set passenger_destination planet36_name
	*set passenger_quadrant planet6_quadrant
	*return
	
*if dieroll = 37
	*set passenger_destination planet37_name
	*set passenger_quadrant planet37_quadrant
	*return
	
*if dieroll = 38
	*set passenger_destination planet38_name
	*set passenger_quadrant planet38_quadrant
	*return
	
*if dieroll = 39
	*set passenger_destination planet39_name
	*set passenger_quadrant planet39_quadrant
	*return

*if dieroll = 40
	*set passenger_destination planet40_name
	*set passenger_quadrant planet40_quadrant
	*return

*if dieroll = 41
	*set passenger_destination planet41_name
	*set passenger_quadrant planet41_quadrant
	*return
	
*if dieroll = 42
	*set passenger_destination planet42_name
	*set passenger_quadrant planet42_quadrant
	*return
	
*if dieroll = 43
	*set passenger_destination planet43_name
	*set passenger_quadrant planet43_quadrant
	*return
	
*if dieroll = 44
	*set passenger_destination planet44_name
	*set passenger_quadrant planet44_quadrant
	*return
	
*if dieroll = 45
	*set passenger_destination planet45_name
	*set passenger_quadrant planet45_quadrant
	*return
	
*if dieroll = 46
	*set passenger_destination planet46_name
	*set passenger_quadrant planet46_quadrant
	*return
	
*if dieroll = 47
	*set passenger_destination planet47_name
	*set passenger_quadrant planet47_quadrant
	*return
	
*if dieroll = 48
	*set passenger_destination planet48_name
	*set passenger_quadrant planet48_quadrant
	*return
	
*if dieroll = 49
	*set passenger_destination planet49_name
	*set passenger_quadrant planet49_quadrant
	*return

*if dieroll = 50
	*set passenger_destination planet50_name
	*set passenger_quadrant planet50_quadrant
	*return

*if dieroll = 51
	*set passenger_destination planet51_name
	*set passenger_quadrant planet51_quadrant
	*return
	
*if dieroll = 52
	*set passenger_destination planet52_name
	*set passenger_quadrant planet52_quadrant
	*return
	
*if dieroll = 53
	*set passenger_destination planet53_name
	*set passenger_quadrant planet53_quadrant
	*return
	
*if dieroll = 54
	*set passenger_destination planet54_name
	*set passenger_quadrant planet54_quadrant
	*return
	
*if dieroll = 55
	*set passenger_destination planet55_name
	*set passenger_quadrant planet55_quadrant
	*return
	
*if dieroll = 56
	*set passenger_destination planet56_name
	*set passenger_quadrant planet56_quadrant
	*return
	
*if dieroll = 57
	*set passenger_destination planet57_name
	*set passenger_quadrant planet57_quadrant
	*return
	
*if dieroll = 60
	*set passenger_destination planet60_name
	*set passenger_quadrant planet60_quadrant
	*return

*if dieroll = 61
	*set passenger_destination planet61_name
	*set passenger_quadrant planet61_quadrant
	*return
	
*if dieroll = 62
	*set passenger_destination planet62_name
	*set passenger_quadrant planet62_quadrant
	*return
	
*if dieroll = 63
	*set passenger_destination planet63_name
	*set passenger_quadrant planet63_quadrant
	*return
	
*if dieroll = 64
	*set passenger_destination planet64_name
	*set passenger_quadrant planet64_quadrant
	*return
	
*if dieroll = 65
	*set passenger_destination planet65_name
	*set passenger_quadrant planet65_quadrant
	*return
	
*if dieroll = 66
	*set passenger_destination planet66_name
	*set passenger_quadrant planet66_quadrant
	*return
	
*if dieroll = 67
	*set passenger_destination planet67_name
	*set passenger_quadrant planet67_quadrant
	*return
	
*if dieroll = 68
	*set passenger_destination planet68_name
	*set passenger_quadrant planet68_quadrant
	*return
	
*if dieroll = 69
	*set passenger_destination planet69_name
	*set passenger_quadrant planet69_quadrant
	*return

	
*if dieroll = 58
	*set passenger_destination planet58_name
	*set passenger_quadrant planet58_quadrant
	*return
	
*if dieroll = 59
	*set passenger_destination planet59_name
	*set passenger_quadrant planet59_quadrant
	*return

*if dieroll = 70
	*set passenger_destination planet70_name
	*set passenger_quadrant planet70_quadrant
	*return

*if dieroll = 71
	*set passenger_destination planet71_name
	*set passenger_quadrant planet71_quadrant
	*return
	
*if dieroll = 72
	*set passenger_destination planet72_name
	*set passenger_quadrant planet72_quadrant
	*return
	
*if dieroll = 73
	*set passenger_destination planet73_name
	*set passenger_quadrant planet73_quadrant
	*return
	
*if dieroll = 74
	*set passenger_destination planet74_name
	*set passenger_quadrant planet74_quadrant
	*return
	
*if dieroll = 75
	*set passenger_destination planet75_name
	*set passenger_quadrant planet75_quadrant
	*return
	
*if dieroll = 76
	*set passenger_destination planet76_name
	*set passenger_quadrant planet76_quadrant
	*return
	
*if dieroll = 77
	*set passenger_destination planet77_name
	*set passenger_quadrant planet77_quadrant
	*return
	
*if dieroll = 78
	*set passenger_destination planet78_name
	*set passenger_quadrant planet78_quadrant
	*return
	
*if dieroll = 79
	*set passenger_destination planet79_name
	*set passenger_quadrant planet79_quadrant
	*return

*if dieroll = 80
	*set passenger_destination planet80_name
	*set passenger_quadrant planet80_quadrant
	*return

*if dieroll = 81
	*set passenger_destination planet81_name
	*set passenger_quadrant planet81_quadrant
	*return
	
*if dieroll = 82
	*set passenger_destination planet82_name
	*set passenger_quadrant planet82_quadrant
	*return
	
*if dieroll = 83
	*set passenger_destination planet83_name
	*set passenger_quadrant planet83_quadrant
	*return
	
*if dieroll = 84
	*set passenger_destination planet84_name
	*set passenger_quadrant planet84_quadrant
	*return
	
*if dieroll = 85
	*set passenger_destination planet85_name
	*set passenger_quadrant planet85_quadrant
	*return
	
*if dieroll = 86
	*set passenger_destination planet86_name
	*set passenger_quadrant planet86_quadrant
	*return
	
*if dieroll = 87
	*set passenger_destination planet87_name
	*set passenger_quadrant planet87_quadrant
	*return
	
*if dieroll = 88
	*set passenger_destination planet88_name
	*set passenger_quadrant planet88_quadrant
	*return
	
*if dieroll = 89
	*set passenger_destination planet89_name
	*set passenger_quadrant planet89_quadrant
	*return

*if dieroll = 90
	*set passenger_destination planet90_name
	*set passenger_quadrant planet90_quadrant
	*return

*if dieroll = 91
	*set passenger_destination planet91_name
	*set passenger_quadrant planet91_quadrant
	*return
	
*if dieroll = 92
	*set passenger_destination planet92_name
	*set passenger_quadrant planet92_quadrant
	*return
	
*if dieroll = 93
	*set passenger_destination planet93_name
	*set passenger_quadrant planet93_quadrant
	*return
	
*if dieroll = 94
	*set passenger_destination planet94_name
	*set passenger_quadrant planet94_quadrant
	*return
	
*if dieroll = 95
	*set passenger_destination planet95_name
	*set passenger_quadrant planet95_quadrant
	*return
	
*if dieroll = 96
	*set passenger_destination planet96_name
	*set passenger_quadrant planet96_quadrant
	*return
	
*if dieroll = 97
	*set passenger_destination planet97_name
	*set passenger_quadrant planet97_quadrant
	*return
	
*if dieroll = 98
	*set passenger_destination planet98_name
	*set passenger_quadrant planet98_quadrant
	*return
	
*if dieroll = 99
	*set passenger_destination planet99_name
	*set passenger_quadrant planet99_quadrant
	*return

*if dieroll = 100
	*set passenger_destination planet100_name
	*set passenger_quadrant planet100_quadrant
	*return
	
*if dieroll = 101
	*set passenger_destination planet101_name
	*set passenger_quadrant planet101_quadrant
	*return

*if dieroll = 102
	*set passenger_destination planet102_name
	*set passenger_quadrant planet102_quadrant
	*return
	
*if dieroll = 103
	*set passenger_destination planet103_name
	*set passenger_quadrant planet103_quadrant
	*return
	
*if dieroll = 104
	*set passenger_destination planet104_name
	*set passenger_quadrant planet104_quadrant
	*return
	
*if dieroll = 105
	*set passenger_destination planet105_name
	*set passenger_quadrant planet105_quadrant
	*return
	
*if dieroll = 106
	*set passenger_destination planet106_name
	*set passenger_quadrant planet106_quadrant
	*return
	
*if dieroll = 107
	*set passenger_destination planet107_name
	*set passenger_quadrant planet107_quadrant
	*return
	
*if dieroll = 108
	*set passenger_destination planet108_name
	*set passenger_quadrant planet108_quadrant
	*return
	
*if dieroll = 109
	*set passenger_destination planet109_name
	*set passenger_quadrant planet109_quadrant
	*return

*if dieroll = 110
	*set passenger_destination planet110_name
	*set passenger_quadrant planet110_quadrant
	*return
	
*if dieroll = 111
	*set passenger_destination planet111_name
	*set passenger_quadrant planet111_quadrant
	*return
	
*if dieroll = 112
	*set passenger_destination planet112_name
	*set passenger_quadrant planet112_quadrant
	*return
	
*if dieroll = 113
	*set passenger_destination planet113_name
	*set passenger_quadrant planet113_quadrant
	*return
	
*if dieroll = 114
	*set passenger_destination planet114_name
	*set passenger_quadrant planet114_quadrant
	*return
	
*if dieroll = 115
	*set passenger_destination planet115_name
	*set passenger_quadrant planet115_quadrant
	*return
	
*if dieroll = 116
	*set passenger_destination planet116_name
	*set passenger_quadrant planet116_quadrant
	*return
	
*if dieroll = 117
	*set passenger_destination planet117_name
	*set passenger_quadrant planet117_quadrant
	*return
	
*if dieroll = 118
	*set passenger_destination planet118_name
	*set passenger_quadrant planet118_quadrant
	*return
	
*if dieroll = 119
	*set passenger_destination planet119_name
	*set passenger_quadrant planet119_quadrant
	*return
	
*if dieroll = 120
	*set passenger_destination planet120_name
	*set passenger_quadrant planet20_quadrant
	*return
	
*if dieroll = 121
	*set passenger_destination planet121_name
	*set passenger_quadrant planet121_quadrant
	*return
	
*if dieroll = 122
	*set passenger_destination planet122_name
	*set passenger_quadrant planet122_quadrant
	*return
	
*if dieroll = 123
	*set passenger_destination planet123_name
	*set passenger_quadrant planet123_quadrant
	*return
	
*if dieroll = 124
	*set passenger_destination planet124_name
	*set passenger_quadrant planet124_quadrant
	*return
	
*if dieroll = 125
	*set passenger_destination planet125_name
	*set passenger_quadrant planet5_quadrant
	*return
	
*if dieroll = 126
	*set passenger_destination planet126_name
	*set passenger_quadrant planet6_quadrant
	*return
	
*if dieroll = 127
	*set passenger_destination planet127_name
	*set passenger_quadrant planet127_quadrant
	*return
	
*if dieroll = 128
	*set passenger_destination planet128_name
	*set passenger_quadrant planet8_quadrant
	*return
	
*if dieroll = 129
	*set passenger_destination planet129_name
	*set passenger_quadrant planet129_quadrant
	*return
	
*if dieroll = 130
	*set passenger_destination planet130_name
	*set passenger_quadrant planet130_quadrant
	*return
	
*if dieroll = 131
	*set passenger_destination planet131_name
	*set passenger_quadrant planet131_quadrant
	*return
	
*if dieroll = 132
	*set passenger_destination planet132_name
	*set passenger_quadrant planet132_quadrant
	*return
	
*if dieroll = 133
	*set passenger_destination planet133_name
	*set passenger_quadrant planet133_quadrant
	*return
	
*if dieroll = 134
	*set passenger_destination planet134_name
	*set passenger_quadrant planet134_quadrant
	*return
	
*if dieroll = 135
	*set passenger_destination planet135_name
	*set passenger_quadrant planet135_quadrant
	*return
	
*if dieroll = 136
	*set passenger_destination planet136_name
	*set passenger_quadrant planet136_quadrant
	*return
	
*if dieroll = 137
	*set passenger_destination planet137_name
	*set passenger_quadrant planet137_quadrant
	*return
	
*if dieroll = 138
	*set passenger_destination planet138_name
	*set passenger_quadrant planet138_quadrant
	*return
	
*if dieroll = 139
	*set passenger_destination planet139_name
	*set passenger_quadrant planet139_quadrant
	*return
	
*if dieroll = 140
	*set passenger_destination planet140_name
	*set passenger_quadrant planet140_quadrant
	*return
	
*if dieroll = 141
	*set passenger_destination planet141_name
	*set passenger_quadrant planet141_quadrant
	*return
	
*if dieroll = 142
	*set passenger_destination planet142_name
	*set passenger_quadrant planet142_quadrant
	*return
	
*if dieroll = 143
	*set passenger_destination planet143_name
	*set passenger_quadrant planet143_quadrant
	*return
	
*if dieroll = 144
	*set passenger_destination planet144_name
	*set passenger_quadrant planet144_quadrant
	*return
	
*if dieroll = 145
	*set passenger_destination planet145_name
	*set passenger_quadrant planet145_quadrant
	*return
	
*if dieroll = 146
	*set passenger_destination planet146_name
	*set passenger_quadrant planet146_quadrant
	*return
	
*if dieroll = 147
	*set passenger_destination planet147_name
	*set passenger_quadrant planet147_quadrant
	*return
	
*if dieroll = 148
	*set passenger_destination planet148_name
	*set passenger_quadrant planet148_quadrant
	*return
	
*if dieroll = 149
	*set passenger_destination planet149_name
	*set passenger_quadrant planet149_quadrant
	*return
	
*if dieroll = 150
	*set passenger_destination planet150_name
	*set passenger_quadrant planet150_quadrant
	*return
	
*label repair

Approaching a gleaming kiosk, you uplink your public data key and then eyescroll through the menus until the screen reads:

*if repair_cost = 0
	*if sound
		*sound warningbleep.wav
	🛠️ [i]${ship_name} does not require repairs at this time[/i]
	
	*page_break 😌
	*goto smart

🛠️ [i]${ship_name} projected repair cost: ${repair_cost} intergalactic credits[/i]

[i]Repair now, Y/N?[/i]

*fake_choice
	*selectable_if (credits >= repair_cost) #Yes
		*set credits - repair_cost
	#No
		Instead of wasting time repairing your functioning ship, you decide it is better to explore other areas of the starbase.
		
		*goto smart
	
After palming over your payment authorization key, the screen blinks and then displays a new message:

🛠️ [i]Repair in progress.  Thank you for choosing Intergalactic Ship Service for your engineering needs.[/i]

Nodding to yourself, you turn around to explore the starbase, confident in the knowledge that your ship will be fully repaired by the time you leave.

*page_break 😌

*set ship_hp 100

*goto smart

*label cargo_clear

*set resource1_carrying 0
*set resource2_carrying 0
*set resource3_carrying 0
*set resource4_carrying 0
*set resource5_carrying 0
*set resource6_carrying 0
*set resource7_carrying 0
*set resource8_carrying 0
*set resource9_carrying 0
*set resource10_carrying 0
*set resource11_carrying 0

*return