Skip to content
Snippets Groups Projects
Commit 03eef3c1 authored by DarkGod's avatar DarkGod
Browse files

Races can define "_forbid_start_override" to not be subjected to...

Races can define "_forbid_start_override" to not be subjected to archmages/chronomancers/.. different starting zones
parent e5339d27
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ newBirthDescriptor{
},
copy = {
class_start_check = function(self)
if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race == "Human" or self.descriptor.race == "Elf") then
if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race == "Human" or self.descriptor.race == "Elf") and not self._forbid_start_override then
self.celestial_race_start_quest = self.starting_quest
self.default_wilderness = {"zone-pop", "ruined-gates-of-morning"}
self.starting_zone = "town-gates-of-morning"
......
......@@ -37,7 +37,7 @@ newBirthDescriptor{
copy = {
-- Chronomancers start in Point Zero
class_start_check = function(self)
if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race ~= "Undead" and self.descriptor.race ~= "Dwarf" and self.descriptor.race ~= "Yeek") then
if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race ~= "Undead" and self.descriptor.race ~= "Dwarf" and self.descriptor.race ~= "Yeek") and not self._forbid_start_override then
self.chronomancer_race_start_quest = self.starting_quest
self.default_wilderness = {"zone-pop", "angolwen-portal"}
self.starting_zone = "town-point-zero"
......
......@@ -200,7 +200,7 @@ newBirthDescriptor{
copy = {
-- Mages start in angolwen
class_start_check = function(self)
if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race == "Human" or self.descriptor.race == "Elf" or self.descriptor.race == "Halfling") then
if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race == "Human" or self.descriptor.race == "Elf" or self.descriptor.race == "Halfling") and not self._forbid_start_override then
self.archmage_race_start_quest = self.starting_quest
self.default_wilderness = {"zone-pop", "angolwen-portal"}
self.starting_zone = "town-angolwen"
......
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