
# make sure that if a decision requires the Book of Nod, you can see where its parts are

POD_any_book_of_nod_objective_is_shown = {
	OR = {
		library_victory_objective_is_shown = yes
		demonic_knowledge_objective_is_shown = yes
		prodigal_objective_is_shown = yes
		storyteller_quest_is_shown = yes
		
		# Judges objectives (there's multiple)
		AND = {
			faith = faith:judge
			has_trait = supehunter
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:judge_research_origins_vampires_3rdgen_objective_decision
			}
		}
	}
}

library_victory_objective_is_shown = {
	is_playable_character = yes
	is_vampire_trigger = yes
	OR = {
		has_trait = bloodsorceryadvanced
		is_tremere_clan_or_bloodline_trigger = yes
		is_cappadocian_trigger = yes
		is_giovanni_trigger = yes
		AND = {
			learning >= 25
			has_trait = scholar
		}
	}
	NOT = {
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:library_victory_objective_decision
		}
	}
}

demonic_knowledge_objective_is_shown = {
	has_trait = demon
	has_character_flag = demonic_objective_knowledge_flag
	is_target_in_global_variable_list = {
		name = unavailable_unique_decisions
		target = flag:POD_demon_breakdown_the_abyss_objective_decision
	}
	NOT = {
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:demonic_knowledge_objective_decsion
		}
	}
}

prodigal_objective_is_shown = {
	is_playable_character = yes
	has_POD_fae_blood_trigger = yes
	OR = {
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:destroy_inquisition_objective_decision
		}
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:constantinian_objective_decision
		}
		POD_reached_endgame_date_trigger = { YEAR = 1430 }
	}
	NOT = {
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:prodigal_objective_decision
		}
	}
}

storyteller_quest_is_shown = {
	has_character_flag = storyteller_quest
	NOT = { has_perk = storyteller_perk }
}


# Jerusalem Objectives

POD_can_maintain_the_sleeper_in_jerusalem = {
	house = house:house_moloch
}

POD_can_wake_the_sleeper_in_jerusalem = {
	OR = {
		house = house:house_nergal
		house = house:house_angellisater
		is_infernalist_trigger = yes
		is_cultist_trigger = yes
	}
}