Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_dynasty_tree_listeners()
- out("#### Adding Dynasty Tree Listeners ####");
- core:add_listener(
- "DynastyTree_ResearchCompleted",
- "ResearchCompleted",
- true,
- function(context)
- DynastyTree_ResearchCompleted(context);
- end,
- true
- );
- end
- function DynastyTree_ResearchCompleted(context)
- local faction = context:faction();
- local tech_key = context:technology();
- if faction:is_human() == true and faction_name = "wh2_dlc09_tmb_tomb_kings" then
- -- SPAWN TOMB KINGS
- if tech_key:starts_with("tech_dlc09_tmb_tomb_king_") then
- local tomb_king = dynasty_tree_tomb_kings[tech_key];
- if tomb_king ~= nil then
- create_tomb_king(faction:name(), tomb_king);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement