added option to disable blast damage

This commit is contained in:
Alexsandro Percy 2023-08-25 22:35:10 -03:00
parent beddd07827
commit cc10bd1fef
2 changed files with 28 additions and 1 deletions

View file

@ -283,7 +283,9 @@ function airutils.destroy(self, by_name)
airutils.destroy_inventory(self)
self.object:remove()
airutils.add_blast_damage(pos, 5 + 4, 10)
if airutils.blast_damage == true and with_fire == true then
airutils.add_blast_damage(pos, 7, 10)
end
--[[pos.y=pos.y+2
minetest.add_item({x=pos.x+math.random()-0.5,y=pos.y,z=pos.z+math.random()-0.5},'hidroplane:wings')
@ -1010,3 +1012,4 @@ function airutils.get_adf_angle(self, pos)
return adf
end