Skip to content

Commit 9ebd087

Browse files
committed
Small cleanup
1 parent b61b399 commit 9ebd087

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

addons/dialogic/Modules/Choice/subsystem_choices.gd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ func _on_choice_selected(choice_info := {}) -> void:
244244
dialogic.handle_event(choice_info.event_index + 1)
245245

246246

247-
248247
## Returns the indexes of the choice events related to the current question.
249248
func get_current_choice_indexes() -> Array:
250249
var choices := []

addons/dialogic/Modules/Condition/event_condition.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ extends DialogicEvent
77
enum ConditionTypes {IF, ELIF, ELSE}
88

99
### Settings
10-
## condition type (see [ConditionTypes]). Defaults to if.
10+
11+
## Condition type (see [ConditionTypes]). Defaults to if.
1112
var condition_type := ConditionTypes.IF
1213
## The condition as a string. Will be executed as an Expression.
1314
var condition := ""
@@ -25,7 +26,6 @@ func _execute() -> void:
2526
if condition.is_empty(): condition = "true"
2627

2728
var result: bool = dialogic.Expressions.execute_condition(condition)
28-
printt(dialogic.current_event_idx, "CONDITION ", condition, get_end_branch_index())
2929
if not result:
3030
dialogic.current_event_idx = get_end_branch_index()
3131

addons/dialogic/Modules/Core/event_end_branch.gd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ extends DialogicEvent
1010
################################################################################
1111

1212
func _execute() -> void:
13-
printt(dialogic.current_event_idx, "END BRANCH jumping to", find_next_index())
1413
dialogic.current_event_idx = find_next_index()-1
1514
finish()
1615

@@ -20,7 +19,6 @@ func _execute() -> void:
2019
## - is not a branching event (unless it is a branch starter)
2120
func find_next_index() -> int:
2221
var idx: int = dialogic.current_event_idx
23-
2422
while true:
2523
idx += 1
2624
var event: DialogicEvent = dialogic.current_timeline.get_event(idx)
@@ -40,8 +38,7 @@ func find_next_index() -> int:
4038

4139

4240
func get_opening_index() -> int:
43-
var own_index := dialogic.current_timeline_events.find(self)
44-
var index: int = own_index
41+
var index: int = dialogic.current_timeline_events.find(self)
4542
while true:
4643
index -= 1
4744
if index < 0:

addons/dialogic/Resources/event.gd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,13 @@ func get_end_branch_index() -> int:
171171
var event: DialogicEvent = dialogic.current_timeline.get_event(idx)
172172
if not event:
173173
break
174-
175174
if event.can_contain_events:
176175
idx = event.get_end_branch_index()
177-
178176
if event is DialogicEndBranchEvent:
179177
break
180-
181178
return idx
182179

180+
183181
#endregion
184182

185183

0 commit comments

Comments
 (0)