Skip to content

Commit

Permalink
fix: potential typo/scope fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
winny- committed Sep 18, 2024
1 parent 7016df9 commit 225d3c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/actors/killer-tomato.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

(fn kt.on-death [s actor]
(when (< (love.math.random) 0.2)
(dungeon.spawn-actor s :tomato actor.pos
(dungeon.log (.. "The Killer Tomato became docile!")))))
(dungeon.spawn-actor s :tomato actor.pos))
(dungeon.log (.. "The Killer Tomato became docile!")))

kt
2 changes: 1 addition & 1 deletion src/actors/tomato.fnl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(local tomato {})

(fn tomato.spawn [s pos]
{: kind
{:kind "tomato"
:name "tomato"
: pos
:color [1 0 0]
Expand Down

0 comments on commit 225d3c9

Please sign in to comment.