diff --git a/depends.txt b/depends.txt index 58b4e62..d0aea36 100644 --- a/depends.txt +++ b/depends.txt @@ -2,3 +2,4 @@ default mobs intllib? lucky_block? +toolranks? diff --git a/dungeon_master.lua b/dungeon_master.lua index d4b55bd..d4531e7 100644 --- a/dungeon_master.lua +++ b/dungeon_master.lua @@ -10,7 +10,8 @@ mobs:register_mob("mobs_monster:dungeon_master", { damage = 4, attack_type = "dogshoot", dogshoot_switch = 1, - dogshoot_count_max = 10, + dogshoot_count_max = 12, -- shoot for 10 seconds + dogshoot_count2_max = 3, -- dogfight for 3 seconds reach = 3, shoot_interval = 2.5, arrow = "mobs_monster:fireball", diff --git a/init.lua b/init.lua index e39198e..55f4748 100644 --- a/init.lua +++ b/init.lua @@ -3,8 +3,14 @@ local path = minetest.get_modpath("mobs_monster") -- Intllib local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() +if minetest.global_exists("intllib") then + if intllib.make_gettext_pair then + -- New method using gettext. + S = intllib.make_gettext_pair() + else + -- Old method using text files. + S = intllib.Getter() + end else S = function(s) return s end end diff --git a/lava_flan.lua b/lava_flan.lua index b36598b..d9bdb84 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -53,7 +53,22 @@ mobs:register_mob("mobs_monster:lava_flan", { on_die = function(self, pos) minetest.set_node(pos, {name = "fire:basic_flame"}) self.object:remove() - effect(pos, 20, "fire_basic_flame.png") + + minetest.add_particlespawner({ + amount = 20, + time = 0.25, + minpos = pos, + maxpos = pos, + minvel = {x = -2, y = -2, z = -2}, + maxvel = {x = 2, y = 2, z = 2}, + minacc = {x = 0, y = -10, z = 0}, + maxacc = {x = 0, y = -10, z = 0}, + minexptime = 0.1, + maxexptime = 1, + minsize = 0.5, + maxsize = 1.0, + texture = "fire_basic_flame.png", + }) end, }) @@ -139,7 +154,7 @@ minetest.register_tool(":mobs:pick_lava", { full_punch_interval = 0.4, max_drop_level=3, groupcaps={ - cracky = {times={[1]=1.80, [2]=0.90, [3]=0.45}, uses=30, maxlevel=3}, + cracky = {times={[1]=1.80, [2]=0.80, [3]=0.40}, uses=40, maxlevel=3}, }, damage_groups = {fleshy=6}, }, @@ -280,3 +295,13 @@ local function update_picklight(dtime) end minetest.after(picklight_update_interval, update_picklight) + +--[[ Add [toolranks] mod support if found +if minetest.get_modpath("toolranks") then + +minetest.override_item("mobs:pick_lava", { + original_description = "Lava Pickaxe", + description = toolranks.create_description("Lava Pickaxe", 0, 1), + after_use = toolranks.new_afteruse}) +end +]] diff --git a/locale/tr.txt b/locale/tr.txt new file mode 100644 index 0000000..10f64a0 --- /dev/null +++ b/locale/tr.txt @@ -0,0 +1,39 @@ +# Türkçe çeviri by Admicos +# Turkish translation by Admicos + +# Son düzenleme: 26 Nisan 2017 +# Last edit: 26 April 2017 + + +#dirtmonster.lua +Dirt Monster = Toprak Canavarı + +#dungeonmaster.lua +Dungeon Master = Zindan başı + +#init.lua +[MOD] Mobs Redo 'Monsters' loaded = [MOD] Mobs Redo 'Canavarlar' yüklendi + +#lava_flan.lua +Lava Flan = Lav Flan +Lava orb = Lav küre +Lava Pickaxe = Lav kazması + +#mese_monster.lua +Mese Monster = Mese Canavarı + +#oerkki.lua +Oerkki = Oerkki + +#sandmonster.lua +Sand Monster = Kum Canavarı + +#spider.lua +Spider = Örümcek +Cobweb = Örümcek ağı + +#stonemonster.lua +Stone Monster = Taş Canavarı + +#treemonster.lua +Tree Monster = Ağaç Canavarı \ No newline at end of file diff --git a/sand_monster.lua b/sand_monster.lua index 5c9ac62..d5efaeb 100644 --- a/sand_monster.lua +++ b/sand_monster.lua @@ -27,7 +27,7 @@ mobs:register_mob("mobs_monster:sand_monster", { }, walk_velocity = 1.5, run_velocity = 4, - view_range = 15, + view_range = 8, --15 jump = true, floats = 0, drops = {