# This file contains (hopefully) all artifacts tagged with "book", as they were becoming quite a few. Consider this THE LIBRARY. It's a thing now.
slots = {
	library = 4
}

#############################
##### Random/Misc Books #####
#############################

necronomicon = { # (DLC: Way of Life)
	picture = "GFX_book_sinister"
	# slot = library # You always make time for reading the Necronomicon...
	flags = { book unholy curse }

	allowed_gift = {
		always = no
	}

	quality = 4
	stacking = no

	learning = 5
	diplomacy = -1
	monthly_character_piety = -2
}

####################################
##### The Hermetic Magnum Opus #####
####################################
# (DLC: Monks & Mystics)

magnum_opus_theurgy_ritual_1 = {
	picture = "GFX_book_red"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 1
	stacking = no

	active = {
		OR = {
			learning >= 12
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 16
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_ritual_2
				}
			}

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_ritual_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_ritual_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
}

magnum_opus_theurgy_ritual_2 = {
	picture = "GFX_book_red"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 2
	stacking = no

	active = {
		OR = {
			learning >= 16
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_ritual_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_ritual_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	monthly_character_piety = 0.5
}

magnum_opus_theurgy_ritual_3 = {
	picture = "GFX_book_red"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 3
	stacking = no

	active = {
		OR = {
			learning >= 20
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_ritual_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	intrigue = 1
	monthly_character_piety = 0.5
}

magnum_opus_theurgy_ritual_4 = {
	picture = "GFX_book_red_glow"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 4
	stacking = no

	active = {
		OR = {
			learning >= 25
			society_member_of = hermetics
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	intrigue = 1
	stewardship = 1
	monthly_character_piety = 0.5
}

magnum_opus_theurgy_contemplation_1 = {
	picture = "GFX_book_red"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 1
	stacking = no

	active = {
		OR = {
			learning >= 12
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 16
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_contemplation_2
				}
			}

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_contemplation_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_contemplation_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
}

magnum_opus_theurgy_contemplation_2 = {
	picture = "GFX_book_red"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 2
	stacking = no

	active = {
		OR = {
			learning >= 16
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_contemplation_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_contemplation_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	monthly_character_piety = 0.5
}

magnum_opus_theurgy_contemplation_3 = {
	picture = "GFX_book_red"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 3
	stacking = no

	active = {
		OR = {
			learning >= 20
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_theurgy_contemplation_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 2
	monthly_character_piety = 0.5
}

magnum_opus_theurgy_contemplation_4 = {
	picture = "GFX_book_red_glow"
	slot = library
	flags = { society hermetics lore theurgy book }

	quality = 4
	stacking = no

	active = {
		OR = {
			learning >= 25
			society_member_of = hermetics
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 2
	diplomacy = 1
	monthly_character_piety = 0.5
}

magnum_opus_astrology_stars_1 = {
	picture = "GFX_book_blue"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 1
	stacking = no

	active = {
		OR = {
			learning >= 12
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 16
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_stars_2
				}
			}

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_stars_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_stars_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
}

magnum_opus_astrology_stars_2 = {
	picture = "GFX_book_blue"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 2
	stacking = no

	active = {
		OR = {
			learning >= 16
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_stars_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_stars_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	monthly_character_prestige = 0.5
}

magnum_opus_astrology_stars_3 = {
	picture = "GFX_book_blue"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 3
	stacking = no

	active = {
		OR = {
			learning = 20
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_stars_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	intrigue = 1
	monthly_character_prestige = 0.5
}

magnum_opus_astrology_stars_4 = {
	picture = "GFX_book_blue_glow"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 4
	stacking = no

	active = {
		OR = {
			learning >= 25
			society_member_of = hermetics
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	intrigue = 1
	martial = 1
	monthly_character_prestige = 0.5
}

magnum_opus_astrology_planets_1 = {
	picture = "GFX_book_blue"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 1
	stacking = no

	active = {
		OR = {
			learning >= 12
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 16
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_planets_2
				}
			}

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_planets_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_planets_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
}

magnum_opus_astrology_planets_2 = {
	picture = "GFX_book_blue"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 2
	stacking = no

	active = {
		OR = {
			learning >= 16
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_planets_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_planets_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	monthly_character_prestige = 0.5
}

magnum_opus_astrology_planets_3 = {
	picture = "GFX_book_blue"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 3
	stacking = no

	active = {
		OR = {
			learning >= 20
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_astrology_planets_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 2
	monthly_character_prestige = 0.5
}

magnum_opus_astrology_planets_4 = {
	picture = "GFX_book_blue_glow"
	slot = library
	flags = { society hermetics lore astrology book }

	quality = 4
	stacking = no

	active = {
		OR = {
			learning >= 25
			society_member_of = hermetics
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 2
	diplomacy = 1
	monthly_character_prestige = 0.5
}

magnum_opus_alchemy_panacea_1 = {
	picture = "GFX_book_green"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 1
	stacking = no

	active = {
		OR = {
			learning >= 12
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 16
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_panacea_2
				}
			}

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_panacea_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_panacea_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
}

magnum_opus_alchemy_panacea_2 = {
	picture = "GFX_book_green"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 2
	stacking = no

	active = {
		OR = {
			learning >= 16
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_panacea_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_panacea_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 2
}

magnum_opus_alchemy_panacea_3 = {
	picture = "GFX_book_green"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 3
	stacking = no

	active = {
		OR = {
			learning >= 20
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_panacea_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 2
	health = 0.5
}

magnum_opus_alchemy_panacea_4 = {
	picture = "GFX_book_green_glow"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 4
	stacking = no

	active = {
		OR = {
			learning >= 25
			society_member_of = hermetics
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 2
	health = 1
}

magnum_opus_alchemy_transmutation_1 = {
	picture = "GFX_book_green"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 1
	stacking = no

	active = {
		OR = {
			learning >= 12
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 16
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_transmutation_2
				}
			}

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_transmutation_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_transmutation_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
}

magnum_opus_alchemy_transmutation_2 = {
	picture = "GFX_book_green"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 2
	stacking = no

	active = {
		OR = {
			learning >= 16
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 20
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_transmutation_3
				}
			}

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_transmutation_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	stewardship = 1
}

magnum_opus_alchemy_transmutation_3 = {
	picture = "GFX_book_green"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 3
	stacking = no

	active = {
		OR = {
			learning >= 20
			society_member_of = hermetics
		}

		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE

			NAND = {
				OR = {
					learning >= 25
					society_member_of = hermetics
				}

				any_artifact = {
					artifact_type = magnum_opus_alchemy_transmutation_4
				}
			}
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	stewardship = 1
	martial = 1
}

magnum_opus_alchemy_transmutation_4 = {
	picture = "GFX_book_green_glow"
	slot = library
	flags = { society hermetics lore alchemy book }

	quality = 4
	stacking = no

	active = {
		OR = {
			learning >= 25
			society_member_of = hermetics
		}
	}

	allowed_gift = {
		always = no
	}

	learning = 1
	stewardship = 2
	martial = 1
}

########## DLC: Jade Dragon ############
### Section 1: Books from China

art_of_war = {
	picture = "GFX_art_of_war"
	slot = library
	flags = { chinese book very_rare }

	quality = 5
	stacking = no

	monthly_character_prestige = 1
	martial = 5
}

classic_of_poetry = {
	picture = "GFX_classic_of_poetry"
	slot = library
	flags = { chinese book }

	quality = 5
	stacking = no

	monthly_character_piety = 0.5
	learning = 3
}

chinese_book_health = {
	picture = "GFX_chinese_compendium_of_medicine"
	slot = library
	flags = { chinese book }

	quality = 3
	stacking = no

	active = {
		learning >= 6
	}

	health = 0.5
	fertility = 0.15
}

chinese_book_law = {
	picture = "GFX_chinese_treatise_on_law"
	slot = library
	flags = { chinese book }

	quality = 3
	stacking = no

	active = {
		learning >= 6
	}

	vassal_opinion = 5
}

chinese_book_history = {
	picture = "GFX_chinese_history_book"
	slot = library
	flags = { chinese book }

	quality = 1

	active = {
		learning >= 6
	}

	monthly_character_prestige = 0.1
	fertility = 0.05
}

chinese_book_economy = {
	picture = "GFX_chinese_economic_chronicle"
	slot = library
	flags = { chinese book }

	quality = 3
	stacking = no

	active = {
		learning >= 6
	}

	stewardship = 1
	monthly_character_wealth = 1

}

#################### Jade Dragon. ##########################
#### Section 2: Books that can be written by characters ####
############################################################

# A. Books from the Martial ("battle") category...
how_to_hold_a_sword = {
	picture = "GFX_book_martial_a1"
	slot = library
	flags = { about_martial book created }

	quality = 1

	combat_rating = 4
}

a_soldiers_life = {
	picture = "GFX_book_martial_a2"
	slot = library
	flags = { about_martial fiction book created }

	quality = 2

	combat_rating = 1
	land_organisation = 0.025

	command_modifier = {
		morale_defence = 0.05
	}
}

a_history_of_armor = {
	picture = "GFX_book_martial_b2"
	slot = library
	flags = { about_martial book created }

	quality = 2

	siege_defence = 0.025

	command_modifier = {
		morale_defence = 0.15
	}
}

the_life_of_root = {
	picture = "GFX_book_martial_a2"
	slot = library
	flags = { about_martial book created }

	quality = 2

	land_morale = 0.025

	command_modifier = {
		morale_defence = 0.15
	}
}

military_strategy_guide = {
	picture = "GFX_book_martial_a3"
	slot = library
	flags = { about_martial book created }

	quality = 3

	levy_reinforce_rate = 0.1
	siege_speed = 0.025

	command_modifier = {
		morale_offence = 0.05
	}
}

my_fechtbuch = {
	picture = "GFX_book_martial_a4"
	slot = library
	flags = { about_martial book created }

	quality = 3

	combat_rating = 6

	command_modifier = {
		narrow_flank = 0.1
	}
}

codex_dynasty_name = {
	picture = "GFX_book_martial_a5"
	slot = library
	flags = { about_martial book created }

	quality = 3

	land_morale = 0.05

	command_modifier = {
		morale_offence = 0.1
	}
}

the_sword_and_buckler = {
	picture = "GFX_book_martial_b5"
	slot = library
	flags = { about_martial book created }

	quality = 3

	active = {
		OR = {
			has_lifestyle_martial_trigger = yes
			has_education_martial_trigger = yes
		}
	}

	combat_rating = 6
	monthly_character_prestige = 0.25
}

lessons_taught_to_me_by_rival_1 = {
	picture = "GFX_book_martial_b1"
	slot = library
	flags = { about_martial book created }

	quality = 1

	martial = 1
}

lessons_taught_to_me_by_rival_2 = {
	picture = "GFX_book_martial_b2"
	slot = library
	flags = { about_martial book created }

	quality = 2

	martial = 1
	combat_rating = 4
}

lessons_taught_to_me_by_rival_3 = {
	picture = "GFX_book_martial_b3"
	slot = library
	flags = { about_martial book created }

	quality = 3

	martial = 1
	intrigue = 1
	combat_rating = 6
}

the_wisdom_of_the_heavens = {
	picture = "GFX_book_martial_a2"
	slot = library
	flags = { about_martial book created }

	quality = 2

	vassal_opinion = 3
	combat_rating = 6
}

ordinary_beasts = {
	picture = "GFX_book_martial_a3"
	slot = library
	flags = { about_martial book created }

	quality = 3

	combat_rating = 6
	defensive_plot_power_modifier = 0.1
}

the_white_animal = {
	picture = "GFX_book_martial_b4"
	slot = library
	flags = { about_martial book created }

	quality = 3

	vassal_opinion = 3
	sex_appeal_opinion = 5
}

the_bestiary = {
	picture = "GFX_book_martial_b5"
	slot = library
	flags = { about_martial book created }

	quality = 4

	vassal_opinion = 5
	sex_appeal_opinion = 10
}

the_book_of_shadows = {
	picture = "GFX_book_martial_a4"
	slot = library
	flags = { about_martial book created }

	quality = 3

	combat_rating = 10
	murder_plot_power_modifier = 0.1
}

on_government_type_warfare = {
	picture = "GFX_book_martial_b3"
	slot = library
	flags = { about_martial book created }

	quality = 3

	active = {
		government = FROMFROM
	}

	martial = 1

	command_modifier = {
		morale_defence = 0.1
		morale_offence = 0.1
	}
}

# B. Books from the Diplomacy/Intrigue ("relationships") category...
court_etiquette_1 = {
	picture = "GFX_book_etiquette_1"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 1

	liege_opinion = 10
}

court_etiquette_2 = {
	picture = "GFX_book_etiquette_2"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 2

	plot_discovery_chance = 0.1
}

court_etiquette_3 = {
	picture = "GFX_book_etiquette_3"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 3

	plot_discovery_chance = 0.1
	vassal_opinion = 5
}

how_to_write_a_letter = {
	picture = "GFX_book_write_letter"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 2

	general_opinion = 2
}

notes_from_a_kitchen = {
	picture = "GFX_book_diplo_simple"
	slot = library
	flags = { about_diplomacy about_intrigue about_relationships fiction book created }

	quality = 2

	fertility = 0.1
	sex_appeal_opinion = 5
}

fifty_shades_of_root = { # Bad Relationship Book
	picture = "GFX_book_fifty_shade"
	slot = library
	flags = { about_relationships fiction book unholy created }

	quality = 2

	fertility = 0.25
	monthly_character_prestige = -0.1
}

kama_sutra = { # Masterful Relationship Book
	picture = "GFX_book_kamasutra"
	slot = library
	flags = { about_relationships book created }

	quality = 3

	active = {
		culture_group = indo_aryan_group
	}

	sex_appeal_opinion = 20
	fertility = 0.25
	monthly_character_prestige = 0.25
}

in_honor_of_roots_beloved_1 = {
	picture = "GFX_book_honor_root_1"
	slot = library
	flags = { about_diplomacy about_relationships poetry book created }

	quality = 1

	sex_appeal_opinion = 5
}

in_honor_of_roots_beloved_2 = {
	picture = "GFX_book_honor_root_2"
	slot = library
	flags = { about_diplomacy about_relationships poetry book created }

	quality = 2

	monthly_character_prestige = 0.15
	sex_appeal_opinion = 7
}

in_honor_of_roots_beloved_3 = {
	picture = "GFX_book_honor_root_3"
	slot = library
	flags = { about_diplomacy about_relationships poetry book created }

	quality = 3

	diplomacy = 1
	sex_appeal_opinion = 10
}

how_to_make_allies = {
	picture = "GFX_book_make_allies"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 2

	vassal_opinion = 5
}

the_art_of_love = {
	picture = "GFX_book_art_love"
	slot = library
	flags = { about_diplomacy about_relationships poetry book created }

	quality = 3

	diplomacy = 1
	sex_appeal_opinion = 5
	fertility = 0.15
}

the_hunchback_of_capital = {
	picture = "GFX_book_hunchback"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 3

	active = {
		OR = {
			trait = hunchback
			trait = dwarf
			trait = scholar
		}
	}

	diplomacy = 1
	general_opinion = 10
}

the_iliad = {
	picture = "GFX_book_illiad"
	slot = library
	flags = { about_diplomacy about_relationships about_martial poetry book created }

	quality = 3

	diplomacy = 1
	martial = 1
}

the_odyssey = {
	picture = "GFX_book_odyssey"
	slot = library
	flags = { about_diplomacy about_relationships about_martial poetry book created }

	quality = 4

	diplomacy = 2
	martial = 3
}

contracts_of_the_romans = {
	picture = "GFX_book_contracts_roman"
	slot = library
	flags = { about_diplomacy about_relationships about_stewardship book created }

	quality = 3

	stewardship = 1
	build_cost_modifier = -0.025
}

speculum_regale = {
	picture = "GFX_book_speculum_regale"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 4

	diplomacy = 1
	child_opinion = 20
	vassal_opinion = 5
}

religious_head_culture_courtesy = { # only if religion which has relhead
	picture = "GFX_book_rhcc"
	slot = library
	flags = { about_diplomacy about_relationships book created }

	quality = 4

	active = {
		religion = FROMFROM
	}

	diplomacy = 1
	learning = 1
	church_opinion = 15
}

keeping_government_court = {
	picture = "GFX_book_govt_court"
	slot = library
	flags = { about_diplomacy about_relationships about_stewardship book created }

	quality = 4

	active = {
		government = FROMFROM
	}

	liege_opinion = 15
	vassal_opinion = 5
	stewardship = 1
	intrigue = 1
}

# C. Books from the Stewardship ("administration") category...
culinary_diary = {
	picture = "GFX_book_cutlery_01"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 1

	town_opinion = 5
	church_opinion = -5
}

yes_I_ate_that = {
	picture = "GFX_book_cook_blank_00"
	slot = library
	flags = { about_learning cooking book created }

	quality = 1

	defensive_plot_power_modifier = 0.05
	sex_appeal_opinion = -5
}

the_well_dressed_chef = {
	picture = "GFX_book_chef_01"
	slot = library
	flags = { about_relationships cooking book created }

	quality = 1

	sex_appeal_opinion = 5
}

big_book_of_meat = {
	picture = "GFX_book_cook_blank_01"
	slot = library
	flags = { about_learning cooking book created }

	quality = 1

	active = {
		NOT = { religion = jain }
	}

	monthly_character_prestige = 0.1
	monthly_character_wealth = 0.1
}

a_book_of_vegetables = {
	picture = "GFX_book_radish"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 1

	town_opinion = 5
}

fruits_the_book = {
	picture = "GFX_book_apple"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 1

	town_opinion = 2
	monthly_character_wealth = 0.1
}

shoddy_recipes = {
	picture = "GFX_book_rat"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 1

	monthly_character_prestige = 0.2
}

decent_cookbook = {
	picture = "GFX_book_cutlery_02"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 2

	monthly_character_wealth = 0.5
}

honest_recipes = {
	picture = "GFX_book_cook_blank_02"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 2

	global_tax_modifier = 0.01
}

gastronomic_tonics = {
	quality = 2
	plot_power_modifier = 0.05
	flags = { about_intrigue cooking book created }
	picture = "GFX_book_cook_blank_03"
	slot = library
}

the_omnivore = {
	picture = "GFX_book_chef_02"
	slot = library
	flags = { cannibal about_stewardship about_intrigue cooking book created }

	quality = 2

	active = {
		trait = cannibal
	}

	stewardship = 3
	intrigue = 2
	general_opinion = -10
}

the_dynasty_cookbook = { # A Cookbook
	picture = "GFX_book_chef_03"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 3

	active = { dynasty = FROMFROM }

	stewardship = 1
	dynasty_opinion = 5
}

modest_measures = {
	picture = "GFX_book_cook_blank_04"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 3

	stewardship = 1
	monthly_character_wealth = 1
}

good_cookbook = { # A Cookbook (Feeding a Realm)
	picture = "GFX_book_cutlery_03"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 3

	monthly_character_wealth = 3
}

cookbook_3_roman = { # Masterful Cookbook (Roman: Apicius)
	picture = "GFX_book_cook_roman"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 3

	active = {
		culture_group = latin
	}

	stewardship = 2
	monthly_character_prestige = 0.25
}

cookbook_3_arabic = { # Masterful Cookbook (Arabic: Kitab al-Tabikh)
	picture = "GFX_book_cook_arabic"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 3

	active = {
		culture_group = arabic
	}

	stewardship = 2
	learning = 1
}

cookbook_3_chinese_group = { # Masterful Cookbook (Chinese: Yinshan Zhengyao)
	picture = "GFX_book_cook_china"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 3

	active = {
		culture_group = chinese_group
	}

	stewardship = 1
	health = 0.5
}

cookbook_3_central_german = { # Masterful Cookbook (German: Daz buch von guter spise (The Book of Good Food))
	picture = "GFX_book_cook_german"
	slot = library
	flags = { about_stewardship cooking book created }

	quality = 3

	active = {
		culture_group = central_germanic
	}

	stewardship = 1
	vassal_opinion = 5
}

bad_fishing_book = {
	picture = "GFX_book_fish_01"
	slot = library
	flags = { about_stewardship book created }

	quality = 1

	general_opinion = 1
}

on_culture_architecture = {
	picture = "GFX_book_architect_01"
	slot = library
	flags = { about_stewardship book created }

	quality = 3

	build_cost_modifier = -0.1
}

how_to_build_a_well = {
	picture = "GFX_book_architect_02"
	slot = library
	flags = { about_stewardship book created }

	quality = 3

	build_time_modifier = -0.2
}

gardens_of_planet = {
	picture = "GFX_book_bigflower"
	slot = library
	flags = { about_stewardship book created }

	quality = 3

	stewardship = 1
	global_tax_modifier = 0.01
}

treatise_on_fishing = {
	picture = "GFX_book_fish_02"
	slot = library
	flags = { about_stewardship book created }

	quality = 4

	diplomacy = 1
	stewardship = 1
	general_opinion = 5
}

# D. Books from the Learning ("religion") category...
in_honor_of_highgod = { # quiet contemplation, you rock
	picture = "GFX_book_point_01"
	slot = library
	flags = { about_religion book created }

	quality = 1

	monthly_character_piety = 0.1
}

faith_eternal = { # Wow, so pious, temple holders love you
	picture = "GFX_book_learnblank_01"
	slot = library
	flags = { about_religion book created }

	quality = 1

	church_opinion = 5
}

what_do_monks_wear = { # more superficial, but same religion folks like you
	picture = "GFX_book_learnblank_02"
	slot = library
	flags = { about_religion book created }

	quality = 2

	same_religion_opinion = 2
	monthly_character_piety = 0.25
}

hymns_to_highgod = { # beautiful
	picture = "GFX_book_point_02"
	slot = library
	flags = { about_religion poetry book created }

	quality = 2

	church_opinion = 10
}

choice_passages = {
	picture = "GFX_book_learnblank_03"
	slot = library
	flags = { about_religion book created }

	quality = 2

	church_opinion = 5
	monthly_character_piety = 0.1
}

a_history_of_churches = { # academia, fellow scholars of same religion and temple holders praise it
	picture = "GFX_book_learnblank_04"
	slot = library
	flags = { about_religion book created }

	quality = 3

	stewardship = 1
	same_religion_opinion = 3
	church_opinion = 5
}

how_to_worship = { # a bit of a lecture, but very pious
	picture = "GFX_book_eye_01"
	slot = library
	flags = { about_religion book created }

	quality = 3

	church_opinion = 10
	monthly_character_piety = 0.5
}

the_not_actual_holy_book = { # an outrageous imitation, upsetting many, making others gossip intrigued ( # lunatic only)
	picture = "GFX_book_eye_02"
	slot = library
	flags = { lunatic about_religion unholy book created }

	quality = 3

	active = {
		trait = lunatic
	}

	intrigue = 3
	defensive_plot_power_modifier = 0.05
	same_religion_opinion = -5
	church_opinion = -10
}

the_spirits = { # ancestor worship
	picture = "GFX_book_eye_03"
	slot = library
	flags = { about_religion book created }

	quality = 3

	active = {
		religion_group = pagan_group
	}

	learning = 1
	monthly_character_piety = 0.75
}

learning_languages_1 = { # so-so
	picture = "GFX_book_lang_01"
	slot = library
	flags = { about_learning book created }

	quality = 1

	monthly_character_prestige = 0.1
}

learning_languages_2 = { # decent
	picture = "GFX_book_lang_02"
	slot = library
	flags = { about_learning book created }

	quality = 2

	general_opinion = 2
	monthly_character_prestige = 0.1
}

learning_languages_3 = { # good
	picture = "GFX_book_lang_03"
	slot = library
	flags = { about_learning book created }

	quality = 3

	general_opinion = 5
	monthly_character_prestige = 0.25
}

learning_languages_4 = { # great
	picture = "GFX_book_lang_04"
	slot = library
	flags = { about_learning book created }

	quality = 4

	diplomacy = 1
	general_opinion = 5
	monthly_character_prestige = 0.5
}

the_republic = { # philosophy
	picture = "GFX_book_republic"
	slot = library
	flags = { about_learning philosophy book created }

	quality = 3

	active = {
		government = FROMFROM
	}

	diplomacy = 2
	global_revolt_risk = -0.01
}

unnatural_history = {
	picture = "GFX_book_learnflower_01"
	slot = library
	flags = { about_intrigue unholy book created }

	quality = 2

	learning = 1
	church_opinion = -5
	sex_appeal_opinion = 5
}

the_confessions_of_root = {
	picture = "GFX_book_learnflower_02"
	slot = library
	flags = { about_intrigue about_learning book created }

	quality = 3

	learning = 2
	fertility = -0.2
}

the_book_of_healing = {
	picture = "GFX_book_health_03"
	slot = library
	flags = { about_intrigue about_learning book created }

	quality = 4

	intrigue = 1
	learning = 1
	health = 0.25
}

human_anatomy = {
	picture = "GFX_book_health_02"
	slot = library
	flags = { about_intrigue about_learning book created }

	quality = 2

	health = 0.1
	fertility = 0.05
}

maladies_and_remedies = {
	picture = "GFX_book_health_01"
	slot = library
	flags = { about_intrigue about_learning book created }

	quality = 2

	active = { has_minor_disease_trigger = yes }

	health_penalty = 1
}

comforting_poetry = {
	picture = "GFX_book_poetry"
	slot = library
	flags = { about_intrigue about_learning poetry book created }

	quality = 3

	active = {
		OR = {
			trait = depressed
			trait = stressed
		}
	}

	health = 0.5
}

equine_maxims = {
	picture = "GFX_book"
	slot = library
	flags = { about_learning poetry book created }

	quality = 2

	town_opinion = 3
	horse_opinion = 15
}

equine_sequins = {
	picture = "GFX_book_green"
	slot = library
	flags = { about_learning about_stewardship book created }

	quality = 3

	learning = 1
	build_time_modifier = -0.05
	horse_opinion = 15
}


# E. Books from the Dynasty category...
to_my_descendants = {
	picture = "GFX_book_roots_crown_01"
	slot = library
	flags = { about_dynasty book created }

	quality = 1

	active = { dynasty = FROMFROM }

	dynasty_opinion = 5
}

records_of_roots_dynasty = {
	picture = "GFX_book_roots_crown_02"
	slot = library
	flags = { about_dynasty book created }

	quality = 2

	active = { dynasty = FROMFROM }

	dynasty_opinion = 5
	monthly_character_piety = 0.1
}

the_legend_of_roots_ancestors_1 = {
	picture = "GFX_book_roots_tree_01"
	slot = library
	flags = { about_dynasty book created }

	quality = 1

	active = { dynasty = FROMFROM }

	dynasty_opinion = 2
	monthly_character_prestige = 0.1
}

the_legend_of_roots_ancestors_2 = {
	picture = "GFX_book_roots_tree_02"
	slot = library
	flags = { about_dynasty book created }

	quality = 2

	active = { dynasty = FROMFROM }

	dynasty_opinion = 5
	monthly_character_prestige = 0.2
}

the_legend_of_roots_ancestors_3 = {
	picture = "GFX_book_roots_tree_03"
	slot = library
	flags = { about_dynasty book created }

	quality = 3

	active = { dynasty = FROMFROM }

	dynasty_opinion = 10
	child_opinion = 5
	monthly_character_prestige = 0.25
}

the_annals_of_roots_dynasty = {
	picture = "GFX_book_roots_tree_04"
	slot = library
	flags = { about_dynasty book created }

	quality = 4

	active = { dynasty = FROMFROM }

	diplomacy = 1
	dynasty_opinion = 15
	monthly_character_prestige = 0.2
}

the_legendary_dynasty_warrior = {
	picture = "GFX_book_roots_tree_04"
	slot = library
	flags = { about_dynasty book created }

	quality = 4

	active = { dynasty = FROMFROM }

	brave_opinion = 5
	dynasty_opinion = 15
	monthly_character_prestige = 0.2
}

the_saintly_relative = {
	picture = "GFX_book_cook_blank_03"
	slot = library
	flags = { about_dynasty book created }

	quality = 4

	active = { dynasty = FROMFROM }

	zealous_opinion = 5
	dynasty_opinion = 5
	christian_opinion = 5
	monthly_character_piety = 0.2
}

a_story_about_my_aunt = {
	picture = "GFX_book_roots_crown_03"
	slot = library
	flags = { about_dynasty about_relationships fiction book created }

	quality = 3

	active = {
		dynasty = FROMFROM
	}

	dynasty_opinion = 5
	female_dynasty_opinion = 15
}

the_secret_history_of_culture = {
	picture = "GFX_book_roots_crown_04"
	slot = library
	flags = { about_dynasty about_relationships fiction book created }

	quality = 4

	active = {
		dynasty = FROMFROM
	}

	dynasty_opinion = 10
	vassal_opinion = 10
	monthly_character_prestige = 1
}

# From mourning a Chinese Princess/Prince
chinese_journal = {
	picture = "GFX_book_chinese_diary"
	slot = library
	flags = { poetry book }
	quality = 3

	active = {
		OR = {
			trait = depressed
			trait = stressed
		}

		NOT = { trait = cynical }
	}

	health = 0.5
}

random_world_book_of_dev = {
	picture = "GFX_book_red_glow"
	slot = library
	flags = { chinese book }

	quality = 3
	stacking = no

	active = {
		learning >= 3
	}

	stewardship = 1
	monthly_character_wealth = 1
}