fix: ensures proper number of interpolation placeholders
This commit is contained in:
committed by
Julian Murgia
parent
da4dd67157
commit
68220ced91
@@ -662,7 +662,7 @@ func set_angle(deg: int, wait: float = 0.0):
|
|||||||
else:
|
else:
|
||||||
escoria.logger.warn(
|
escoria.logger.warn(
|
||||||
self,
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -678,7 +678,7 @@ func turn_to(object: Node, wait: float = 0.0):
|
|||||||
else:
|
else:
|
||||||
escoria.logger.warn(
|
escoria.logger.warn(
|
||||||
self,
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -688,29 +688,29 @@ func check_talk_possible():
|
|||||||
or _movable.last_dir >= animations.speaks.size()):
|
or _movable.last_dir >= animations.speaks.size()):
|
||||||
escoria.logger.warn(
|
escoria.logger.warn(
|
||||||
self,
|
self,
|
||||||
"Node %s cannot talk. Its \"last_dir\" parameter is invalid : %s." \
|
"Node %s cannot talk. Its \"last_dir\" parameter is invalid: %s." \
|
||||||
%[self, _movable.last_dir]
|
% [self, _movable.last_dir]
|
||||||
)
|
)
|
||||||
return false
|
return false
|
||||||
if not is_instance_valid(animations):
|
if not is_instance_valid(animations):
|
||||||
escoria.logger.warn(
|
escoria.logger.warn(
|
||||||
self,
|
self,
|
||||||
"Node %s cannot talk. Its \"animations\" parameter is empty : %s." \
|
"Node %s cannot talk. Its \"animations\" parameter is empty." \
|
||||||
%self
|
% self
|
||||||
)
|
)
|
||||||
return false
|
return false
|
||||||
if animations.speaks.size() == 0:
|
if animations.speaks.size() == 0:
|
||||||
escoria.logger.warn(
|
escoria.logger.warn(
|
||||||
self,
|
self,
|
||||||
"Node %s cannot talk. Its \"animations.speaks\" array is empty : %s." \
|
"Node %s cannot talk. Its \"animations.speaks\" array is empty." \
|
||||||
%self
|
% self
|
||||||
)
|
)
|
||||||
return false
|
return false
|
||||||
if not get_animation_player():
|
if not get_animation_player():
|
||||||
escoria.logger.warn(
|
escoria.logger.warn(
|
||||||
self,
|
self,
|
||||||
"Node %s cannot talk. Its animation player can't be found." \
|
"Node %s cannot talk. Its animation player can't be found." \
|
||||||
%self
|
% self
|
||||||
)
|
)
|
||||||
return false
|
return false
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user