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

Sometimes an old volcano erupts at the center of the Daikara

git-svn-id: http://svn.net-core.org/repos/t-engine4@6667 51575b47-30f0-44d4-a5cc-537603b46e54
parent e8e31649
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,11 @@ desc = function(self, who)
desc[#desc+1] = "#SLATE#* You must explore the Sandworm Lair and find out what lurks there and what treasures are to be gained!#WHITE#"
end
if self:isCompleted("daikara") then
desc[#desc+1] = "#LIGHT_GREEN#* You have explored the Daikara and vanquished the Dragon.#WHITE#"
if self:isCompleted("daikara-volcano") then
desc[#desc+1] = "#LIGHT_GREEN#* You have explored the Daikara and vanquished the huge fire dragon that dwelled there.#WHITE#"
else
desc[#desc+1] = "#LIGHT_GREEN#* You have explored the Daikara and vanquished the huge ice dragon that dwelled there.#WHITE#"
end
else
desc[#desc+1] = "#SLATE#* You must explore the Daikara and find out what lurks there and what treasures are to be gained!#WHITE#"
end
......
......@@ -117,12 +117,11 @@ newEntity{ define_as = "VARSHA_THE_WRITHING",
resolvers.talents{
[Talents.T_KNOCKBACK]=3,
[Talents.T_ICE_STORM]=2,
[Talents.T_FREEZE]=3,
[Talents.T_FIRE_STORM]=3,
[Talents.T_ICE_CLAW]={base=4, every=6},
[Talents.T_ICY_SKIN]={base=3, every=7},
[Talents.T_ICE_BREATH]={base=4, every=5},
[Talents.T_WING_BUFFET]={base=4, every=6},
[Talents.T_BELLOWING_ROAR]={base=3, every=7},
[Talents.T_FIRE_BREATH]={base=4, every=5},
},
resolvers.sustains_at_birth(),
......@@ -134,6 +133,7 @@ newEntity{ define_as = "VARSHA_THE_WRITHING",
game.state:activateBackupGuardian("MASSOK", 4, 43, "I have heard there is a dragon hunter in the Daikara that is unhappy about the wyrm being already dead.")
game.player:resolveSource():grantQuest("starter-zones")
game.player:resolveSource():setQuestStatus("starter-zones", engine.Quest.COMPLETED, "daikara")
game.player:resolveSource():setQuestStatus("starter-zones", engine.Quest.COMPLETED, "daikara-volcano")
end,
}
......
......@@ -18,7 +18,6 @@
-- darkgod@te4.org
local layout = game.state:alternateZone(short_name, {"VOLCANO", 2})
layout="VOLCANO"
local is_volcano = layout == "VOLCANO"
return {
......@@ -56,8 +55,6 @@ return {
class = "mod.class.generator.actor.Random",
nb_npc = {20, 30},
guardian = is_volcano and "VARSHA_THE_WRITHING" or "RANTHA_THE_WORM",
intentionaly breakso I rememebr to finis this
make the last level a caldera
},
object = {
class = "engine.generator.object.Random",
......@@ -75,6 +72,30 @@ make the last level a caldera
up = "ROCKY_UP_WILDERNESS",
}, },
},
[4] = is_volcano and {
generator = {
map = {
class = "mod.class.generator.map.Caldera",
trees_max_percent = 70,
trees_sqrt_percent = 20,
mountain = "MOUNTAIN_WALL",
tree = "ROCKY_SNOWY_TREE",
grass = function() return rng.percent(60) and "ROCKY_GROUND" or "LAVA_FLOOR" end,
water = "LAVA_FLOOR",
up = "ROCKY_UP4",
down = "LAVA_FLOOR", down_center = true,
},
actor = {
class = "mod.class.generator.actor.Random",
nb_npc = {40, 40},
},
object = {
class = "engine.generator.object.Random",
nb_object = {10, 12},
filters = { {type="gem"} }
},
},
} or nil,
},
post_process = function(level)
......@@ -111,7 +132,7 @@ make the last level a caldera
on_enter = function(lev)
if lev == 1 and not game.level.data.warned and game.zone.is_volcano then
game.level.data.warned = true
require("engine.ui.Dialog"):simpleLongPopup("BOOM!", "As you walk toward the Daikara you can not fail to notice the huge volcano that erupts in the center of it, right where the path is taking you.", 400)
require("engine.ui.Dialog"):simpleLongPopup("BOOM!", "As you walk toward the Daikara you can not fail to notice the huge volcano that erupts in the center of it, right where the path is taking you.\nYou see pyroclasts ejected from the heart of the volcano, they look relatively harmless but very impressive.", 400)
end
end,
}
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