﻿-- chunkname: @dialogues/generated/meat_grinder_vo.lua

return function ()
	define_rule({
		category = "conversations_prio_0",
		database = "meat_grinder_vo",
		name = "hub_rumour_cult_01_a",
		response = "hub_rumour_cult_01_a",
		wwise_route = 42,
		criterias = {
			{
				"query_context",
				"concept",
				OP.EQ,
				"mission_giver_conversation_starter",
			},
			{
				"query_context",
				"trigger_id",
				OP.EQ,
				"npc_story_talk",
			},
			{
				"user_context",
				"class_name",
				OP.SET_INCLUDES,
				args = {
					"training_ground_psyker",
				},
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.LTEQ,
				2,
			},
			{
				"user_memory",
				"hub_rumour_cult_01_a",
				OP.EQ,
				0,
			},
		},
		on_done = {
			{
				"user_memory",
				"hub_rumour_cult_01_a",
				OP.ADD,
				1,
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.ADD,
				1,
			},
		},
		heard_speak_routing = {
			target = "mission_givers",
		},
	})
	define_rule({
		category = "conversations_prio_0",
		database = "meat_grinder_vo",
		name = "hub_rumour_escalation_01_a",
		response = "hub_rumour_escalation_01_a",
		wwise_route = 42,
		criterias = {
			{
				"query_context",
				"concept",
				OP.EQ,
				"mission_giver_conversation_starter",
			},
			{
				"query_context",
				"trigger_id",
				OP.EQ,
				"npc_story_talk",
			},
			{
				"user_context",
				"class_name",
				OP.SET_INCLUDES,
				args = {
					"training_ground_psyker",
				},
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.LTEQ,
				2,
			},
			{
				"user_memory",
				"hub_rumour_escalation_01_a",
				OP.EQ,
				0,
			},
		},
		on_done = {
			{
				"user_memory",
				"hub_rumour_escalation_01_a",
				OP.ADD,
				1,
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.ADD,
				1,
			},
		},
		heard_speak_routing = {
			target = "mission_givers",
		},
	})
	define_rule({
		category = "conversations_prio_0",
		database = "meat_grinder_vo",
		name = "hub_rumour_hub_crew_01_a",
		response = "hub_rumour_hub_crew_01_a",
		wwise_route = 42,
		criterias = {
			{
				"query_context",
				"concept",
				OP.EQ,
				"mission_giver_conversation_starter",
			},
			{
				"query_context",
				"trigger_id",
				OP.EQ,
				"npc_story_talk",
			},
			{
				"user_context",
				"class_name",
				OP.SET_INCLUDES,
				args = {
					"training_ground_psyker",
				},
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.LTEQ,
				2,
			},
			{
				"user_memory",
				"hur_rumour_hub_crew_01_a",
				OP.EQ,
				0,
			},
		},
		on_done = {
			{
				"user_memory",
				"hur_rumour_hub_crew_01_a",
				OP.ADD,
				1,
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.ADD,
				1,
			},
		},
		heard_speak_routing = {
			target = "mission_givers",
		},
	})
	define_rule({
		category = "conversations_prio_0",
		database = "meat_grinder_vo",
		name = "hub_rumour_politics_01_a",
		response = "hub_rumour_politics_01_a",
		wwise_route = 42,
		criterias = {
			{
				"query_context",
				"concept",
				OP.EQ,
				"mission_giver_conversation_starter",
			},
			{
				"query_context",
				"trigger_id",
				OP.EQ,
				"npc_story_talk",
			},
			{
				"user_context",
				"class_name",
				OP.SET_INCLUDES,
				args = {
					"training_ground_psyker",
				},
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.LTEQ,
				2,
			},
			{
				"user_memory",
				"hub_rumour_politics_01_a",
				OP.EQ,
				0,
			},
		},
		on_done = {
			{
				"user_memory",
				"hub_rumour_politics_01_a",
				OP.ADD,
				1,
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.ADD,
				1,
			},
		},
		heard_speak_routing = {
			target = "mission_givers",
		},
	})
	define_rule({
		category = "conversations_prio_0",
		database = "meat_grinder_vo",
		name = "hub_rumour_wanderers_01_a",
		response = "hub_rumour_wanderers_01_a",
		wwise_route = 42,
		criterias = {
			{
				"query_context",
				"concept",
				OP.EQ,
				"mission_giver_conversation_starter",
			},
			{
				"query_context",
				"trigger_id",
				OP.EQ,
				"npc_story_talk",
			},
			{
				"user_context",
				"class_name",
				OP.SET_INCLUDES,
				args = {
					"training_ground_psyker",
				},
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.LTEQ,
				2,
			},
			{
				"user_memory",
				"hub_rumour_wanderers_01_a",
				OP.EQ,
				0,
			},
		},
		on_done = {
			{
				"user_memory",
				"hub_rumour_wanderers_01_a",
				OP.ADD,
				1,
			},
			{
				"user_memory",
				"meat_grinder_rumour_count",
				OP.ADD,
				1,
			},
		},
		heard_speak_routing = {
			target = "mission_givers",
		},
	})
end
