From 2dd931fdd0e686905b45a4257cb4697fbacacd63 Mon Sep 17 00:00:00 2001 From: Balloonpopper Date: Tue, 15 Mar 2022 21:33:45 +1100 Subject: [PATCH] fix --- .../game/core-scripts/esc/commands/walk.gd | 12 ++++++------ .../game/core-scripts/esc/commands/walk_block.gd | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/addons/escoria-core/game/core-scripts/esc/commands/walk.gd b/addons/escoria-core/game/core-scripts/esc/commands/walk.gd index a3fd70fa..bd908c32 100644 --- a/addons/escoria-core/game/core-scripts/esc/commands/walk.gd +++ b/addons/escoria-core/game/core-scripts/esc/commands/walk.gd @@ -1,14 +1,14 @@ -# `walk object target [speed]` +# `walk object target [walk_fast]` # # Moves the specified `ESCPlayer` or movable `ESCItem` to `target` -# while playing the `object`'s walking animation. This command is non-blocking. +# while playing `object`'s walking animation. This command is non-blocking. +# This command will use the normal walk speed by default. # # **Parameters** # # - *object*: Global ID of the object to move # - *target*: Global ID of the target object -# - *speed*: The speed the `object` will walk in pixels per second (will -# default to the speed configured on the `object`) +# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`). # # @ESC extends ESCBaseCommand @@ -19,8 +19,8 @@ class_name WalkCommand func configure() -> ESCCommandArgumentDescriptor: return ESCCommandArgumentDescriptor.new( 2, - [TYPE_STRING, TYPE_STRING, TYPE_INT], - [null, null, null] + [TYPE_STRING, TYPE_STRING, TYPE_BOOL], + [null, null, false] ) diff --git a/addons/escoria-core/game/core-scripts/esc/commands/walk_block.gd b/addons/escoria-core/game/core-scripts/esc/commands/walk_block.gd index c4338f5c..c6c3e9f6 100644 --- a/addons/escoria-core/game/core-scripts/esc/commands/walk_block.gd +++ b/addons/escoria-core/game/core-scripts/esc/commands/walk_block.gd @@ -1,14 +1,14 @@ -# `walk_block object target [speed]` +# `walk_block object target [walk_fast]` # # Moves the specified `ESCPlayer` or movable `ESCItem` to `target` # while playing `object`'s walking animation. This command is blocking. +# This command will use the normal walk speed by default. # # **Parameters** # # - *object*: Global ID of the object to move # - *target*: Global ID of the target object -# - *speed*: The speed the `object` will walk in pixels per second (will -# default to the speed configured on the `object`) +# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`). # # @ESC extends ESCBaseCommand @@ -19,8 +19,8 @@ class_name WalkBlockCommand func configure() -> ESCCommandArgumentDescriptor: return ESCCommandArgumentDescriptor.new( 2, - [TYPE_STRING, TYPE_STRING, TYPE_INT], - [null, null, null] + [TYPE_STRING, TYPE_STRING, TYPE_BOOL], + [null, null, false] )