fix: Corrected wether to whether
This commit is contained in:
committed by
Julian Murgia
parent
3b47a93a9e
commit
584b81a496
@@ -27,7 +27,7 @@ var walk_destination: Vector2
|
||||
# The walk context currently carried out by this movable node
|
||||
var walk_context: ESCWalkContext = null
|
||||
|
||||
# Wether the character was moved at all
|
||||
# Whether the character was moved at all
|
||||
var moved: bool
|
||||
|
||||
# Player Direction used to reflect the movement to the new position
|
||||
@@ -36,7 +36,7 @@ var last_dir: int
|
||||
# The last scaling applied to the parent
|
||||
var last_scale: Vector2
|
||||
|
||||
# Wether the current direction animation is flipped
|
||||
# Whether the current direction animation is flipped
|
||||
var is_mirrored: bool
|
||||
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ func clear_event_queue():
|
||||
#
|
||||
# #### Parameters
|
||||
# - name: Name of the channel to test
|
||||
# **Returns** Wether the channel can currently accept a new event
|
||||
# **Returns** Whether the channel can currently accept a new event
|
||||
func is_channel_free(name: String) -> bool:
|
||||
return _channels_state[name] if name in _channels_state else true
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ var _reserved_globals: Dictionary = {}
|
||||
# #### Parameters
|
||||
#
|
||||
# - key: The global key to check
|
||||
# **Returns** Wether the global was registered
|
||||
# **Returns** Whether the global was registered
|
||||
func has(key: String) -> bool:
|
||||
return _globals.has(key)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ class_name ESCInventoryManager
|
||||
# #### Parameters
|
||||
#
|
||||
# - item: Inventory item id
|
||||
# **Returns** Wether the player has the inventory
|
||||
# **Returns** Whether the player has the inventory
|
||||
func inventory_has(item: String) -> bool:
|
||||
return escoria.globals_manager.has("i/%s" % item)
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ var types: Array = []
|
||||
# The default values for the arguments
|
||||
var defaults: Array = []
|
||||
|
||||
# Wether to strip quotes on specific arguments
|
||||
# Whether to strip quotes on specific arguments
|
||||
var strip_quotes: Array = []
|
||||
|
||||
|
||||
|
||||
@@ -31,10 +31,10 @@ const COMPARISON_DESCRIPTION = [
|
||||
# Name of the flag compared
|
||||
var flag: String
|
||||
|
||||
# Wether this condition is negated
|
||||
# Whether this condition is negated
|
||||
var negated: bool = false
|
||||
|
||||
# Wether this condition is regarding an inventory item ("i/...")
|
||||
# Whether this condition is regarding an inventory item ("i/...")
|
||||
var inventory: bool = false
|
||||
|
||||
# An optional comparison type. Use the COMPARISON-Enum
|
||||
|
||||
@@ -6,10 +6,10 @@ class_name ESCObject
|
||||
# The global id of the object
|
||||
var global_id: String
|
||||
|
||||
# Wether the object is active (visible to the player)
|
||||
# Whether the object is active (visible to the player)
|
||||
var active: bool = true setget _set_active
|
||||
|
||||
# Wether the object is interactive (clickable by the player)
|
||||
# Whether the object is interactive (clickable by the player)
|
||||
var interactive: bool = true setget _set_interactive, _get_interactive
|
||||
|
||||
# The state of the object. If the object has a respective animation,
|
||||
|
||||
@@ -17,7 +17,7 @@ var _animation_player: AnimationPlayer
|
||||
# A AnimationPlayer typed reference to the player node (for intellisense)
|
||||
var _animated_sprite: AnimatedSprite
|
||||
|
||||
# Wether the player node is of type AnimationPlayer (just for convenience)
|
||||
# Whether the player node is of type AnimationPlayer (just for convenience)
|
||||
var _is_animation_player: bool = false
|
||||
|
||||
# Currently running animation
|
||||
@@ -73,8 +73,8 @@ func get_animations() -> PoolStringArray:
|
||||
return _animated_sprite.frames.get_animation_names()
|
||||
|
||||
|
||||
# Wether the animation is playing
|
||||
# **Returns: Wether the animation is playing**
|
||||
# Whether the animation is playing
|
||||
# **Returns: Whether the animation is playing**
|
||||
func is_playing() -> bool:
|
||||
return _player_node.is_playing()
|
||||
|
||||
@@ -118,7 +118,7 @@ func play_backwards(name: String):
|
||||
# #### Parameters
|
||||
#
|
||||
# - name: Name of the animation to check
|
||||
# **Returns** Wether the animation player has the animation
|
||||
# **Returns** Whether the animation player has the animation
|
||||
func has_animation(name: String) -> bool:
|
||||
if _is_animation_player:
|
||||
return _animation_player.has_animation(name)
|
||||
|
||||
@@ -86,7 +86,7 @@ export(String) var trigger_out_verb = "trigger_out"
|
||||
# If true, the player can interact with this item
|
||||
export(bool) var is_interactive = true
|
||||
|
||||
# Wether this item is movable
|
||||
# Whether this item is movable
|
||||
export(bool) var is_movable = false
|
||||
|
||||
# If true, player orients towards 'interaction_direction' as
|
||||
|
||||
@@ -6,7 +6,7 @@ class_name ESCPlayer, "res://addons/escoria-core/design/esc_player.svg"
|
||||
|
||||
|
||||
|
||||
# Wether the player can be selected like an item
|
||||
# Whether the player can be selected like an item
|
||||
export(bool) var selectable = false
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user