package Items
using RTDB, BaseStats, WeaponFxPackage, Prereqs, Perks, Effectors

Preset_Dian_Default : Base_Dian
{
	CName appearanceResourceName = "Preset_Dian_Default";
	CName[] visualTags = 
	[
		"Default"
	];
	fk< SlotItemPartPreset >[] slotPartListPreset = 
	[
		{
			slot = "AttachmentSlots.Receiver";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__rcv1";
		}, 
		{
			slot = "AttachmentSlots.Barrel";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__base1";
		}, 
		{
			slot = "AttachmentSlots.Magazine";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__mag_std";
		}, 
		{
			slot = "AttachmentSlots.MagazineEmpty";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__mag_stdr";
		}, 
		"Items.HandgunAndRevolverScopesPartList", {
			slot = "AttachmentSlots.Smart_AR_SMG_LMG_WeaponMod1";
		} : Smart_AR_SMG_LMG_ModList_Slot1, 
		{
			slot = "AttachmentSlots.Smart_AR_SMG_LMG_WeaponMod2";
		} : Smart_AR_SMG_LMG_ModList_Slot2
	];
}

[ notQueryable ]
Preset_Dian_Default_Unbreakable : Preset_Dian_Default
{
	tags += 
	[
		"Unbreakable"
	];
}

Preset_Dian_Pimp : Preset_Dian_Default
{
	CName[] visualTags = 
	[
		"Pimp"
	];
	tags += 
	[
		"Pimp"
	];
}

[ notQueryable ]
Preset_Dian_Pimp_Unbreakable : Preset_Dian_Pimp
{
	tags += 
	[
		"Unbreakable"
	];
}

Preset_Dian_Neon : Preset_Dian_Default
{
	CName[] visualTags = 
	[
		"Neon"
	];
	tags += 
	[
		"Neon"
	];
}

[ notQueryable ]
Preset_Dian_Neon_Unbreakable : Preset_Dian_Neon
{
	tags += 
	[
		"Unbreakable"
	];
}

Preset_Dian_Military : Preset_Dian_Default
{
	CName[] visualTags = 
	[
		"Military"
	];
	tags += 
	[
		"Military"
	];
}

[ notQueryable ]
Preset_Dian_Military_Unbreakable : Preset_Dian_Military
{
	tags += 
	[
		"Unbreakable"
	];
}

Preset_Dian_Trauma : Preset_Dian_Default
{
	CName[] visualTags = 
	[
		"Trauma"
	];
	tags += 
	[
		"Courier_RareFind"
	];
}

[ notQueryable ]
Craftable_Common_Dian : Preset_Dian_Default
{
	quality = "Quality.Common";
	slotPartListPreset = 
	[
		{
			slot = "AttachmentSlots.Receiver";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__rcv1";
		}, 
		{
			slot = "AttachmentSlots.Barrel";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__base1";
		}, 
		{
			slot = "AttachmentSlots.Magazine";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__mag_std";
		}, 
		{
			slot = "AttachmentSlots.MagazineEmpty";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__mag_stdr";
		}
	];
	CraftingData = "Items.Big_Common_Crafting_Materials_Weapon";
}

[ notQueryable ]
Craftable_Uncommon_Dian : Craftable_Common_Dian
{
	quality = "Quality.Uncommon";
	CraftingData = "Items.Big_Uncommon_Crafting_Materials_Weapon";
}

[ notQueryable ]
Craftable_Rare_Dian : Craftable_Uncommon_Dian
{
	quality = "Quality.Rare";
	CraftingData = "Items.Big_Rare_Crafting_Materials_Weapon";
}

[ notQueryable ]
Craftable_Epic_Dian : Craftable_Uncommon_Dian
{
	quality = "Quality.Epic";
	CraftingData = "Items.Big_Epic_Crafting_Materials_Weapon";
}

[ notQueryable ]
Craftable_Legendary_Dian : Craftable_Uncommon_Dian
{
	quality = "Quality.Legendary";
	CraftingData = "Items.Big_Legendary_Crafting_Materials_Weapon";
}

[ notQueryable ]
Preset_Dian_Yinglong : Preset_Dian_Default
{
	OnLooted += 
	[
		{
			effectors = 
			[
				{
					fact = "dian_yinglong_owned";
					value = 1;
				} : SetFactEffector
			];
		}
	];
	fk< ItemBlueprint > blueprint = "Items.Iconic_Ranged_Weapon_NoAttachments_Blueprint";
	displayName = "LocKey#40613";
	visualTags = 
	[
		"Yinglong_Dian"
	];
	quality = "Quality.Random";
	tags += 
	[
		"IconicWeapon", "CraftableIconic", "Dian_Yinglong"
	];
	localizedDescription = "LocKey#40614";
	statModifiers += 
	[
		"Quality.IconicItem"
	];
	npcRPGData = 
	{
		statModifiers += 
		[
			"Quality.IconicItem"
		];
	} : Base_Dian_NPC_Data;
	CraftingData = "Items.Craftable_Iconic_Weapon";
	slotPartListPreset = 
	[
		{
			slot = "AttachmentSlots.Receiver";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__rcv1";
		}, 
		{
			slot = "AttachmentSlots.Barrel";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__base1";
		}, 
		{
			slot = "AttachmentSlots.Magazine";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__mag_std";
		}, 
		{
			slot = "AttachmentSlots.MagazineEmpty";
			fk< Item > itemPartPreset = "Items.w_smg__kang_tao_dian__mag_stdr";
		}, 
		{
			slot = "AttachmentSlots.IconicWeaponModLegendary";
			itemPartPreset = "Items.DianYinglongWeaponMod";
		}
	];
	statModifierGroups = 
	[
		"Items.CraftableIconicQualityRandomisation", "Items.Base_Dian_Technical_Stats", "Items.Base_Dian_Handling_Stats", "Items.Base_Dian_Recoil_Stats", "Items.Base_Dian_SmartGun_Stats", "Items.Base_Dian_SmartGun_SmartLink_Stats", "Items.Base_Dian_SmartGun_Projectile_Stats", "Items.Base_Dian_Flags", "Items.Base_Dian_SpreadStats", "Items.Base_Dian_Aim_Stats", "Items.Base_Dian_Constant_Stats", "Items.Base_Dian_Damage_Stats", "Items.Base_Smart_Stats", "Items.Base_Smart_Submachinegun_Mult_Stats", "Items.Base_Smart_Submachinegun_No_Sway_Stats", "Items.Base_Submachinegun_DeadReckoning_Stats", "Items.Base_Submachinegun_RPG_Stats", "Items.Base_Submachinegun_Misc_Stats", "Items.Base_PlayerState_Spread_Stats", "Items.Base_Weapon_Status_Effect_Application_Stats", "Items.Base_Weapon_Damage_Type_Min_Max", "Items.Base_Weapon_Damage_Type_Electric"
	];
}

[ notQueryable ]
Common_Dian_Yinglong : Preset_Dian_Yinglong
{
	quality = "Quality.Common";
	CraftingData = "Items.Craftable_Common_Iconic_Weapon";
}

[ notQueryable ]
Uncommon_Dian_Yinglong : Preset_Dian_Yinglong
{
	quality = "Quality.Uncommon";
	CraftingData = "Items.Craftable_Uncommon_Iconic_Weapon";
}

[ notQueryable ]
Rare_Dian_Yinglong : Preset_Dian_Yinglong
{
	quality = "Quality.Rare";
	CraftingData = "Items.Craftable_Rare_Iconic_Weapon";
}

[ notQueryable ]
Epic_Dian_Yinglong : Preset_Dian_Yinglong
{
	quality = "Quality.Epic";
	CraftingData = "Items.Craftable_Epic_Iconic_Weapon";
}

[ notQueryable ]
Legendary_Dian_Yinglong : Preset_Dian_Yinglong
{
	quality = "Quality.Legendary";
	CraftingData = "Items.Craftable_Legendary_Iconic_Weapon";
}

