Commit 366acc70ddcb7f5a5a5554cfb7799a3a378481ab

Authored by DarkGod
1 parent c3c39615

Archmage's Wildfire, Storm, Ice and Stone trees are now available without an unl…

…ock (they still require a category point)
... ... @@ -2901,10 +2901,6 @@ unlocks_list = {
2901 2901 race_ogre = "Race: Ogre",
2902 2902
2903 2903 mage = "Class: Archmage",
2904   - mage_tempest = "Class tree: Storm",
2905   - mage_geomancer = "Class tree: Stone",
2906   - mage_pyromancer = "Class tree: Wildfire",
2907   - mage_cryomancer = "Class tree: Uttercold",
2908 2904 mage_necromancer = "Class: Necromancer",
2909 2905 cosmetic_class_alchemist_drolem = "Class feature: Alchemist's Drolem",
2910 2906
... ...
... ... @@ -130,7 +130,7 @@ newAchievement{
130 130 newAchievement{
131 131 name = "Earth Master", id = "GEOMANCER",
132 132 show = "name",
133   - desc = _t[[Killed Harkor'Zun and unlocked Stone magic.]],
  133 + desc = _t[[Killed Harkor'Zun.]],
134 134 mode = "player",
135 135 }
136 136
... ...
... ... @@ -27,16 +27,6 @@ newAchievement{
27 27 return self.nb > 1000000 and profile.mod.allow_build.mage
28 28 end,
29 29 track = function(self) return tstring{tostring(math.floor(self.nb or 0))," / 1000000"} end,
30   - on_gain = function(_, src, personal)
31   - game:setAllowedBuild("mage_pyromancer", true)
32   - local p = game.party:findMember{main=true}
33   - if p.descriptor.subclass == "Archmage" then
34   - if p:knowTalentType("spell/wildfire") == nil then
35   - p:learnTalentType("spell/wildfire", false)
36   - p:setTalentTypeMastery("spell/wildfire", 1.3)
37   - end
38   - end
39   - end,
40 30 }
41 31 newAchievement{
42 32 name = "Cryomancer",
... ... @@ -48,16 +38,6 @@ newAchievement{
48 38 return self.nb > 1000000 and profile.mod.allow_build.mage
49 39 end,
50 40 track = function(self) return tstring{tostring(math.floor(self.nb or 0))," / 1000000"} end,
51   - on_gain = function(_, src, personal)
52   - game:setAllowedBuild("mage_cryomancer", true)
53   - local p = game.party:findMember{main=true}
54   - if p.descriptor.subclass == "Archmage" then
55   - if p:knowTalentType("spell/ice") == nil then
56   - p:learnTalentType("spell/ice", false)
57   - p:setTalentTypeMastery("spell/ice", 1.3)
58   - end
59   - end
60   - end,
61 41 }
62 42 newAchievement{
63 43 name = "Lichform",
... ...
... ... @@ -188,9 +188,13 @@ newBirthDescriptor{
188 188 ["spell/arcane"]={true, 0.3},
189 189 ["spell/aether"]={false, 0.3},
190 190 ["spell/fire"]={true, 0.3},
  191 + ["spell/wildfire"]={false, 0.3},
191 192 ["spell/earth"]={true, 0.3},
  193 + ["spell/stone"]={false, 0.3},
192 194 ["spell/water"]={true, 0.3},
  195 + ["spell/ice"]={false, 0.3},
193 196 ["spell/air"]={true, 0.3},
  197 + ["spell/storm"]={false, 0.3},
194 198 ["spell/phantasm"]={true, 0.3},
195 199 ["spell/temporal"]={true, 0.3},
196 200 ["spell/meta"]={false, 0.3},
... ... @@ -199,12 +203,6 @@ newBirthDescriptor{
199 203 ["spell/aegis"]={true, 0.3},
200 204 ["cunning/survival"]={false, 0.0},
201 205 },
202   - unlockable_talents_types = {
203   - ["spell/wildfire"]={false, 0.3, "mage_pyromancer"},
204   - ["spell/ice"]={false, 0.3, "mage_cryomancer"},
205   - ["spell/stone"]={false, 0.3, "mage_geomancer"},
206   - ["spell/storm"]={false, 0.3, "mage_tempest"},
207   - },
208 206 talents = {
209 207 [ActorTalents.T_MANATHRUST] = 1,
210 208 [ActorTalents.T_FLAME] = 1,
... ...
... ... @@ -274,6 +274,7 @@ newBirthDescriptor{
274 274 ["spell/fire"]={true, 0.3},
275 275 ["spell/air"]={true, 0.3},
276 276 ["spell/earth"]={true, 0.3},
  277 + ["spell/stone"]={false, 0.3},
277 278 ["spell/conveyance"]={true, 0.0},
278 279 ["spell/aegis"]={true, 0.0},
279 280 ["spell/enhancement"]={true, 0.3},
... ... @@ -288,9 +289,6 @@ newBirthDescriptor{
288 289 ["cunning/survival"]={true, 0.0},
289 290 ["cunning/dirty"]={true, 0.3},
290 291 },
291   - unlockable_talents_types = {
292   - ["spell/stone"]={false, 0.3, "mage_geomancer"},
293   - },
294 292 birth_example_particles = {
295 293 function(actor) if core.shader.active(4) then
296 294 local slow = rng.percent(50)
... ...
... ... @@ -204,16 +204,6 @@ newEntity{ base = "BASE_NPC_XORN", define_as = "FULL_HARKOR_ZUN",
204 204 resolvers.sustains_at_birth(),
205 205
206 206 on_die = function(self)
207   - if profile.mod.allow_build.mage then
208   - game:setAllowedBuild("mage_geomancer", true)
209   - world:gainAchievement("GEOMANCER", game.player)
210   - local p = game.party:findMember{main=true}
211   - if p.descriptor.subclass == "Archmage" or p.descriptor.subclass == "Arcane Blade" then
212   - if p:knowTalentType("spell/stone") == nil then
213   - p:learnTalentType("spell/stone", false)
214   - p:setTalentTypeMastery("spell/stone", p.descriptor.subclass == "Archmage" and 1.3 or 1.1)
215   - end
216   - end
217   - end
  207 + world:gainAchievement("GEOMANCER", game.player)
218 208 end,
219 209 }
... ...
... ... @@ -60,7 +60,6 @@ end
60 60 on_status_change = function(self, who, status, sub)
61 61 if self:isCompleted() then
62 62 who:setQuestStatus(self.id, engine.Quest.DONE)
63   - game:setAllowedBuild("mage_tempest", true)
64 63 world:gainAchievement("EYE_OF_THE_STORM", game.player:resolveSource())
65 64 game:unlockBackground("derth", "Derth")
66 65 local p = game.party:findMember{main=true}
... ...