tidy warnings

This commit is contained in:
Vivianne 2023-10-06 02:18:30 -07:00
parent 61a3e707d2
commit 75ac090453
2 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ class_name EyeCondition extends ConditionLeaf
@export var looking_for: String
func tick(actor: Node, blackboard: Blackboard) -> int:
func tick(actor: Node, _blackboard: Blackboard) -> int:
return SUCCESS if actor.can_see_name(looking_for) else FAILURE

View File

@ -11,5 +11,5 @@ func say_shit(shit):
print(self.name, ": ", shit)
func can_see_name(name: String) -> bool:
return $Eyes.get_overlapping_bodies().any(func(b): return b.name == name)
func can_see_name(actor_name: String) -> bool:
return $Eyes.get_overlapping_bodies().any(func(b): return b.name == actor_name)