From 9bff7f1dee30ba85d84540efab66578a8c4fd325 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Thu, 18 Feb 2016 18:34:19 +0100 Subject: [PATCH] add pathfinding to monsters --- mods/mobs/creeper.lua | 1 + mods/mobs/dungeonmaster.lua | 1 + mods/mobs/greenslimes.lua | 1 + mods/mobs/lavaslimes.lua | 1 + mods/mobs/minotaur.lua | 2 ++ mods/mobs/pumpkins.lua | 1 + mods/mobs/spider.lua | 1 + mods/mobs/treemonster.lua | 1 + mods/mobs/wolf.lua | 2 ++ mods/mobs/yeti.lua | 1 + mods/mobs/zombie.lua | 1 + 11 files changed, 13 insertions(+) diff --git a/mods/mobs/creeper.lua b/mods/mobs/creeper.lua index bcd2827c..4c44f2a4 100755 --- a/mods/mobs/creeper.lua +++ b/mods/mobs/creeper.lua @@ -7,6 +7,7 @@ mobs:register_mob("mobs:creeper", { -- agressive, does 21 damage to player when explode passive = false, attack_type = "explode", + pathfinding = true, damage = 21, -- health & armor hp_min = 30, hp_max = 40, armor = 90, diff --git a/mods/mobs/dungeonmaster.lua b/mods/mobs/dungeonmaster.lua index f4fd651b..3c1a6678 100755 --- a/mods/mobs/dungeonmaster.lua +++ b/mods/mobs/dungeonmaster.lua @@ -6,6 +6,7 @@ mobs:register_mob("mobs:dungeon_master", { type = "monster", -- aggressive, shoots fireballs at player, deal 13 damages passive = false, + pathfinding = true, damage = 12, attack_type = "dogshoot", reach = 3, diff --git a/mods/mobs/greenslimes.lua b/mods/mobs/greenslimes.lua index 4ccd4ad4..4b8f7e71 100755 --- a/mods/mobs/greenslimes.lua +++ b/mods/mobs/greenslimes.lua @@ -18,6 +18,7 @@ mobs:register_mob("mobs:greensmall", { type = "monster", -- aggressive, deals 2 damage to player when hit passive = false, + pathfinding = true, reach = 2, damage = 2, attack_type = "dogfight", diff --git a/mods/mobs/lavaslimes.lua b/mods/mobs/lavaslimes.lua index cab09c76..72c447c5 100755 --- a/mods/mobs/lavaslimes.lua +++ b/mods/mobs/lavaslimes.lua @@ -18,6 +18,7 @@ mobs:register_mob("mobs:lavasmall", { type = "monster", -- aggressive, deals 2 damage to player when hit passive = false, + pathfinding = true, reach = 2, damage = 2, attack_type = "dogfight", diff --git a/mods/mobs/minotaur.lua b/mods/mobs/minotaur.lua index d960438b..c6fb880e 100755 --- a/mods/mobs/minotaur.lua +++ b/mods/mobs/minotaur.lua @@ -7,6 +7,8 @@ mobs:register_mob("mobs:minotaur", { -- aggressive, deals 11 damage to player when hit passive = false, attack_type = "dogfight", + pathfinding = true, + reach = 2, damage = 7, -- health & armor hp_min = 60, diff --git a/mods/mobs/pumpkins.lua b/mods/mobs/pumpkins.lua index dc8e7a23..4d47431d 100755 --- a/mods/mobs/pumpkins.lua +++ b/mods/mobs/pumpkins.lua @@ -30,6 +30,7 @@ mobs:register_mob("mobs:pumpking", { lava_damage = 0, fall_damage = 0, damage = 9, + pathfinding = true, reach = 5, attack_type = "dogfight", view_range = 25, diff --git a/mods/mobs/spider.lua b/mods/mobs/spider.lua index f11f3768..6c1fd6a3 100755 --- a/mods/mobs/spider.lua +++ b/mods/mobs/spider.lua @@ -7,6 +7,7 @@ mobs:register_mob("mobs:spider", { -- agressive, does 6 damage to player when hit passive = false, attack_type = "dogfight", + pathfinding = true, reach = 2, damage = 5, -- health & armor diff --git a/mods/mobs/treemonster.lua b/mods/mobs/treemonster.lua index 1ea78dce..44e0cba8 100755 --- a/mods/mobs/treemonster.lua +++ b/mods/mobs/treemonster.lua @@ -7,6 +7,7 @@ mobs:register_mob("mobs:tree_monster", { -- aggressive, deals 9 damage to player when hit passive = false, attack_type = "dogfight", + pathfinding = true, reach = 2, damage = 8, -- health & armor diff --git a/mods/mobs/wolf.lua b/mods/mobs/wolf.lua index e2c5abd4..1f92eaa3 100755 --- a/mods/mobs/wolf.lua +++ b/mods/mobs/wolf.lua @@ -7,6 +7,8 @@ mobs:register_mob("mobs:wolf", { -- agressive, does 4 damage to player when hit passive = false, attack_type = "dogfight", + pathfinding = true, + reach = 2, damage = 4, -- 2 damages if tamed -- health & armor hp_min = 15, hp_max = 20, armor = 200, diff --git a/mods/mobs/yeti.lua b/mods/mobs/yeti.lua index 9b8f27d9..4d4b3a01 100755 --- a/mods/mobs/yeti.lua +++ b/mods/mobs/yeti.lua @@ -8,6 +8,7 @@ mobs:register_mob("mobs:yeti", { passive = false, damage = 6, attack_type = "dogshoot", + pathfinding = true, reach = 2, shoot_interval = .75, arrow = "mobs:snowball", diff --git a/mods/mobs/zombie.lua b/mods/mobs/zombie.lua index 0231e29f..d6872f1e 100755 --- a/mods/mobs/zombie.lua +++ b/mods/mobs/zombie.lua @@ -7,6 +7,7 @@ mobs:register_mob("mobs:zombie", { -- aggressive, deals 6 damage to player when hit passive = false, attack_type = "dogfight", + pathfinding = true, damage = 5, -- health & armor hp_min = 30,