This commit is contained in:
Hamlet 2018-07-27 22:19:31 +02:00
parent 20c804688d
commit c8371452a8
4 changed files with 21 additions and 8 deletions

View File

@ -2,7 +2,7 @@
![Mobs Humans' screenshot](screenshot.png)<br>
**_Adds humans._**
**Version:** 0.2.0<br>
**Version:** 0.2.1<br>
**Source code's license:** GPL v3.0<br>
**Textures' license:** CC BY-SA v3.0 / v4.0

View File

@ -10,6 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- Allow to temporarily hire an human.
## [0.2.1] - 2018-07-27
### Changed
- Thrown stones will despawn when hitting a node.
- Minor code improvements.
## [0.2.0] - 2018-07-16
### Added
@ -21,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- Humans' bones remove timer increased to (min300, max600)secs (was 60, 300)
## [0.2.0-dev] - 2018-07-10
### Added

View File

@ -21,14 +21,11 @@
-- General variables
--
local minetest_log_level = minetest.settings:get("debug_log_level")
local mob_difficulty = tonumber(minetest.settings:get("mob_difficulty"))
if (mob_difficulty == nil) then
mob_difficulty = 1
end
local mod_load_message = "[Mod] Mobs Humans [v0.2.0] loaded."
--
-- Custom bones node
@ -712,6 +709,10 @@ mobs:register_arrow("mobs_humans:stone", {
damage_groups = {fleshy = 6},
}
)
end,
hit_node = function(self, pos, node)
self.object:remove()
end
})
@ -751,8 +752,11 @@ mobs:alias_mob("mobs:human", "mobs_humans:human")
-- Minetest engine debug logging
--
if (minetest_log_level == nil) or (minetest_log_level == "action") or
(minetest_log_level == "info") or (minetest_log_level == "verbose") then
if (minetest.settings:get("debug_log_level") == nil)
or (minetest.settings:get("debug_log_level") == "action")
or (minetest.settings:get("debug_log_level") == "info")
or (minetest.settings:get("debug_log_level") == "verbose")
then
minetest.log("action", mod_load_message)
minetest.log("action", "[Mod] Mobs Humans [v0.2.1] loaded.")
end

View File

@ -4,4 +4,4 @@ author = Hamlet
description = Adds humans.
license = GPL v3.0
forum = https://forum.minetest.net/viewtopic.php?f=9&t=20183
version = 0.2.0
version = 0.2.1