basic factory and capitol scenes

This commit is contained in:
Victor Turgeon
2023-06-10 18:36:39 -04:00
parent b5201b3c16
commit fb1d8ea190
12 changed files with 240 additions and 45 deletions

View File

@@ -5,5 +5,5 @@ public partial class arms_building : base_building
[Export]
public int Megaton { get; set; } = 1;
[Export]
public int Approval { get; set; } = -1;
public int ApprovalDrop { get; set; } = 1;
}

View File

@@ -9,7 +9,7 @@ public partial class base_building : Node3D
[Export]
public string DisplayName { get; set; } = "base_building";
[Export]
public int KashCost { get; set; } = -1;
public int KashCost { get; set; } = 1;
public bool IsPlaceable
{
get

View File

@@ -0,0 +1,56 @@
[gd_scene load_steps=4 format=3 uid="uid://djl6qrak0t8km"]
[ext_resource type="Script" path="res://buildings/kash_building.cs" id="1_2i177"]
[ext_resource type="PackedScene" uid="uid://dfrtcsm4jq4q2" path="res://assets/meshes/capitol.tscn" id="2_k872b"]
[ext_resource type="PackedScene" uid="uid://m3lrwoup4i4r" path="res://buildings/grass_block.tscn" id="3_nf4at"]
[node name="capitol" type="Node3D" node_paths=PackedStringArray("BlocksNode")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.1, 0)
script = ExtResource("1_2i177")
KashGenPerSec = 2
BlocksNode = NodePath("blocks")
DisplayName = "Capitol"
KashCost = 69
[node name="mesh" parent="." instance=ExtResource("2_k872b")]
transform = Transform3D(0.0261279, 0, 0, 0, 0.042186, 0, 0, 0, 0.0268019, -0.878754, 0, 0.342177)
[node name="blocks" type="Node3D" parent="."]
[node name="grass_block" parent="blocks" instance=ExtResource("3_nf4at")]
[node name="grass_block2" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, -2)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block3" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, -2)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block4" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block5" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, -4)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block6" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, -4)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block7" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block8" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, -6)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block9" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, -6)
_ray = NodePath("../grass_block/RayCast3D")
[node name="grass_block10" parent="blocks" node_paths=PackedStringArray("_ray") instance=ExtResource("3_nf4at")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -6)
_ray = NodePath("../grass_block/RayCast3D")

View File

@@ -0,0 +1,25 @@
[gd_scene load_steps=4 format=3 uid="uid://2pw0p13lcklv"]
[ext_resource type="Script" path="res://buildings/kash_building.cs" id="1_bcr1q"]
[ext_resource type="PackedScene" uid="uid://bbxjweewwjrd4" path="res://assets/meshes/factory.tscn" id="2_st133"]
[ext_resource type="PackedScene" uid="uid://m3lrwoup4i4r" path="res://buildings/grass_block.tscn" id="3_4p2cy"]
[node name="factory" type="Node3D" node_paths=PackedStringArray("BlocksNode")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.1, 0)
script = ExtResource("1_bcr1q")
BlocksNode = NodePath("blocks")
DisplayName = "Factory"
KashCost = 6
[node name="mesh" parent="." instance=ExtResource("2_st133")]
transform = Transform3D(2.10296, 0, 0, 0, 2.10008, 0, 1.42109e-14, 0, 2.24669, -1.12056e-08, 0, 0.128178)
[node name="blocks" type="Node3D" parent="."]
[node name="grass_block" parent="blocks" instance=ExtResource("3_4p2cy")]
[node name="grass_block2" parent="blocks" instance=ExtResource("3_4p2cy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, -1.74846e-07)
[node name="grass_block3" parent="blocks" instance=ExtResource("3_4p2cy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 1.74846e-07)

View File

@@ -3,5 +3,5 @@ using Godot;
public partial class propaganda_building : base_building
{
[Export]
public int Approval { get; set; } = 1;
public int ApprovalGain { get; set; } = 1;
}