Skip to content
Snippets Groups Projects
Commit 16d58d54 authored by DarkGod's avatar DarkGod
Browse files

Characters that know Antimagic can enter Zigur, no matter the rest of the conditions

parent 38a12d6d
No related branches found
No related tags found
No related merge requests found
......@@ -553,7 +553,17 @@ newEntity{ base="TOWN", define_as = "TOWN_ZIGUR",
name = "Zigur (Town)", add_mos = {{image="terrain/village_01.png"}},
desc = "Ziguranth main training ground",
change_zone="town-zigur",
change_level_check = function() local p = game.party:findMember{main=true} if p:attr("has_arcane_knowledge") or p:attr("undead") then require("engine.ui.Dialog"):simplePopup("Zigur", "Somehow as magic user you feel this place is not safe for you.") return true end return false end,
change_level_check = function()
local p = game.party:findMember{main=true}
if p:attr("forbid_arcane") then
return false
end
if p:attr("has_arcane_knowledge") or p:attr("undead") then
require("engine.ui.Dialog"):simplePopup("Zigur", "Somehow as magic user you feel this place is not safe for you.")
return true
end
return false
end,
}
newEntity{ base="TOWN", define_as = "TOWN_IRON_COUNCIL",
name = "Iron Council (Town)",
......
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