summaryrefslogtreecommitdiff
path: root/lib/mods/theme/scpt/gods_new.lua
blob: 1256932a753f57393cf5e42fa90aeed577aed1a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
-- This file contains all the new gods

GOD_AULE = add_god
{
	["name"] = "Aule the Smith",
	["desc"] =
	{
		"Aule is a smith, and the creator of the Dwarves."
	},
	["hooks"] =
	{
	}
}

GOD_VARDA = add_god
{
	["name"] = "Varda Elentari",
	["desc"] =
	{
		"The Queen of the Stars. In light is her power and joy."
	},
	["hooks"] =
	{
		[HOOK_CALC_LITE] = function()
			if (player.pgod == GOD_VARDA) then
				-- increase lite radius
				player.cur_lite = player.cur_lite + 1
			end
		end,
	},
}

GOD_ULMO = add_god
{
	["name"] = "Ulmo",
	["desc"] =
	{
		"Ulmo is called Lord of Waters, he rules all that is water on Arda."
	},
	["hooks"] =
	{
		[HOOK_MONSTER_DEATH] = function(m_idx)
			if (player.pgod == GOD_ULMO) then
				m_ptr = monster(m_idx)
				if 
				(m_ptr.r_idx == test_monster_name("Swordfish"))  or 
				(m_ptr.r_idx == test_monster_name("Barracuda"))  or 
				(m_ptr.r_idx == test_monster_name("Globefish"))  or 
				(m_ptr.r_idx == test_monster_name("Aquatic bear"))  or 
				(m_ptr.r_idx == test_monster_name("Pike"))  or 
				(m_ptr.r_idx == test_monster_name("Electric eel"))  or 
				(m_ptr.r_idx == test_monster_name("Giant crayfish"))  or 
				(m_ptr.r_idx == test_monster_name("Mermaid"))  or 
				(m_ptr.r_idx == test_monster_name("Leviathan"))  or 
				(m_ptr.r_idx == test_monster_name("Box jellyfish"))  or 
				(m_ptr.r_idx == test_monster_name("Giant piranha"))  or 
				(m_ptr.r_idx == test_monster_name("Piranha"))  or 
				(m_ptr.r_idx == test_monster_name("Ocean naga"))  or 
				(m_ptr.r_idx == test_monster_name("Whale"))  or 
				(m_ptr.r_idx == test_monster_name("Octopus"))  or 
				(m_ptr.r_idx == test_monster_name("Giant octopus"))  or 
				(m_ptr.r_idx == test_monster_name("Drowned soul"))  or 
				(m_ptr.r_idx == test_monster_name("Tiger shark"))  or 
				(m_ptr.r_idx == test_monster_name("Hammerhead shark"))  or 
				(m_ptr.r_idx == test_monster_name("Great white shark"))  or 
				(m_ptr.r_idx == test_monster_name("White shark"))  or 
				(m_ptr.r_idx == test_monster_name("Stargazer"))  or 
				(m_ptr.r_idx == test_monster_name("Flounder"))  or 
				(m_ptr.r_idx == test_monster_name("Giant turtle"))  or 
				(m_ptr.r_idx == test_monster_name("Killer whale"))  or 
				(m_ptr.r_idx == test_monster_name("Water naga"))  or 
				(m_ptr.r_idx == test_monster_name("Behemoth")) then
					-- He doesn't like it if you kill these monsters
					set_grace(player.grace - 20)
				end
				if 
				(m_ptr.r_idx == test_monster_name("Seahorse"))  or 
				(m_ptr.r_idx == test_monster_name("Aquatic elven warrior")) or
				(m_ptr.r_idx == test_monster_name("Aquatic elven mage")) or
				(m_ptr.r_idx == test_monster_name("Wavelord")) or
				(m_ptr.r_idx == test_monster_name("The Watcher in the Water")) then
					-- These monsters earn higher penalties
					set_grace(player.grace - 500)
				end
			end
		end,
	},
}

GOD_MANDOS = add_god
{
	["name"] = "Mandos",
	["desc"] =
	{
		"The Doomsman of the Valar and keeper of the slain."
	},
	["hooks"] =
	{
		[HOOK_MONSTER_DEATH] = function(m_idx)
			if (player.pgod == GOD_MANDOS) then
				m_ptr = monster(m_idx)
				if
				(m_ptr.r_idx == test_monster_name("Vampire")) or 
				(m_ptr.r_idx == test_monster_name("Master vampire")) or 
				(m_ptr.r_idx == test_monster_name("Oriental vampire")) or 
				(m_ptr.r_idx == test_monster_name("Vampire lord")) or 
				(m_ptr.r_idx == test_monster_name("Vampire orc")) or 
				(m_ptr.r_idx == test_monster_name("Vampire yeek")) or 
				(m_ptr.r_idx == test_monster_name("Vampire ogre")) or 
				(m_ptr.r_idx == test_monster_name("Vampire troll")) or 
				(m_ptr.r_idx == test_monster_name("Vampire dwarf")) or 
				(m_ptr.r_idx == test_monster_name("Vampire gnome")) or
				(m_ptr.r_idx == test_monster_name("Elder vampire")) then
					-- He really likes it if you kill Vampires (but not the adventurer kind :P)
					set_grace(player.grace + 50)
				end

				if
				(m_ptr.r_idx == test_monster_name("Vampire elf")) or 
				(m_ptr.r_idx == test_monster_name("Thuringwethil, the Vampire Messenger")) then
					-- He *loves* it if you kill vampire Elves
					-- He will also thank you extra kindly if you kill Thuringwethil
					set_grace(player.grace + 200)
				end

				if 
				(m_ptr.r_idx == test_monster_name("Dark elf")) or 
				(m_ptr.r_idx == test_monster_name("Dark elven druid")) or 
				(m_ptr.r_idx == test_monster_name("Eol, the Dark Elf")) or 
				(m_ptr.r_idx == test_monster_name("Maeglin, the Traitor of Gondolin")) or 
				(m_ptr.r_idx == test_monster_name("Dark elven mage")) or 
				(m_ptr.r_idx == test_monster_name("Dark elven warrior")) or 
				(m_ptr.r_idx == test_monster_name("Dark elven priest")) or 
				(m_ptr.r_idx == test_monster_name("Dark elven lord")) or 
				(m_ptr.r_idx == test_monster_name("Dark elven warlock")) or 
				(m_ptr.r_idx == test_monster_name("Dark elven sorcerer")) then 
					-- He doesn't like it if you kill normal Elves (means more work for him :P)
					set_grace(player.grace - 20)
				end
				if 
				(m_ptr.r_idx == test_monster_name("Glorfindel of Rivendell")) or 
				(m_ptr.r_idx == test_monster_name("Finrod Felagund")) or 
				(m_ptr.r_idx == test_monster_name("Thranduil, King of the Wood Elves")) or 
				(m_ptr.r_idx == test_monster_name("Aquatic elven warrior")) or 
				(m_ptr.r_idx == test_monster_name("Aquatic elven mage")) or 
				(m_ptr.r_idx == test_monster_name("High-elven ranger")) or 
				(m_ptr.r_idx == test_monster_name("Elven archer")) then
					-- He hates it if you kill coaligned Elves
					set_grace(player.grace - 200)
				end
				if 
				(m_ptr.r_idx == test_monster_name("Child spirit")) or 
				(m_ptr.r_idx == test_monster_name("Young spirit")) or 
				(m_ptr.r_idx == test_monster_name("Mature spirit")) or 
				(m_ptr.r_idx == test_monster_name("Experienced spirit")) or 
				(m_ptr.r_idx == test_monster_name("Wise spirit")) then
					-- He *hates* it if you kill the coaligned Spirits
					set_grace(player.grace - 1000)
				end
			end
		end
	}
}