make fish not sink, die in air, still not mvp functional

This commit is contained in:
wsor 2021-03-24 00:05:04 -04:00
parent 895c47a965
commit e460f1072c
2 changed files with 8 additions and 3 deletions

View File

@ -15,7 +15,12 @@ function fl_brains.fish_brain(self)
end
if mobkit.timer(self,1) then
mobkit.animate(self,"walk")
mobkit.hq_aqua_roam(self,10,1)
if not self.isinliquid then
fl_wildlife.flash_color(self)
mobkit.hurt(self,1)
else
mobkit.animate(self,"walk")
mobkit.hq_aqua_roam(self,10,1)
end
end
end

View File

@ -19,7 +19,7 @@ minetest.register_entity("fl_wildlife:riverfish", {
get_staticdata = mobkit.statfunc, --who knows, no documentation (probably save entity data)
--mobkit properties
buoyancy = 1.0, --how it works in water
buoyancy = 0.99, --how it works in water
max_speed = 2, --how fast it can go
jump_height = 1.1, --jumping height? not sure how this is different from mte stepheight
view_range = 24, --how far it can see