Skip to content

Commit 2abb8e0

Browse files
Small fixes before alpha 14 (#2241)
* Fix set Variable event * Make sure manual advance state keys have a fallback To avoid errors on load. * Update version to alpha 14
1 parent 1b6abf2 commit 2abb8e0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

addons/dialogic/Modules/Text/manual_advance.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func _init() -> void:
4141
var state_info := DialogicUtil.autoload().current_state_info
4242
var manual_advance: Dictionary = state_info[STATE_INFO_KEY]
4343

44-
disabled_until_next_event = manual_advance[DISABLED_UNTIL_NEXT_EVENT_STATE_KEY]
45-
system_enabled = manual_advance[ENABLED_STATE_KEY]
44+
disabled_until_next_event = manual_advance.get(DISABLED_UNTIL_NEXT_EVENT_STATE_KEY, disabled_until_next_event)
45+
system_enabled = manual_advance.get(ENABLED_STATE_KEY, system_enabled)
4646

4747
else:
4848
DialogicUtil.autoload().current_state_info[STATE_INFO_KEY] = {

addons/dialogic/Modules/Variable/event_variable.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func _execute() -> void:
111111
Operations.DIVIDE:
112112
result = original_value / interpreted_value
113113

114-
dialogic.VAR.set_variable(name, interpreted_value)
114+
dialogic.VAR.set_variable(name, result)
115115
dialogic.VAR.variable_was_set.emit(
116116
{
117117
'variable' : name,

addons/dialogic/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ name="Dialogic"
44
description="Create dialogs, characters and scenes to display conversations in your Godot games.
55
https://github.com/dialogic-godot/dialogic"
66
author="Emi, Jowan Spooner, Exelia, and more!"
7-
version="2.0-Alpha-13 (Godot 4.2+)"
7+
version="2.0-Alpha-14 (Godot 4.2+)"
88
script="plugin.gd"

0 commit comments

Comments
 (0)