]> git.lizzy.rs Git - Crafter.git/commitdiff
Tune mobs eyesight and turn off pathfinding debug visual
authoroilboi <47129783+oilboi@users.noreply.github.com>
Mon, 25 May 2020 19:42:12 +0000 (15:42 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Mon, 25 May 2020 19:42:12 +0000 (15:42 -0400)
mods/mob/api/movement.lua
mods/mob/init.lua

index 604c1aa35e88d928e824c9d15ea1a1f605208340..357366eef46eef98b55167c09ceac8b3f1e05015 100644 (file)
@@ -192,7 +192,7 @@ mobs.create_movement_functions = function(def,mob_register)
                                        if path and not self.path_data or (self.path_data and table.getn(self.path_data) < 1) then
                                                self.path_data = path
                                        end
-                                       
+                                       --[[
                                        if self.path_data then
                                                for index,pos_data in pairs(self.path_data) do
                                                        --print(dump(pos_data))
@@ -206,6 +206,7 @@ mobs.create_movement_functions = function(def,mob_register)
                                                        })
                                                end
                                        end
+                                       ]]--
                                end
                        elseif not self.following then
                                self.path_data = nil
index 1e86526fad2acddd8555d26d5607a259d5474c45..10cc5fb57f54db3f499d1e6fbc8f0e963a8dff4e 100644 (file)
@@ -485,7 +485,7 @@ mobs.register_mob(
         hostile = true,
         hostile_cooldown = false,
         state = 0,
-        view_distance = 40,
+        view_distance = 32,
         item_drop = "mob:gunpowder",
          
         standing_frame = {x=0,y=0},
@@ -551,7 +551,7 @@ mobs.register_mob(
         hostile = true,
         hostile_cooldown = false,
         state = 0,
-        view_distance = 20,
+        view_distance = 40,
         item_drop = "mob:gunpowder",
 
         damage_color = "blue",
@@ -632,7 +632,7 @@ mobs.register_mob(
         movement_type = "walk",
         max_speed = 6,
         state = 0,
-        view_distance = 45,
+        view_distance = 32,
         
         item_drop = "mob:string", 
         standing_frame = {x=21,y=21},