-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Mission resource type * Add forfeited state, and validate transitions * WIP checking and updating mission status * WIP * Connect MissionController to Player * Docs for `MissionController` * Add planets to StarSystem * Add planets_with_systems lookup from galaxy * Logic to create a random delivery mission * WIP mission computer window * Connect missions button in landing screen * Change planet -> star system lookup into a weak ref, like systems in galaxy * No need for `galaxy` parameter to `create_random_delivery_mission` * Enable missions on some more planets * Missions window * Add cargo to hold when starting mission too * Fix out of bounds on pick_random_special() * Fix money display * %i totally screws things up, whoops * Set tooltip text when button is enabled * Fix mission description layout * WIP debugging why mission success isn't working * Rename "missions window" to "mission computer window" * In-game mission log UI * Fix `toggle_mission_log` action * Change diplomatic "pouches" to "parcel" * Remove mission cargo on failure * Fix mission success causing mission failure * Memoize generated missions on PlanetInstance So they don't regenerate every time the player lands. * Ensure `MissionController` is saved * Convenience functions for serializing dictionaries with resource keys * Fix mission loading and saving * Rush delivery mission type * Fail missions past their deadline * Re-check mission failure when calendar updates * Add to message log when missions succeed, fail, etc. * Note the limitation of _randomly_walk_systems * Increase deposit of rush deliveries too * Add a couple more special commodities
- Loading branch information
1 parent
b622c0c
commit d284070
Showing
42 changed files
with
1,064 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
[gd_resource type="Resource" script_class="StarSystem" load_steps=3 format=3 uid="uid://nbm8is7uln37"] | ||
[gd_resource type="Resource" script_class="StarSystem" load_steps=4 format=3 uid="uid://nbm8is7uln37"] | ||
|
||
[ext_resource type="Resource" uid="uid://b764gd8q3il6s" path="res://mechanics/economy/currencies/credits.tres" id="1_axqux"] | ||
[ext_resource type="Script" path="res://galaxy/star_system/star_system.gd" id="1_rf1b6"] | ||
[ext_resource type="Resource" uid="uid://dd61sms23ju2r" path="res://planet/planets/pyra.tres" id="1_uqygg"] | ||
|
||
[resource] | ||
script = ExtResource("1_rf1b6") | ||
name = &"Helios" | ||
connections = Array[StringName]([&"Thalassa", &"Barnard\'s Star"]) | ||
position = Vector3(-1.3, 2.08165e-12, 1.7) | ||
scene_path = "res://galaxy/star_system/scenes/helios.tscn" | ||
planets = Array[Resource("res://planet/planet.gd")]([ExtResource("1_uqygg")]) | ||
refueling_money = ExtResource("1_axqux") | ||
refueling_relative_price = 0.734 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
mechanics/economy/commodities/specials/diplomatic_parcels.tres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[gd_resource type="Resource" script_class="Commodity" load_steps=2 format=3 uid="uid://cqhr7ier7ncx7"] | ||
|
||
[ext_resource type="Script" path="res://mechanics/economy/commodity.gd" id="1_fk470"] | ||
|
||
[resource] | ||
script = ExtResource("1_fk470") | ||
mass = 1.0 | ||
volume = 1.0 | ||
base_price_in_credits = 1000.0 | ||
name = "Diplomatic Parcels" |
10 changes: 10 additions & 0 deletions
10
mechanics/economy/commodities/specials/technology_prototypes.tres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[gd_resource type="Resource" script_class="Commodity" load_steps=2 format=3 uid="uid://belatvs1ea3lm"] | ||
|
||
[ext_resource type="Script" path="res://mechanics/economy/commodity.gd" id="1_krgm1"] | ||
|
||
[resource] | ||
script = ExtResource("1_krgm1") | ||
mass = 0.1 | ||
volume = 1.5 | ||
base_price_in_credits = 2000.0 | ||
name = "Technology Prototypes" |
10 changes: 10 additions & 0 deletions
10
mechanics/economy/commodities/specials/vip_passengers.tres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[gd_resource type="Resource" script_class="Commodity" load_steps=2 format=3 uid="uid://ccg6oqaxbii3l"] | ||
|
||
[ext_resource type="Script" path="res://mechanics/economy/commodity.gd" id="1_bg7su"] | ||
|
||
[resource] | ||
script = ExtResource("1_bg7su") | ||
mass = 0.07 | ||
volume = 1.0 | ||
base_price_in_credits = 1000.0 | ||
name = "VIP Passengers" |
Oops, something went wrong.