X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
083df03
Lua: add path value to FS.ReadDirectory
sturnclaw Jun 20, 2025
5e6fda9
Lua: properly document Rand intervals
sturnclaw Jun 20, 2025
4fd3161
ui: fix ui.Number not displaying sign on thousands-place numbers
sturnclaw Jul 26, 2025
90e499a
Document SystemBody TODO
sturnclaw Jun 11, 2025
3ec4a77
Expose StarSystem.seed to Lua
sturnclaw Jun 11, 2025
c2787d8
economy: tweak commodity prices
sturnclaw Jun 20, 2025
a995f57
economy: add Conditions, data-driven named boolean tags
sturnclaw Jun 20, 2025
77b5f63
economy: add Industries, starport economic producers
sturnclaw Jun 20, 2025
ce6ab2b
economy: add condition and industry definitions
sturnclaw Jun 20, 2025
efbc97e
economy: add industry-based starport economies
sturnclaw Jun 20, 2025
c4e93b2
economy: add economic simulation using random walks
sturnclaw Jul 26, 2025
0e2efa1
economy: replace old economy implementation
sturnclaw Jul 29, 2025
c67a2d3
Update commodity price debug tab
sturnclaw Jul 29, 2025
707edd3
Update NewsEventCommodity for new Economy code
sturnclaw Jul 29, 2025
df960c8
economy: remove remaining old-econ code
sturnclaw Jul 29, 2025
4e5657e
CommodityMarket: remove demand, get pricemod from Economy
sturnclaw Jul 30, 2025
c510d35
economy: add industries to produce medicines/precious_metals
sturnclaw Jul 30, 2025
98ab5b5
Remove SpaceStation:GetCommodityDemand
sturnclaw Aug 4, 2025
2f2e66c
economy: rename ConditionDef.conditions -> required
sturnclaw Nov 17, 2025
f36dd9c
Update NaturalDocs options to 2.3.1
sturnclaw Nov 17, 2025
1f203c7
Document FileSystem:ReadDirectory return values
sturnclaw Nov 17, 2025
8778cf2
economy: Document Conditions.lua
sturnclaw Nov 17, 2025
150ce76
utils: to_array, keys_to_array
sturnclaw Nov 19, 2025
88a6438
Economy: document C++-side commodity and economy datastructures
sturnclaw Nov 19, 2025
f2e811f
Economy: document Economy.lua
sturnclaw Nov 19, 2025
b67de8c
Update copyright headers for new year
sturnclaw Jan 3, 2026
db7e048
Economy: add the Chemicals commodity
sturnclaw Jan 4, 2026
608b63e
Fix condition file path missing data:// prefix
sturnclaw Jan 4, 2026
0eafcb9
Rebalance and expand station industries to include chemical production
sturnclaw Jan 4, 2026
bf78fe6
Document Industry.lua
sturnclaw Jan 4, 2026
ef9a631
Minor spelling fixes
sturnclaw Jan 4, 2026
f80e254
Economy: remove unused industry workforce value
sturnclaw Jan 5, 2026
c52556e
Economy: add follow-on industry construction
sturnclaw Jan 5, 2026
06714f6
Commodity: add GetProperName() accessor for capitalized commodity names
sturnclaw Jan 5, 2026
012f185
PiGui: remove useless forwarding wrapper around sameLine()
sturnclaw Jan 5, 2026
62029ec
ui: improve bookmark sidebar
sturnclaw Jan 5, 2026
0c023a8
Economy: apply system-wide price modifier to station prices
sturnclaw Jan 5, 2026
b43833c
ui: update system-econ-view for new economy
sturnclaw Jan 5, 2026
578b0d5
Economy: rebalance commodity prices slightly
sturnclaw Jan 5, 2026
9973999
Apply documentation review feedback
sturnclaw Jan 5, 2026
fa32310
Add lui.VIEW_DESTINATION
sturnclaw Jan 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/naturaldocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
"mono-runtime"
"unzip"
nd-src: >
"https://www.naturaldocs.org/download/natural_docs/2.2/Natural_Docs_2.2.zip"
"https://naturaldocs.org/download/natural_docs/2.3.1/Natural_Docs_2.3.1.zip"

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
run: |
mkdir -p docs
unzip nd.zip
mono Natural\ Docs/NaturalDocs.exe -i . -o HTML docs -p nd
mono Natural\ Docs/NaturalDocs.exe -p nd

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ debian/pioneer*/
autom4te.cache/
codedoc/
nd/Data/
nd/Working Data/
doxygen/html
doxygen/latex
/release
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ find_program(NATURALDOCS NAMES naturaldocs)
if (NATURALDOCS)
add_custom_target(codedoc
${CMAKE_COMMAND} -E make_directory codedoc
COMMAND naturaldocs -i src/ -i data/libs/ -xi src/data/ -o HTML codedoc/ -p nd/ -do -ro -s Default Local
COMMAND naturaldocs -p nd/ -s Default
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
endif()

Expand Down
2 changes: 1 addition & 1 deletion data/economy/commodities/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"l10n_key": "RUBBISH",
"inputs": [],
"producer": "ALL",
"price": -0.7
"price": -16
}
}
}
13 changes: 9 additions & 4 deletions data/economy/commodities/high_tech.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"//TODO": "assign these commodities to be produced by a high-tech economy instead of just INDUSTRIAL",
"commodities": {
"medicines": {
"l10n_key": "MEDICINES",
"inputs": [ "carbon_ore", [ "computers", 0.4 ] ],
"producer": "industrial",
"price": 563
"price": 712
},
"chemicals": {
"l10n_key": "CHEMICALS",
"inputs": [ [ "grain", 1 ], "industrial_machinery" ],
"producer": "industrial",
"price": 124
},
"computers": {
"l10n_key": "COMPUTERS",
Expand All @@ -23,7 +28,7 @@
"l10n_key": "INDUSTRIAL_MACHINERY",
"inputs": [ "metal_alloys", "robots" ],
"producer": "industrial",
"price": 124
"price": 358
},
"air_processors": {
"l10n_key": "AIR_PROCESSORS",
Expand All @@ -35,7 +40,7 @@
"l10n_key": "BATTLE_WEAPONS",
"inputs": [ "metal_alloys", "industrial_machinery" ],
"producer": "industrial",
"price": 607,
"price": 1285,
"default_legality": [ 1, 3 ]
},
"nerve_gas": {
Expand Down
10 changes: 5 additions & 5 deletions data/economy/commodities/industrial.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"l10n_key": "METAL_ALLOYS",
"inputs": [ "metal_ore", "industrial_machinery" ],
"producer": "industrial",
"price": 43
"price": 75
},
"plastics": {
"l10n_key": "PLASTICS",
Expand All @@ -16,13 +16,13 @@
"l10n_key": "TEXTILES",
"inputs": [ "plastics" ],
"producer": "industrial",
"price": 65
"price": 91
},
"fertilizer": {
"l10n_key": "FERTILIZER",
"inputs": [ "carbon_ore" ],
"producer": "industrial",
"price": 15
"price": 25
},
"consumer_goods": {
"l10n_key": "CONSUMER_GOODS",
Expand All @@ -34,7 +34,7 @@
"l10n_key": "FARM_MACHINERY",
"inputs": [ "metal_alloys", "robots" ],
"producer": "industrial",
"price": 80
"price": 419
},
"mining_machinery": {
"l10n_key": "MINING_MACHINERY",
Expand Down Expand Up @@ -66,7 +66,7 @@
"l10n_key": "RADIOACTIVES",
"inputs": [ ],
"producer": "industrial",
"price": -4.4
"price": -37
}
}
}
6 changes: 3 additions & 3 deletions data/economy/commodities/mining.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
"l10n_key": "LIQUID_OXYGEN",
"inputs": [ "water", "industrial_machinery" ],
"producer": "mining",
"price": 9.8
"price": 19.8
},
"water": {
"l10n_key": "WATER",
"inputs": [ "mining_machinery" ],
"producer": "mining",
"price": 1.2
"price": 13.5
},
"carbon_ore": {
"l10n_key": "CARBON_ORE",
"inputs": [ "mining_machinery" ],
"producer": "mining",
"price": 7
"price": 21
},
"metal_ore": {
"l10n_key": "METAL_ORE",
Expand Down
78 changes: 78 additions & 0 deletions data/economy/conditions/basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"lawless": {
"context": "system",
"required": [ "lawlessness > 0.8" ]
},
"zero_g" : {
"context": "planet",
"required": [ "gravity <= 3.3" ]
},
"low_gravity": {
"context": "planet",
"required": [ "gravity > 3.3" ]
},
"norm_gravity": {
"context": "planet",
"required": [ "gravity > 6.0" ]
},
"atmos_airless": {
"context": "planet",
"required": [ "atmosDensity < 0.1" ]
},
"atmos_tenuous": {
"context": "planet",
"required": [ "atmosDensity >= 0.1", "atmosDensity < 1.0" ]
},
"atmos_unbreathable": {
"context": "planet",
"required": [ "atmosDensity >= 1.0", "atmosOxidizing <= 0.7" ]
},
"atmos_breathable": {
"context": "planet",
"required": [ "atmosDensity >= 1.0", "atmosOxidizing > 0.7" ]
},
"gas_giant_o2": {
"context": "planet",
"required": [ "type = PLANET_GAS_GIANT", "atmosOxidizing > 0.1" ]
},
"ice_abundant": {
"context": "planet",
"required": [ "volatileIces > 0.6" ]
},
"ice_moderate": {
"context": "planet",
"required": [ "volatileIces > 0.3" ]
},
"carbon_ores": {
"context": "planet",
"required": [ "metallicity < 0.7", "volatileIces < 0.3" ]
},
"carbon_ores_rich": {
"context": "planet",
"required": [ "metallicity < 0.4", "volatileIces < 0.3", "random > 0.3" ]
},
"metal_abundant": {
"context": "planet",
"required": [ "metallicity > 0.7" ]
},
"metal_moderate": {
"context": "planet",
"required": [ "metallicity > 0.4" ]
},
"rare_metals": {
"context": "planet",
"required": [ "metallicity > 0.4", "random > 0.6" ]
},
"biosphere_basic": {
"context": "planet",
"required": [ "life > 0.3", "atmosDensity > 0.7" ]
},
"biosphere_rich": {
"context": "planet",
"required": [ "life > 0.6", "atmosDensity > 0.7" ]
},
"rare_microbial_life": {
"context": "planet",
"required": [ "life > 0.1", "atmosDensity > 0.1", "random > 0.7" ]
}
}
73 changes: 73 additions & 0 deletions data/economy/industries/agricultural.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"station_aquaponics": {
"l10n_key": "ZERO_G_AQUAPONICS",
"conditions_any": [ "starport_orbital", "zero_g" ],
"inputs": {
"farm_machinery": 1,
"fertilizer": 2,
"air_processors": 1,
"water": 4
},
"outputs": {
"fruit_and_veg": 3,
"grain": 3
},
"modifiers": {
"rare_microbial_life": [ "i:fertilizer-1", "o:*+1" ]
},
"build_next": [
{ "id": "drug_lab", "chance": 0.8 },
{ "id": "distillery", "chance": "0.4" }
]
},
"surface_aquaponics": {
"l10n_key": "TERRESTRIAL_AQUAPONICS",
"context": "surface",
"conditions": [ "planet_terrestrial", "!atmos_breathable" ],
"inputs": {
"farm_machinery": 2,
"fertilizer": 3,
"air_processors": 1,
"water": 5
},
"outputs": {
"fruit_and_veg": 4,
"grain": 5
},
"modifiers": {
"rare_microbial_life": [ "i:fertilizer-1", "o:*+1" ]
},
"build_next": [
{ "id": "distillery", "chance": 0.3 },
{ "id": "chemical_refinery" },
{ "id": "drug_lab" }
]
},
"outdoor_farm": {
"l10n_key": "FARMING",
"context": "surface",
"conditions": [ "planet_terrestrial", "biosphere_basic", "norm_gravity" ],
"inputs": {
"farm_machinery": 3,
"air_processors": 3,
"consumer_goods": 4
},
"outputs": {
"fruit_and_veg": 5,
"grain": 6,
"animal_meat": 4,
"fertilizer": 3,
"live_animals": 3
},
"modifiers": {
"lawless": [ "o:slaves+3" ],
"biosphere_rich": [ "o:*+1", "i:farm_machinery+1" ],
"atmos_breathable": [ "i:air_processors-3" ]
},
"build_next": [
{ "id": "textile_mill" },
{ "id": "civil_industry" },
{ "id": "distillery", "chance": 0.8 }
]
}
}
Loading
X Tutup