v0.2.1
This commit is contained in:
parent
20c804688d
commit
c8371452a8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
16
init.lua
16
init.lua
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user