Skip to content
Snippets Groups Projects
Commit 73c6d87f authored by dg's avatar dg
Browse files

finished skeleton & ghouls: can now be unlocked

git-svn-id: http://svn.net-core.org/repos/t-engine4@555 51575b47-30f0-44d4-a5cc-537603b46e54
parent b9cb66bd
No related branches found
No related tags found
No related merge requests found
......@@ -699,7 +699,7 @@ function _M:setAllowedBuild(what, notify)
config.settings.tome.allow_build[what] = true
local t = {}
for k, e in pairs(config.settings.tome.allow_build) do
t[#t+1] = ("tome.allow_build.%s = %s\n"):format(k, tostring(e))
t[#t+1] = ("tome.allow_build.%s = %s"):format(k, tostring(e))
end
game:saveSettings("tome.allow_build", table.concat(t, "\n"))
......
......@@ -173,6 +173,14 @@ function _M:die(src)
else
mod.class.Actor.die(self, src)
end
if src and src.type == "undead" and src.subtype == "skeleton" and rng.percent(src.rank + math.ceil(math.max(src.level / 2, 1))) then
game:setAllowedBuild("undead")
game:setAllowedBuild("undead_skeleton", true)
elseif src and src.type == "undead" and src.subtype == "ghoul" and rng.percent(src.rank + math.ceil(math.max(src.level / 2, 1))) then
game:setAllowedBuild("undead")
game:setAllowedBuild("undead_ghoul", true)
end
end
function _M:setName(name)
......
......@@ -77,7 +77,7 @@ newBirthDescriptor
default_wilderness = {"wilderness/main", 39, 17},
starting_zone = "tower-amon-sul",
starting_quest = "start-dunadan",
starting_intro = "dwarf",
starting_intro = "ghoul",
life_rating=14,
poison_immune = 0.8,
cut_immune = 1,
......@@ -99,7 +99,7 @@ newBirthDescriptor
"- bleeding immunity",
"- fear immunity",
"- no need to breath",
"- special skeleton talents: ",
"- special skeleton talents: sharp bones, bone amour, re-assemble",
"The rotting body of ghouls also forces them to act a bit slower than most creatures.",
},
descriptor_choices =
......@@ -122,7 +122,7 @@ newBirthDescriptor
default_wilderness = {"wilderness/main", 39, 17},
starting_zone = "tower-amon-sul",
starting_quest = "start-dunadan",
starting_intro = "dwarf",
starting_intro = "skeleton",
life_rating=12,
poison_immune = 1,
cut_immune = 1,
......
......@@ -21,7 +21,7 @@ local Talents = require("engine.interface.ActorTalents")
newEntity{
define_as = "BASE_NPC_SKELETON",
type = "undead", subtype = "skeletons",
type = "undead", subtype = "skeleton",
display = "s", color=colors.WHITE,
combat = { dam=1, atk=1, apr=1 },
......
-- ToME - Tales of Middle-Earth
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
return [[Welcome #LIGHT_GREEN#]]..name..[[#WHITE#.
You have died ages ago, but that did not stop you, you were raised as an undead ghoul.
After wandering aimlessly for eons you found a goal: to become a force to be reckonned with in this world.
You have decided to venture into the old and wild places of the world, looking for ancient treasures and enough power to carve your way in blood through the world!
You have come to a land called Rhudaur, on the western steppes of the Misty Mountains, far away from your home, in search of the ruined tower of Amon Sûl. You heard the caves below were infested by vermin and undead.
To the east lies another dangerous place: the Trollshaws. It is an old forest infested with trolls and all kinds of wild animals.
After days of travels you have found the ruined tower and entered the caves, what will you find there...
]]
-- ToME - Tales of Middle-Earth
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
return [[Welcome #LIGHT_GREEN#]]..name..[[#WHITE#.
You have died ages ago, but that did not stop you, you were raised as an undead skeleton.
After wandering aimlessly for eons you found a goal: to become a force to be reckonned with in this world.
You have decided to venture into the old and wild places of the world, looking for ancient treasures and enough power to carve your way in blood through the world!
You have come to a land called Rhudaur, on the western steppes of the Misty Mountains, far away from your home, in search of the ruined tower of Amon Sûl. You heard the caves below were infested by vermin and undead.
To the east lies another dangerous place: the Trollshaws. It is an old forest infested with trolls and all kinds of wild animals.
After days of travels you have found the ruined tower and entered the caves, what will you find there...
]]
-- ToME - Tales of Middle-Earth
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
return "New Race: #LIGHT_GREEN#Ghoul (Undead)",
[[
Ghouls are evil undeads creatures. Usually raised by necromancers to serve as mindless servants, some however manage to keep their sentience
and roam the world in a blazing path of destruction.
While you have died at the hands of such a creature you can now create a new character with the #LIGHT_GREEN#Ghoul race#WHITE#.
Race features:#YELLOW#
- great poison resistance
- bleeding immunity
- stun resistance
- fear immunity
- special ghoul talents: ghoulish leap, gnaw and retch#WHITE#
]]
-- ToME - Tales of Middle-Earth
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
return "New Race: #LIGHT_GREEN#Skeleton (Undead)",
[[
Skeletons are evil undeads creatures. Usually raised by necromancers to serve as mindless servants, some however manage to keep their sentience
and roam the world in a blazing path of destruction.
While you have died at the hands of such a creature you can now create a new character with the #LIGHT_GREEN#Skeleton race#WHITE#.
Race features:#YELLOW#
- poison immunity
- bleeding immunity
- fear immunity
- no need to breath
- special skeleton talents: sharp bones, bone amour, re-assemble#WHITE#
]]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment