Skip to content

Commit

Permalink
destroy glider on flak using damage_glider()
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Apr 13, 2024
1 parent d5a4671 commit 91db154
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,8 @@ local on_step = function(self, dtime, moveresult)
driver:set_hp(1, {
type = "set_hp", cause = "glider:flak"
})
driver:get_inventory():remove_item(
"main", ItemStack("glider:glider"))

-- destroy glider
damage_glider(driver, self, 20)
shoot_flak_sound(pos)
land = true
end
Expand Down

0 comments on commit 91db154

Please sign in to comment.