mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-21 15:21:22 +00:00
Bug Fixes
This commit is contained in:
parent
5cd21a7a37
commit
5fb25d9dbd
4 changed files with 7 additions and 4 deletions
|
@ -595,12 +595,13 @@ function animalia.mount(self, player, params)
|
||||||
player:set_attach(self.object, "Torso", params.pos, params.rot)
|
player:set_attach(self.object, "Torso", params.pos, params.rot)
|
||||||
player:set_eye_offset({x = 0, y = 25, z = 0}, {x = 0, y = 15, z = 15})
|
player:set_eye_offset({x = 0, y = 25, z = 0}, {x = 0, y = 15, z = 15})
|
||||||
self:clear_utility()
|
self:clear_utility()
|
||||||
minetest.after(0.3, function()
|
minetest.after(0.4, function()
|
||||||
animate_player(player, "sit" , 30)
|
animate_player(player, "sit" , 30)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function animalia.punch(self, puncher, ...)
|
function animalia.punch(self, puncher, ...)
|
||||||
|
if self.hp <= 0 then return end
|
||||||
creatura.basic_punch_func(self, puncher, ...)
|
creatura.basic_punch_func(self, puncher, ...)
|
||||||
self._puncher = puncher
|
self._puncher = puncher
|
||||||
if self.flee_puncher
|
if self.flee_puncher
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Fox --
|
-- Fox --
|
||||||
---------
|
---------
|
||||||
|
|
||||||
local vec_dir, vec_dist = vector.direction, vector.direction
|
local vec_dir, vec_dist = vector.direction, vector.distance
|
||||||
local dir2yaw = minetest.dir_to_yaw
|
local dir2yaw = minetest.dir_to_yaw
|
||||||
|
|
||||||
local function get_food_pos(self)
|
local function get_food_pos(self)
|
||||||
|
|
|
@ -132,6 +132,7 @@ creatura.register_mob("animalia:horse", {
|
||||||
fancy_collide = false,
|
fancy_collide = false,
|
||||||
|
|
||||||
-- Animalia Props
|
-- Animalia Props
|
||||||
|
group_wander = true,
|
||||||
catch_with_net = true,
|
catch_with_net = true,
|
||||||
catch_with_lasso = true,
|
catch_with_lasso = true,
|
||||||
consumable_nodes = {
|
consumable_nodes = {
|
||||||
|
@ -147,7 +148,7 @@ creatura.register_mob("animalia:horse", {
|
||||||
},
|
},
|
||||||
utility_stack = {
|
utility_stack = {
|
||||||
{
|
{
|
||||||
utility = "animalia:wander_group",
|
utility = "animalia:wander",
|
||||||
step_delay = 0.25,
|
step_delay = 0.25,
|
||||||
get_score = function(self)
|
get_score = function(self)
|
||||||
return 0.1, {self}
|
return 0.1, {self}
|
||||||
|
|
|
@ -76,6 +76,7 @@ creatura.register_mob("animalia:wolf", {
|
||||||
follow = follow,
|
follow = follow,
|
||||||
|
|
||||||
-- Animalia Props
|
-- Animalia Props
|
||||||
|
skittish_wander = true,
|
||||||
assist_owner = true,
|
assist_owner = true,
|
||||||
flee_puncher = false,
|
flee_puncher = false,
|
||||||
catch_with_net = true,
|
catch_with_net = true,
|
||||||
|
@ -91,7 +92,7 @@ creatura.register_mob("animalia:wolf", {
|
||||||
-- Functions
|
-- Functions
|
||||||
utility_stack = {
|
utility_stack = {
|
||||||
{
|
{
|
||||||
utility = "animalia:wander_skittish",
|
utility = "animalia:wander",
|
||||||
step_delay = 0.25,
|
step_delay = 0.25,
|
||||||
get_score = function(self)
|
get_score = function(self)
|
||||||
return 0.1, {self}
|
return 0.1, {self}
|
||||||
|
|
Loading…
Add table
Reference in a new issue