File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ zoom = Vector2(0.49, 0.49)
1616
1717[node name ="Root" parent ="." instance =ExtResource ("2_k2vro" )]
1818unique_name_in_owner = true
19-
2019position = Vector2 (0 , 633 )
2120scale = Vector2 (2 , 2 )
2221
@@ -25,7 +24,6 @@ offset_left = -1112.0
2524offset_top = -606.0
2625offset_right = -977.0
2726offset_bottom = -566.0
28-
2927script = ExtResource ("3_yikaj" )
3028
3129[node name ="Label" type ="Label" parent ="PanelContainer" ]
Original file line number Diff line number Diff line change 11extends Node2D
22
33@export var tree_seed :int
4- @export var grow_chance = 0.94
5- @export var split_chance = 0.05
6- @export var timer = 0.25
4+ @export_range (0.0 , 1.0 , 0.01 ) var grow_chance : float = 0.94
5+ @export_range (0.0 , 1.0 , 0.01 ) var split_chance = 0.05
6+ @export_range (0.0 , 1.0 , 0.01 ) var death_chance = 0.01
7+ @export_range (0.0 , 2.0 , 0.1 ) var timer : float = 0.2
8+
79@export var manual :bool = false
810
911var leaders = []
@@ -66,7 +68,7 @@ func _process(delta: float) -> void:
6668 removeList .append (leader )
6769 addList .append (growth )
6870
69- else :
71+ if randomValue < split_chance + grow_chance + death_chance :
7072 removeList .append (leader )
7173
7274 for oldLeader in removeList :
You can’t perform that action at this time.
0 commit comments