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

rituals

git-svn-id: http://svn.net-core.org/repos/t-engine4@776 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5cfeda43
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ newBirthDescriptor{
["cunning/survival"]={false, 0.1},
["divine/sun"]={true, 0.3},
["divine/chants"]={true, 0.3},
["divine/glyphs"]={true, 0.3},
["divine/glyphs"]={false, 0.3},
["divine/light"]={false, 0.3},
["divine/twilight"]={true, 0.3},
["divine/hymns"]={true, 0.3},
......
......@@ -17,12 +17,14 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
-- Load other misc things
load("/data/talents/misc/npcs.lua")
-- race & classes
newTalentType{ type="base/class", name = "class", hide = true, description = "The basic talents defining a class." }
newTalentType{ type="base/race", name = "race", hide = true, description = "The various racial bonuses a character can have." }
newTalentType{ type="rituals/rituals", name = "rituals", hide = true, description = "Rituals are not class abilities, you must find them or learn them from other people." }
-- Load other misc things
load("/data/talents/misc/npcs.lua")
load("/data/talents/misc/rituals.lua")
newTalent{
name = "Mana Pool",
......
-- 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
newTalent{
name = "Rituals Capacity",
type = {"rituals/rituals", 1},
points = 5
mode = "passive",
info = function(self, t)
return ([[Allows you to learn up to %d rituals.]]):
format(1.7 * math.ceil(self:getTalentLevel(t)))
end,
}
newTalent{
name = "Rituals Study",
type = {"rituals/rituals", 1},
points = 5
mode = "passive",
info = function(self, t)
return ([[Allows you to learn rituals of level %d at most.]]):
format(math.ceil(self:getTalentLevelRaw(t))
end,
}
......@@ -24,6 +24,7 @@ newTalent{
require = spells_req1,
sustain_mana = 50,
points = 5,
cooldown = 30,
activate = function(self, t)
local power = 5 * self:getTalentLevelRaw(t)
game:playSoundNear(self, "talents/arcane")
......
No preview for this file type
......@@ -566,7 +566,7 @@ int main(int argc, char *argv[])
SDL_WM_SetIcon(IMG_Load_RW(PHYSFSRWOPS_openRead("/data/gfx/te4-icon.png"), TRUE), NULL);
// screen = SDL_SetVideoMode(WIDTH, HEIGHT, 32, SDL_OPENGL | SDL_GL_DOUBLEBUFFER | SDL_HWPALETTE | SDL_HWSURFACE | SDL_RESIZABLE);
glewInit();
// glewInit();
do_resize(WIDTH, HEIGHT, FALSE);
if (screen==NULL) {
printf("error opening screen: %s\n", SDL_GetError());
......
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