Added 'dogshoot' attack type, self.reach and api tweaks
parent
ec890d4a56
commit
784c00f6d1
|
@ -28,6 +28,7 @@ This mod contains the following additions:
|
|||
|
||||
Changelog:
|
||||
|
||||
1.17- Added 'dogshoot' attack type, shoots when out of reach, melee attack when in reach, also api tweaks and self.reach added
|
||||
1.16- Mobs follow multiple items now, Npc's can breed
|
||||
1.15- Added Feeding/Taming/Breeding function, right-click to pick up any sheep with X mark on them and replace with new one to fix compatibility.
|
||||
1.14- All .self variables saved in staticdata, Fixed self.health bug
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
mobs:register_mob("mobs:bunny", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
reach = 1,
|
||||
hp_min = 1,
|
||||
hp_max = 4,
|
||||
armor = 200,
|
||||
|
@ -55,7 +56,6 @@ mobs:register_mob("mobs:bunny", {
|
|||
textures = {"mobs_bunny_evil.png"},
|
||||
})
|
||||
self.type = "monster"
|
||||
self.state = "attack"
|
||||
self.object:set_hp(20)
|
||||
return
|
||||
end
|
||||
|
|
1
cow.lua
1
cow.lua
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:cow", {
|
|||
type = "animal",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 4,
|
||||
hp_min = 5,
|
||||
hp_max = 20,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:dirt_monster", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 2,
|
||||
hp_min = 3,
|
||||
hp_max = 27,
|
||||
|
|
|
@ -5,7 +5,8 @@ mobs:register_mob("mobs:dungeon_master", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
damage = 4,
|
||||
attack_type = "shoot",
|
||||
attack_type = "dogshoot",
|
||||
reach = 3,
|
||||
shoot_interval = 2.5,
|
||||
arrow = "mobs:fireball",
|
||||
shoot_offset = 1,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:lava_flan", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 3,
|
||||
hp_min = 10,
|
||||
hp_max = 35,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:oerkki", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 4,
|
||||
hp_min = 8,
|
||||
hp_max = 34,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:sand_monster", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 1,
|
||||
hp_min = 4,
|
||||
hp_max = 20,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:spider", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 3,
|
||||
hp_min = 20,
|
||||
hp_max = 40,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:stone_monster", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 3,
|
||||
hp_min = 12,
|
||||
hp_max = 35,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:tree_monster", {
|
|||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 2,
|
||||
hp_min = 7,
|
||||
hp_max = 33,
|
||||
|
|
|
@ -5,6 +5,7 @@ mobs:register_mob("mobs:pumba", {
|
|||
type = "animal",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 2,
|
||||
hp_min = 5,
|
||||
hp_max = 15,
|
||||
|
|
Loading…
Reference in New Issue