1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

add pathfinding to monsters

This commit is contained in:
crabman77 2016-02-18 18:34:19 +01:00
parent f8e7c9557d
commit 9bff7f1dee
11 changed files with 13 additions and 0 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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",

View File

@ -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",

View File

@ -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,

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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",

View File

@ -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,