File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ enum DifficultyLevel {
5454}
5555
5656func evaluate(ctx: ParleyContext, _values: Array) -> int:
57- return ctx.get('difficulty_level', DifficultyLevel.NORMAL)
57+ return ctx.p_data. get('difficulty_level', DifficultyLevel.NORMAL)
5858
5959func available_values() -> Array[DifficultyLevel]:
6060 return [
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Valid action scripts must implement the `ParleyActionInterface` by providing an
3636``` gdscript Example Action Script
3737func run(ctx: ParleyContext, values: Array) -> int:
3838 print("Advancing time by %s" % [values[0]])
39- ctx.get('advance_time').emit(values[0])
39+ ctx.p_data. get('advance_time').emit(values[0])
4040 return OK
4141```
4242
You can’t perform that action at this time.
0 commit comments