Skip to content

Commit

Permalink
Merge pull request #207 from theludovyc/fix#206_testSay_replace_failed
Browse files Browse the repository at this point in the history
Fix #206 replace now works with all types
  • Loading branch information
Jeremi360 authored Apr 5, 2023
2 parents aeb9c21 + ecca89e commit b72f274
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/Rakugo/lib/systems/Executer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func do_execute_script(parameters:Dictionary):
var var_ = Rakugo.get_variable(sub_result.get_string("variable"))

if var_:
if typeof(var_) != TYPE_STRING:
var_ = str(var_)

text = text.replace(sub_result.strings[0], var_)

Rakugo.say(result.get_string("character_tag"), text)
Expand Down

0 comments on commit b72f274

Please sign in to comment.