Skip to content

Commit

Permalink
move undead to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Zireael07 committed Sep 19, 2013
1 parent 756ccdd commit e73bf0a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 76 deletions.
6 changes: 5 additions & 1 deletion data/general/npcs/animals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,14 @@ newEntity{
movement_speed_bonus = 0.66,
}

newEntity{ base = "BASE_NPC_ANIMAL",
newEntity{
define_as = "BASE_NPC_TORTOISE",
display = 'B', color=colors.DARK_GREEN,
body = { INVEN = 10 },
desc = [[A large tortoise.]],


ai = "dumb_talented_simple", ai_state = { talent_in=3, },
stats = { str=17, dex=10, con=21, int=2, wis=15, cha=7, luc=2 },
combat = { dam= {1,10} },
skill_spot = 2,
Expand Down
18 changes: 18 additions & 0 deletions data/general/npcs/templates/humanoid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,22 @@ newEntity {
[DamageType.COLD] = 10,
[DamageType.ELECTRIC] = 10,
}
}

--Undead templates
newEntity {
name = " skeleton", suffix = true, instant_resolve = true,
keywords = {undead=true},
level_range = {5, nil},
rarity = 5,
infravision = 3,
combat = { dam= {1,6} },
}

newEntity {
name = " zombie", suffix = true, instant_resolve = true,
keywords = {undead=true},
level_range = {5, nil},
rarity = 5,
combat = { dam= {1,6} },
}
71 changes: 0 additions & 71 deletions data/general/npcs/undead.lua

This file was deleted.

2 changes: 0 additions & 2 deletions data/zones/cavern/npcs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

load("/data/general/npcs/humanoid.lua")

load("/data/general/npcs/undead.lua")

load("/data/general/npcs/animals.lua")

load("/data/general/npcs/aberration.lua")
Expand Down
2 changes: 0 additions & 2 deletions data/zones/dungeon/npcs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

load("/data/general/npcs/humanoid.lua")

load("/data/general/npcs/undead.lua")

load("/data/general/npcs/animals.lua")

load("/data/general/npcs/aberration.lua")
Expand Down

0 comments on commit e73bf0a

Please sign in to comment.