Skip to content
Snippets Groups Projects
Commit 747b50e0 authored by dg's avatar dg
Browse files

randomize birth cant change difficulty/campaign

git-svn-id: http://svn.net-core.org/repos/t-engine4@3833 51575b47-30f0-44d4-a5cc-537603b46e54
parent c7cbd4cb
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
-- Select the zone
local Map = require "engine.Map"
local zone = game.zone.display_name()
local zone = game.zone.display_name and game.zone.display_name() or game.zone.name
if not wda.zones[zone] then wda.zones[zone] = {} end
wda = wda.zones[zone]
......
......@@ -236,6 +236,7 @@ function _M:randomBirth()
})
self.c_name:setText(namegen:generate())
--[[
-- Random campaign
local camp, camp_id = nil
repeat camp, camp_id = rng.table(self.c_campaign.c_list.list)
......@@ -249,7 +250,7 @@ function _M:randomBirth()
until diff.name ~= "Tutorial" and not diff.locked
self.c_difficulty.c_list.sel = diff_id
self:difficultyUse(diff)
--]]
-- Random race
local race, race_id = nil
repeat race, race_id = rng.table(self.all_races)
......
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