Skip to content

Commit

Permalink
fix: ensures proper number of interpolation placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
BHSDuncan authored and StraToN committed Jan 10, 2023
1 parent da4dd67 commit 68220ce
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions addons/escoria-core/game/core-scripts/esc_item.gd
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ func set_angle(deg: int, wait: float = 0.0):
else:
escoria.logger.warn(
self,
"Node %s cannot use \"set_angle\". Its \"is_movable\" parameter is false." %self
"Node %s cannot use \"set_angle\". Its \"is_movable\" parameter is false." % self
)


Expand All @@ -678,7 +678,7 @@ func turn_to(object: Node, wait: float = 0.0):
else:
escoria.logger.warn(
self,
"Node %s cannot use \"turn_to\". Its \"is_movable\" parameter is false." %self
"Node %s cannot use \"turn_to\". Its \"is_movable\" parameter is false." % self
)


Expand All @@ -688,29 +688,29 @@ func check_talk_possible():
or _movable.last_dir >= animations.speaks.size()):
escoria.logger.warn(
self,
"Node %s cannot talk. Its \"last_dir\" parameter is invalid : %s." \
%[self, _movable.last_dir]
"Node %s cannot talk. Its \"last_dir\" parameter is invalid: %s." \
% [self, _movable.last_dir]
)
return false
if not is_instance_valid(animations):
escoria.logger.warn(
self,
"Node %s cannot talk. Its \"animations\" parameter is empty : %s." \
%self
"Node %s cannot talk. Its \"animations\" parameter is empty." \
% self
)
return false
if animations.speaks.size() == 0:
escoria.logger.warn(
self,
"Node %s cannot talk. Its \"animations.speaks\" array is empty : %s." \
%self
"Node %s cannot talk. Its \"animations.speaks\" array is empty." \
% self
)
return false
if not get_animation_player():
escoria.logger.warn(
self,
"Node %s cannot talk. Its animation player can't be found." \
%self
% self
)
return false
return true
Expand Down

0 comments on commit 68220ce

Please sign in to comment.