Server-authoritative Godot 4.6 strategy game. Includes the headless WebSocket game server, the browser client, and Nix packaging (server and web-export derivations plus a NixOS module) for deployment.
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
[gd_resource type="Resource" script_class="Government" format=3 uid="uid://df6vqrc1yiepv"]
|
|
|
|
[ext_resource type="Script" uid="uid://c5vv2vs1ugcv" path="res://data/government.gd" id="1_gov"]
|
|
[ext_resource type="Script" uid="uid://c8lu7oofc64y" path="res://data/building_effect.gd" id="2_be"]
|
|
|
|
[sub_resource type="Resource" id="Effect_republic_gdp"]
|
|
script = ExtResource("2_be")
|
|
stat = "gdp"
|
|
base_value = 0.05
|
|
|
|
[sub_resource type="Resource" id="Effect_republic_income"]
|
|
script = ExtResource("2_be")
|
|
stat = "budget_income"
|
|
base_value = 0.1
|
|
|
|
[sub_resource type="Resource" id="Effect_republic_research"]
|
|
script = ExtResource("2_be")
|
|
stat = "research"
|
|
base_value = 1.0
|
|
|
|
[resource]
|
|
script = ExtResource("1_gov")
|
|
name = "Republic"
|
|
description = "Rule by elected representatives. A balanced government that spreads its support across the economy, the treasury and the sciences."
|
|
cost_gdp_fraction = 0.02
|
|
effects = Array[ExtResource("2_be")]([SubResource("Effect_republic_gdp"), SubResource("Effect_republic_income"), SubResource("Effect_republic_research")])
|