Skip to content

Commit 86f34a5

Browse files
authored
Fix register fact docs (#25)
1 parent f0cd6d6 commit 86f34a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/latest/getting-started/register-fact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ enum DifficultyLevel {
5454
}
5555
5656
func 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
5959
func available_values() -> Array[DifficultyLevel]:
6060
return [

docs/latest/nodes/action-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Valid action scripts must implement the `ParleyActionInterface` by providing an
3636
```gdscript Example Action Script
3737
func 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

0 commit comments

Comments
 (0)