Skip to content
Snippets Groups Projects
rogue.lua 7.45 KiB
Newer Older
  • Learn to ignore specific revisions
  • dg's avatar
    dg committed
    -- ToME - Tales of Maj'Eyal
    
    dg's avatar
    dg committed
    -- Copyright (C) 2009, 2010, 2011, 2012 Nicolas Casalini
    
    dg's avatar
    dg committed
    --
    -- 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
    
    
    dg's avatar
    dg committed
    newBirthDescriptor{
    	type = "class",
    	name = "Rogue",
    	desc = {
    
    dg's avatar
    dg committed
    		"Rogues are masters of tricks; they can strike from the shadows, and lure monsters into deadly traps.",
    
    dg's avatar
    dg committed
    	},
    	descriptor_choices =
    	{
    		subclass =
    		{
    
    dg's avatar
    dg committed
    			__ALL__ = "disallow",
    
    dg's avatar
    dg committed
    			Rogue = "allow",
    
    dg's avatar
    dg committed
    			Shadowblade = "allow",
    
    dg's avatar
    dg committed
    			Marauder = "allow",
    
    dg's avatar
    dg committed
    		},
    	},
    	copy = {
    		max_life = 100,
    	},
    }
    
    newBirthDescriptor{
    	type = "subclass",
    	name = "Rogue",
    	desc = {
    
    dg's avatar
    dg committed
    		"Rogues are masters of tricks. A Rogue can get behind you unnoticed and stab you in the back for tremendous damage.",
    
    dg's avatar
    dg committed
    		"Rogues usually prefer to dual-wield daggers. They can also become trapping experts, detecting and disarming traps as well as setting them.",
    
    dg's avatar
    dg committed
    		"Their most important stats are: Dexterity and Cunning",
    
    dg's avatar
    dg committed
    		"#GOLD#Stat modifiers:",
    
    		"#LIGHT_BLUE# * +1 Strength, +3 Dexterity, +0 Constitution",
    		"#LIGHT_BLUE# * +0 Magic, +0 Willpower, +5 Cunning",
    
    dg's avatar
    dg committed
    		"#GOLD#Life per level:#LIGHT_BLUE# +0",
    
    dg's avatar
    dg committed
    	},
    
    	power_source = {technique=true},
    
    	stats = { dex=3, str=1, cun=5, },
    
    dg's avatar
    dg committed
    	talents_types = {
    		["technique/dualweapon-attack"]={true, 0.3},
    		["technique/dualweapon-training"]={true, 0.3},
    
    		["technique/combat-techniques-active"]={false, 0.3},
    		["technique/combat-techniques-passive"]={false, 0.3},
    
    dg's avatar
    dg committed
    		["technique/combat-training"]={true, 0.3},
    
    		["technique/field-control"]={false, 0},
    
    dg's avatar
    dg committed
    		["cunning/stealth"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/trapping"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/dirty"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/lethality"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/survival"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/scoundrel"]={true, 0.3},
    
    dg's avatar
    dg committed
    	},
    
    	unlockable_talents_types = {
    		["cunning/poisons"]={false, 0.3, "rogue_poisons"},
    	},
    
    dg's avatar
    dg committed
    	talents = {
    
    		[ActorTalents.T_STEALTH] = 1,
    
    dg's avatar
    dg committed
    		[ActorTalents.T_TRAP_MASTERY] = 1,
    
    dg's avatar
    dg committed
    		[ActorTalents.T_LETHALITY] = 1,
    
    dg's avatar
    dg committed
    		[ActorTalents.T_DUAL_STRIKE] = 1,
    
    dg's avatar
    dg committed
    	},
    
    	copy = {
    		equipment = resolvers.equip{ id=true,
    			{type="weapon", subtype="dagger", name="iron dagger", autoreq=true, ego_chance=-1000},
    			{type="weapon", subtype="dagger", name="iron dagger", autoreq=true, ego_chance=-1000},
    			{type="armor", subtype="light", name="rough leather armour", autoreq=true, ego_chance=-1000}
    		},
    	},
    
    dg's avatar
    dg committed
    }
    
    newBirthDescriptor{
    	type = "subclass",
    	name = "Shadowblade",
    	desc = {
    
    dg's avatar
    dg committed
    		"Shadowblades are Rogues that are touched by the gift of magic, able to kill with their daggers under a veil of stealth while casting spells to enhance their performance and survival.",
    
    dg's avatar
    dg committed
    		"Their use of magic is innate and not really studied; as such they do not naturally regenerate mana and must use external means of recharging.",
    		"They use the schools of Phantasm, Temporal, Divination and Conveyance magic to enhance their arts.",
    
    dg's avatar
    dg committed
    		"Their most important stats are: Dexterity, Cunning and Magic",
    
    dg's avatar
    dg committed
    		"#GOLD#Stat modifiers:",
    
    		"#LIGHT_BLUE# * +0 Strength, +3 Dexterity, +0 Constitution",
    		"#LIGHT_BLUE# * +3 Magic, +0 Willpower, +3 Cunning",
    
    dg's avatar
    dg committed
    		"#GOLD#Life per level:#LIGHT_BLUE# +0",
    
    dg's avatar
    dg committed
    	},
    
    	power_source = {technique=true, arcane=true},
    
    	stats = { dex=3, mag=3, cun=3, },
    
    dg's avatar
    dg committed
    	talents_types = {
    
    dg's avatar
    dg committed
    		["spell/phantasm"]={true, 0},
    		["spell/temporal"]={false, 0},
    		["spell/divination"]={false, 0},
    		["spell/conveyance"]={true, 0},
    		["technique/dualweapon-attack"]={true, 0.2},
    		["technique/dualweapon-training"]={true, 0.2},
    
    dg's avatar
    dg committed
    		["technique/combat-techniques-active"]={true, 0.3},
    
    		["technique/combat-techniques-passive"]={false, 0.3},
    
    dg's avatar
    dg committed
    		["technique/combat-training"]={true, 0.2},
    
    dg's avatar
    dg committed
    		["cunning/stealth"]={false, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/survival"]={true, 0.1},
    
    dg's avatar
    dg committed
    		["cunning/lethality"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/dirty"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/shadow-magic"]={true, 0.3},
    
    		["cunning/ambush"]={false, 0.3},
    
    dg's avatar
    dg committed
    	},
    	talents = {
    
    		[ActorTalents.T_DUAL_STRIKE] = 1,
    
    dg's avatar
    dg committed
    		[ActorTalents.T_SHADOW_COMBAT] = 1,
    
    dg's avatar
    dg committed
    		[ActorTalents.T_PHASE_DOOR] = 1,
    
    		[ActorTalents.T_LETHALITY] = 1,
    
    dg's avatar
    dg committed
    	},
    
    dg's avatar
    dg committed
    	copy = {
    
    		resolvers.inscription("RUNE:_MANASURGE", {cooldown=25, dur=10, mana=620}),
    
    		equipment = resolvers.equip{ id=true,
    			{type="weapon", subtype="dagger", name="iron dagger", autoreq=true, ego_chance=-1000},
    			{type="weapon", subtype="dagger", name="iron dagger", autoreq=true, ego_chance=-1000},
    			{type="armor", subtype="light", name="rough leather armour", autoreq=true, ego_chance=-1000}
    		},
    
    dg's avatar
    dg committed
    }
    
    dg's avatar
    dg committed
    
    newBirthDescriptor{
    	type = "subclass",
    	name = "Marauder",
    	locked = function() return profile.mod.allow_build.rogue_marauder end,
    	locked_desc = "I will not hide and I will not sneak - come dance with my blades and we'll see who's weak. Snapping bone and cracking skull, it's the sounds of battle that make life full!",
    	desc = {
    
    dg's avatar
    dg committed
    		"The wilds of Maj'Eyal are not a safe place. Untamed beasts and wandering dragons may seem a great threat, but the true perils walk on two legs. Thieves and brigands, assassins and opportunistic adventurers, even mad wizards and magic-hating zealots all carry danger to those who venture beyond the safety of city walls.",
    
    dg's avatar
    dg committed
    		"Amidst this chaos wanders one class of rogue that has learned to take by force rather than subterfuge. With refined techniques, agile feats and brawn-backed blades the Marauder seeks out his targets and removes them by the most direct methods. He uses dual weapons backed by advanced combat training to become highly effective in battle, and he is unafraid to use the dirtiest tactics when the odds are against him.",
    		"Their most important stats are: Strength, Dexterity and Cunning",
    		"#GOLD#Stat modifiers:",
    		"#LIGHT_BLUE# * +4 Strength, +4 Dexterity, +0 Constitution",
    		"#LIGHT_BLUE# * +0 Magic, +0 Willpower, +1 Cunning",
    
    dg's avatar
    dg committed
    		"#GOLD#Life per level:#LIGHT_BLUE# +0",
    
    dg's avatar
    dg committed
    	},
    	stats = { dex=4, str=4, cun=1, },
    	talents_types = {
    		["technique/dualweapon-attack"]={true, 0.2},
    		["technique/dualweapon-training"]={true, 0.2},
    		["technique/combat-techniques-active"]={true, 0.3},
    
    		["technique/combat-techniques-passive"]={true, 0.0},
    
    dg's avatar
    dg committed
    		["technique/combat-training"]={true, 0.3},
    		["technique/field-control"]={true, 0.3},
    		["technique/battle-tactics"]={false, 0.2},
    		["technique/mobility"]={true, 0.3},
    		["technique/thuggery"]={true, 0.3},
    
    		["technique/conditioning"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/dirty"]={true, 0.3},
    
    dg's avatar
    dg committed
    		["cunning/tactical"]={false, 0.2},
    
    dg's avatar
    dg committed
    		["cunning/survival"]={true, 0.3},
    	},
    	unlockable_talents_types = {
    		["cunning/poisons"]={false, -0.1, "rogue_poisons"},
    	},
    	talents = {
    		[ActorTalents.T_DIRTY_FIGHTING] = 1,
    		[ActorTalents.T_SKULLCRACKER] = 1,
    		[ActorTalents.T_HACK_N_BACK] = 1,
    		[ActorTalents.T_DUAL_STRIKE] = 1,
    
    		[ActorTalents.T_ARMOUR_TRAINING] = 1,
    	},
    	copy = {
    		equipment = resolvers.equip{ id=true,
    			{type="weapon", subtype="dagger", name="iron dagger", autoreq=true, ego_chance=-1000},
    			{type="weapon", subtype="dagger", name="iron dagger", autoreq=true, ego_chance=-1000},
    			{type="armor", subtype="light", name="rough leather armour", autoreq=true, ego_chance=-1000},
    			{type="armor", subtype="head", name="iron helm", autoreq=true, ego_chance=-1000},
    		},
    
    dg's avatar
    dg committed
    	},
    }