diff options
Diffstat (limited to 'data/enemyData.lua')
| -rw-r--r-- | data/enemyData.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/enemyData.lua b/data/enemyData.lua index faa9f3e..ea38366 100644 --- a/data/enemyData.lua +++ b/data/enemyData.lua @@ -112,6 +112,11 @@ local enemyData = { { type = "brokenheart", amount = 1, chances = 1 }, { type = "brokenheart", amount = 1, chances = 0.5 } }, + onHit = function(shot) + local Loot = require "objects.loot" + local lootItem = Loot:new("brokenheart", shot.x, shot.y) + table.insert(G.currentRoom.objects.loots, lootItem) + end } } |
