Skip to content

Commit

Permalink
Merge branch 'master' into feat/logging
Browse files Browse the repository at this point in the history
  • Loading branch information
winny- committed Sep 19, 2024
2 parents e1fc76a + 9c4ba54 commit f2f3801
Show file tree
Hide file tree
Showing 5 changed files with 6,020 additions and 5,079 deletions.
5 changes: 3 additions & 2 deletions src/actors/killer-tomato.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@

(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!")))))
(do
(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
Loading

0 comments on commit f2f3801

Please sign in to comment.