Added broken state to hydroponic station and fixed a bug with all the brokens tates where they wouldn't heal the object back up on repair
This commit is contained in:
1 parent
6e6da14975
commit
ef4b8bd7cf
10 files changed
+105
-7
No files matched your search
@@ -1,8 +1,11 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scripts/hydroponics_station/hydroponics_station.gd" type="Script" id=2]
|
||||
[ext_resource path="res://scenes/coin_machine.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scenes/status_light.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://scenes/item_dump.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://item_types/repair_kit.tres" type="Resource" id=6]
|
||||
|
||||
[sub_resource type="CylinderMesh" id=1]
|
||||
height = 0.936
|
||||
@@ -13,6 +16,7 @@ points = PoolVector3Array( -0.0608763, 0.449247, 0.974783, -0.0608763, -0.464612
|
||||
|
||||
[node name="hydroponics_station" type="Spatial"]
|
||||
script = ExtResource( 2 )
|
||||
start_broken = true
|
||||
|
||||
[node name="MeshInstance" type="MeshInstance" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.372095, 0 )
|
||||
@@ -38,6 +42,16 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.991012, 0 )
|
||||
[node name="grow_timer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[node name="status_light" parent="." instance=ExtResource( 4 )]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.0767, -0.147681, 0 )
|
||||
|
||||
[node name="item_dump" parent="." instance=ExtResource( 5 )]
|
||||
unique_name_in_owner = true
|
||||
item_type_0 = ExtResource( 6 )
|
||||
item_count_0 = 1
|
||||
|
||||
[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]
|
||||
[connection signal="item_changed" from="item_holder" to="." method="_on_item_holder_item_changed"]
|
||||
[connection signal="timeout" from="grow_timer" to="." method="_on_grow_timer_timeout"]
|
||||
[connection signal="item_dump_completed" from="item_dump" to="." method="_on_item_dump_item_dump_completed"]
|
||||
Reference in new issue
Block a user