Commit a170d4dfd0a5ddab6d3181b730be55dc51ac5300
1 parent
28e012fb
plop
git-svn-id: http://svn.net-core.org/repos/t-engine4@1636 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
2 changed files
with
82 additions
and
0 deletions
1 | +-- ToME - Tales of Middle-Earth | |
2 | +-- Copyright (C) 2009, 2010 Nicolas Casalini | |
3 | +-- | |
4 | +-- This program is free software: you can redistribute it and/or modify | |
5 | +-- it under the terms of the GNU General Public License as published by | |
6 | +-- the Free Software Foundation, either version 3 of the License, or | |
7 | +-- (at your option) any later version. | |
8 | +-- | |
9 | +-- This program is distributed in the hope that it will be useful, | |
10 | +-- but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | +-- GNU General Public License for more details. | |
13 | +-- | |
14 | +-- You should have received a copy of the GNU General Public License | |
15 | +-- along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | +-- | |
17 | +-- Nicolas Casalini "DarkGod" | |
18 | +-- darkgod@te4.org | |
19 | + | |
20 | +local loadIfNot = function(f) | |
21 | + if loaded[f] then return end | |
22 | + load(f, entity_mod) | |
23 | +end | |
24 | + | |
25 | +loadIfNot("/data/general/objects/objects.lua") | |
26 | + | |
27 | +-- Artifacts | |
28 | +loadIfNot("/data/general/objects/world-artifacts-far-east.lua") | ... | ... |
1 | +-- ToME - Tales of Middle-Earth | |
2 | +-- Copyright (C) 2009, 2010 Nicolas Casalini | |
3 | +-- | |
4 | +-- This program is free software: you can redistribute it and/or modify | |
5 | +-- it under the terms of the GNU General Public License as published by | |
6 | +-- the Free Software Foundation, either version 3 of the License, or | |
7 | +-- (at your option) any later version. | |
8 | +-- | |
9 | +-- This program is distributed in the hope that it will be useful, | |
10 | +-- but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | +-- GNU General Public License for more details. | |
13 | +-- | |
14 | +-- You should have received a copy of the GNU General Public License | |
15 | +-- along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | +-- | |
17 | +-- Nicolas Casalini "DarkGod" | |
18 | +-- darkgod@te4.org | |
19 | + | |
20 | +local Stats = require "engine.interface.ActorStats" | |
21 | +local Talents = require "engine.interface.ActorTalents" | |
22 | + | |
23 | +-- This one starts a quest it has a level and rarity so it can drop randomly, but there are palces where it is more likely to appear | |
24 | +newEntity{ base = "BASE_SCROLL", define_as = "JEWELER_TOME", subtype="tome", no_unique_lore=true, | |
25 | + unique = true, quest=true, | |
26 | + unided_name = "ancient tome", | |
27 | + name = "Ancient Tome titled 'Gems and their uses'", | |
28 | + level_range = {30, 40}, rarity = 120, | |
29 | + color = colors.VIOLET, | |
30 | + is_magic_device = false, | |
31 | + fire_proof = true, | |
32 | + not_in_stores = true, | |
33 | + | |
34 | + on_pickup = function(self, who) | |
35 | + if who == game.player then | |
36 | + self:identify(true) | |
37 | + who:grantQuest("master-jeweler") | |
38 | + end | |
39 | + end, | |
40 | +} | |
41 | + | |
42 | +-- Not a random drop, used by the quest started above | |
43 | +newEntity{ base = "BASE_SCROLL", define_as = "JEWELER_SUMMON", subtype="tome", no_unique_lore=true, | |
44 | + unique = true, quest=true, identified=true, | |
45 | + name = "Scroll of Summoning (Limmir the Jeweler)", | |
46 | + color = colors.VIOLET, | |
47 | + fire_proof = true, | |
48 | + is_magic_device = false, | |
49 | + | |
50 | + max_power = 1, power_regen = 1, | |
51 | + use_power = { name = "summon Limmir the jeweler at the center of the lake of the moon", power = 1, | |
52 | + use = function(self, who) who:hasQuest("master-jeweler"):summon_limmir(who) end | |
53 | + }, | |
54 | +} | ... | ... |
-
Please register or login to post a comment