Small tweaks, push to 1.1.4

master
BlockMen 2014-08-05 04:33:17 +02:00
parent daca4f6c0e
commit 5a1bcc0bab
4 changed files with 10 additions and 4 deletions

View File

@ -2,7 +2,7 @@ Minetest mod "Creatures"
=======================
by BlockMen (c) 2014
Version: 1.1.3 Beta
Version: 1.1.4 Beta
About
~~~~~
@ -94,6 +94,12 @@ Changelog:
- Prevent the mobs flood once and for all
- Drop items aswell when settings define max lifetime
# 1.1.4
- Fixed mobs flood (yes, really!)
- Sheep drop raw flesh on death
- Sheep are not stuck that often in valleys; spawning less
- Improved jumping of zombies and sheep
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want

View File

@ -222,7 +222,7 @@ SHEEP_DEF.on_step = function(self, dtime)
-- die if old and alone
if self.lifetime > s_life_max then
if creatures.find_mates(current_pos, "sheep", 18) then
if creatures.find_mates(current_pos, "sheep", 15) then
self.lifetime = 0
else
self.object:set_hp(0)

View File

@ -97,5 +97,5 @@ minetest.register_abm({
return
end
if math.random(1,10) > 8 then return end
creatures.spawn(pos, math.random(1,2), "creatures:sheep", 4, 50, 30)
creatures.spawn(pos, 1, "creatures:sheep", 4, 50, 30)
end})

View File

@ -327,7 +327,7 @@ ZOMBIE_DEF.on_step = function(self, dtime)
--jump
local p = current_pos
p.y = p.y-0.5
creatures.jump(self, p, 7.3, 0.25)
creatures.jump(self, p, 7.4, 0.25)
if self.attacker ~= "" and minetest.setting_getbool("enable_damage") then
local s = current_pos