Decompiled source of ZoneArtifacts v0.3.3

ZoneArtifacts.dll

Decompiled a month ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Text;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using On.RoR2;
using R2API;
using RoR2;
using RoR2.Orbs;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.Networking;
using UnityEngine.Rendering;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("ZoneArtifacts")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("0.3.3.0")]
[assembly: AssemblyInformationalVersion("0.3.3")]
[assembly: AssemblyProduct("ZoneArtifacts")]
[assembly: AssemblyTitle("ZoneArtifacts")]
[assembly: AssemblyVersion("0.3.3.0")]
namespace ZoneArtifacts;

internal static class DropPool
{
	private static List<FieldInfo> _listFields;

	internal static void Install()
	{
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Expected O, but got Unknown
		Run.BuildDropTable += new hook_BuildDropTable(OnBuildDropTable);
	}

	private static void OnBuildDropTable(orig_BuildDropTable orig, Run self)
	{
		orig.Invoke(self);
		try
		{
			Trim(self);
		}
		catch (Exception ex)
		{
			ZoneArtifactsPlugin.Log.LogWarning((object)("Could not trim the artifact drop pool (all artifacts stay in the pool): " + ex.GetType().Name + ": " + ex.Message));
		}
	}

	private static void Trim(Run run)
	{
		//IL_0063: Unknown result type (might be due to invalid IL or missing references)
		//IL_0069: Invalid comparison between Unknown and I4
		//IL_006d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0074: Expected I4, but got Unknown
		//IL_013a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0173: Unknown result type (might be due to invalid IL or missing references)
		float num = ((ZoneArtifactsPlugin.ArtifactShare != null) ? ZoneArtifactsPlugin.ArtifactShare.Value : 1f);
		if (!Object.op_Implicit((Object)(object)run) || num >= 0.995f)
		{
			return;
		}
		SortedDictionary<int, List<ItemDef>> sortedDictionary = new SortedDictionary<int, List<ItemDef>>();
		ItemSpec[] all = Specs.All;
		foreach (ItemSpec itemSpec in all)
		{
			ItemDef val = Z.Defs[(int)itemSpec.Id];
			if (Object.op_Implicit((Object)(object)val) && (int)itemSpec.Tier != 5)
			{
				int key = (int)ItemFactory.TierOf(itemSpec);
				if (!sortedDictionary.TryGetValue(key, out var value))
				{
					value = (sortedDictionary[key] = new List<ItemDef>());
				}
				value.Add(val);
			}
		}
		HashSet<ItemIndex> drop = new HashSet<ItemIndex>();
		StringBuilder stringBuilder = new StringBuilder();
		foreach (KeyValuePair<int, List<ItemDef>> item in sortedDictionary)
		{
			List<ItemDef> value2 = item.Value;
			ulong seed = run.seed;
			value2.Sort((ItemDef a, ItemDef b) => Rank(seed, a).CompareTo(Rank(seed, b)));
			int num2 = Math.Min(value2.Count, Math.Max(1, (int)Math.Round((float)value2.Count * num)));
			for (int num3 = num2; num3 < value2.Count; num3++)
			{
				drop.Add(value2[num3].itemIndex);
			}
			if (stringBuilder.Length > 0)
			{
				stringBuilder.Append(", ");
			}
			stringBuilder.Append(((object)(ItemTier)item.Key/*cast due to .constrained prefix*/).ToString()).Append(' ').Append(num2)
				.Append('/')
				.Append(value2.Count);
		}
		if (drop.Count == 0)
		{
			return;
		}
		int num4 = 0;
		foreach (FieldInfo item2 in ListFields())
		{
			if (item2.GetValue(run) is List<PickupIndex> list2)
			{
				num4 += list2.RemoveAll(delegate(PickupIndex p)
				{
					//IL_0000: Unknown result type (might be due to invalid IL or missing references)
					//IL_0011: Unknown result type (might be due to invalid IL or missing references)
					PickupDef pickupDef = PickupCatalog.GetPickupDef(p);
					return pickupDef != null && drop.Contains(pickupDef.itemIndex);
				});
			}
		}
		RegenerateDropTables(run);
		ZoneArtifactsPlugin.Log.LogInfo((object)$"Artifact pool for this run (ArtifactShare {num:0.##}): {stringBuilder}; {num4} list entries removed.");
	}

	private static List<FieldInfo> ListFields()
	{
		if (_listFields != null)
		{
			return _listFields;
		}
		_listFields = new List<FieldInfo>();
		FieldInfo[] fields = typeof(Run).GetFields(BindingFlags.Instance | BindingFlags.Public);
		foreach (FieldInfo fieldInfo in fields)
		{
			if (fieldInfo.FieldType == typeof(List<PickupIndex>))
			{
				_listFields.Add(fieldInfo);
			}
		}
		if (_listFields.Count == 0)
		{
			ZoneArtifactsPlugin.Log.LogWarning((object)"No List<PickupIndex> field was found on Run: ArtifactShare has no effect.");
		}
		return _listFields;
	}

	private static void RegenerateDropTables(Run run)
	{
		Type type = typeof(Run).Assembly.GetType("RoR2.PickupDropTable");
		if (type == null)
		{
			return;
		}
		MethodInfo[] methods = type.GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
		foreach (MethodInfo methodInfo in methods)
		{
			if (!(methodInfo.Name != "RegenerateAll"))
			{
				ParameterInfo[] parameters = methodInfo.GetParameters();
				if (parameters.Length == 0)
				{
					methodInfo.Invoke(null, null);
				}
				else if (parameters.Length == 1 && parameters[0].ParameterType.IsAssignableFrom(typeof(Run)))
				{
					methodInfo.Invoke(null, new object[1] { run });
				}
				break;
			}
		}
	}

	private static ulong Rank(ulong seed, ItemDef d)
	{
		ulong num = 14695981039346656037uL;
		string text = ((Object)d).name ?? string.Empty;
		for (int i = 0; i < text.Length; i++)
		{
			num ^= text[i];
			num *= 1099511628211L;
		}
		ulong num2 = seed ^ num;
		long num3 = (long)(num2 ^ (num2 >> 33)) * -49064778989728563L;
		long num4 = (num3 ^ (num3 >>> 33)) * -4265267296055464877L;
		return (ulong)(num4 ^ (num4 >>> 33));
	}
}
internal struct Owned
{
	public int Index;

	public ItemSpec Spec;

	public int N;
}
internal static class Engine
{
	internal const int Slots = 6;

	internal const float CalmSeconds = 5f;

	internal const float HurtSeconds = 3f;

	internal static bool IsStat(EK k)
	{
		if ((uint)k <= 9u || k == EK.KillBuff || k == EK.RadStat)
		{
			return true;
		}
		return false;
	}

	private static void AddStat(StatHookEventArgs a, int stat, float v, float lvl)
	{
		switch (stat)
		{
		case 0:
			if (v >= 0f)
			{
				a.attackSpeedMultAdd += v;
			}
			else
			{
				a.attackSpeedReductionMultAdd += 0f - v;
			}
			break;
		case 1:
			if (v >= 0f)
			{
				a.moveSpeedMultAdd += v;
			}
			else
			{
				a.moveSpeedReductionMultAdd += 0f - v;
			}
			break;
		case 2:
			a.armorAdd += v;
			break;
		case 3:
			a.damageMultAdd += v;
			break;
		case 4:
			a.baseRegenAdd += v * lvl;
			break;
		case 5:
			a.critAdd += v * 100f;
			break;
		}
	}

	internal static void Stats(CharacterBody body, ZoneController ctrl, StatHookEventArgs a, float lvl, ref float hpMinus)
	{
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				if (!IsStat(eff.K) || !ctrl.On(eff.W))
				{
					continue;
				}
				float num = eff.A * (float)n;
				switch (eff.K)
				{
				case EK.Armor:
					a.armorAdd += num;
					break;
				case EK.Hp:
					if (num >= 0f)
					{
						a.healthMultAdd += num;
					}
					else
					{
						hpMinus += 0f - num;
					}
					break;
				case EK.Regen:
					a.baseRegenAdd += num * lvl;
					break;
				case EK.Move:
					AddStat(a, 1, num, lvl);
					break;
				case EK.Atk:
					AddStat(a, 0, num, lvl);
					break;
				case EK.Dmg:
					a.damageMultAdd += num;
					break;
				case EK.Crit:
					a.critAdd += num * 100f;
					break;
				case EK.Jump:
					a.jumpPowerMultAdd += num;
					break;
				case EK.Luck:
					a.luckAdd += num;
					break;
				case EK.Jumps:
					a.jumpCountAdd += Mathf.RoundToInt(num);
					break;
				case EK.RadStat:
					AddStat(a, (int)eff.D, (float)n * Mathf.Min(eff.B, eff.A * (float)ctrl.Net), lvl);
					break;
				case EK.KillBuff:
					AddStat(a, (int)eff.D, eff.A * (float)ctrl.Stacks[items[i].Index * 6 + j] * (float)n, lvl);
					break;
				}
			}
		}
	}

	internal static bool BeforeDamage(HealthComponent self, CharacterBody body, ZoneController ctrl, DamageInfo di, ref float mult)
	{
		//IL_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Invalid comparison between Unknown and I4
		//IL_0038: Unknown result type (might be due to invalid IL or missing references)
		if (Time.time < ctrl.InvulnUntil)
		{
			return false;
		}
		bool flag = (int)di.dotIndex != -1;
		bool flag2 = !flag && !Object.op_Implicit((Object)(object)di.attacker);
		DotKind dotKind = (flag ? Z.Classify(di.dotIndex) : DotKind.None);
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				switch (eff.K)
				{
				case EK.Dr:
					if (ctrl.On(eff.W))
					{
						mult *= 1f - Z.Red(n, eff.A);
					}
					break;
				case EK.Res:
				{
					int num2 = (int)eff.D;
					if (((num2 == 0 && dotKind == DotKind.Burn) || (num2 == 1 && dotKind == DotKind.Bleed) || (num2 == 2 && dotKind == DotKind.Chem) || (num2 == 3 && flag2)) && ctrl.On(eff.W))
					{
						if (eff.A >= 0.999f)
						{
							return false;
						}
						mult *= 1f - Z.Red(n, eff.A);
					}
					break;
				}
				case EK.DrBig:
					if (ctrl.On(eff.W) && di.damage >= self.fullHealth * eff.B)
					{
						mult *= 1f - Z.Red(n, eff.A);
					}
					break;
				case EK.Dodge:
				{
					int num = items[i].Index * 6 + j;
					if (!flag && Object.op_Implicit((Object)(object)di.attacker) && ctrl.Cd[num] <= 0f && ctrl.On(eff.W) && Z.Roll(Z.Red(n, eff.A), body))
					{
						ctrl.Cd[num] = eff.B;
						return false;
					}
					break;
				}
				}
			}
		}
		float num3 = di.damage * mult;
		if (num3 > 0f && (Object.op_Implicit((Object)(object)di.attacker) || flag) && num3 >= self.health + self.shield + self.barrier)
		{
			for (int k = 0; k < items.Length; k++)
			{
				Eff[] fx2 = items[k].Spec.Fx;
				for (int l = 0; l < fx2.Length; l++)
				{
					Eff eff2 = fx2[l];
					if (eff2.K == EK.CheatDeath)
					{
						int num4 = items[k].Index * 6 + l;
						if (!(ctrl.Cd[num4] > 0f) && ctrl.On(eff2.W))
						{
							ctrl.Cd[num4] = eff2.A / (float)items[k].N;
							ctrl.InvulnUntil = Time.time + eff2.C;
							body.AddTimedBuff(Buffs.Immune, eff2.C);
							Z.SelfHeal(self, self.fullHealth * eff2.B);
							return false;
						}
					}
				}
			}
		}
		return true;
	}

	internal static void AfterDamage(HealthComponent self, CharacterBody body, ZoneController ctrl, DamageInfo di, CharacterBody attacker)
	{
		//IL_0001: Unknown result type (might be due to invalid IL or missing references)
		//IL_0007: Invalid comparison between Unknown and I4
		if ((int)di.dotIndex != -1)
		{
			return;
		}
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				int num = items[i].Index * 6 + j;
				switch (eff.K)
				{
				case EK.RetZap:
					if (Object.op_Implicit((Object)(object)attacker) && self.alive && ctrl.Cd[num] <= 0f && ctrl.On(eff.W) && Z.Roll(eff.A * (float)n, body))
					{
						Z.Zap(body, attacker, eff.B, (int)eff.C, 20f);
						ctrl.Cd[num] = eff.D;
					}
					break;
				case EK.RetDebuff:
					if (Object.op_Implicit((Object)(object)attacker) && self.alive && ctrl.Cd[num] <= 0f && ctrl.On(eff.W) && Z.Roll(eff.A * (float)n, body))
					{
						Z.Debuff(body, attacker, (int)eff.C, eff.B);
						ctrl.Cd[num] = eff.D;
					}
					break;
				case EK.HurtBarrier:
					if (self.alive && ctrl.Cd[num] <= 0f && ctrl.On(eff.W))
					{
						self.AddBarrier(self.fullHealth * eff.A * (float)n);
						ctrl.Cd[num] = eff.B;
					}
					break;
				}
			}
		}
	}

	internal static void OnHit(ZoneController ctrl, CharacterBody atk, CharacterBody vic, float damageDealt, float proc)
	{
		//IL_0135: Unknown result type (might be due to invalid IL or missing references)
		HealthComponent healthComponent = atk.healthComponent;
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				switch (eff.K)
				{
				case EK.HitZap:
					if (ctrl.On(eff.W) && Z.Roll(eff.A * (float)n * proc, atk))
					{
						Z.Zap(atk, vic, eff.B, (int)eff.C, 18f);
					}
					break;
				case EK.HitDebuff:
					if (ctrl.On(eff.W) && Z.Roll(eff.A * (float)n * proc, atk))
					{
						Z.Debuff(atk, vic, (int)eff.C, eff.B);
					}
					break;
				case EK.HitBlast:
					if (ctrl.On(eff.W) && Z.Roll(eff.A * (float)n * proc, atk))
					{
						Z.Blast(atk, vic.corePosition, eff.C, atk.damage * eff.B);
					}
					break;
				case EK.Lifesteal:
					if (ctrl.On(eff.W) && Object.op_Implicit((Object)(object)healthComponent) && healthComponent.alive)
					{
						Z.SelfHeal(healthComponent, damageDealt * eff.A * (float)n);
					}
					break;
				case EK.HitBarrier:
					if (ctrl.On(eff.W) && Object.op_Implicit((Object)(object)healthComponent) && healthComponent.alive && Z.Roll(eff.A * (float)n * proc, atk))
					{
						healthComponent.AddBarrier(healthComponent.fullHealth * eff.B);
					}
					break;
				case EK.HitGold:
					if (ctrl.On(eff.W) && Z.Roll(eff.A * (float)n * proc, atk))
					{
						Z.Gold(atk, eff.B);
					}
					break;
				}
			}
		}
	}

	internal static void OnKill(ZoneController ctrl, CharacterBody atk, CharacterBody vic)
	{
		//IL_0142: Unknown result type (might be due to invalid IL or missing references)
		HealthComponent healthComponent = atk.healthComponent;
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				if (!ctrl.On(eff.W))
				{
					continue;
				}
				int num = items[i].Index * 6 + j;
				switch (eff.K)
				{
				case EK.KillHeal:
					Z.SelfHeal(healthComponent, healthComponent.fullHealth * eff.A * (float)n);
					break;
				case EK.KillBarrier:
					healthComponent.AddBarrier(healthComponent.fullHealth * eff.A * (float)n);
					break;
				case EK.KillBuff:
					ctrl.Stacks[num] = Mathf.Min((int)eff.C, ctrl.Stacks[num] + 1);
					ctrl.StackT[num] = eff.B;
					atk.MarkAllStatsDirty();
					break;
				case EK.KillGold:
					Z.Gold(atk, eff.A * (float)n);
					break;
				case EK.KillBlast:
					if (!Z.InBlast && Object.op_Implicit((Object)(object)vic) && Z.Roll(eff.A * (float)n, atk))
					{
						Z.Blast(atk, vic.corePosition, eff.C, atk.damage * eff.B);
					}
					break;
				}
			}
		}
	}

	internal static float HealMult(ZoneController ctrl, bool own)
	{
		float num = 0f;
		float num2 = 1f;
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				if (eff.K != EK.HealAmp || !ctrl.On(eff.W))
				{
					continue;
				}
				if (eff.A >= 0f)
				{
					if (!own)
					{
						num += eff.A * (float)n;
					}
				}
				else
				{
					num2 *= 1f - Z.Red(n, 0f - eff.A);
				}
			}
		}
		return (1f + num) * num2;
	}

	internal static void Overheal(HealthComponent self, ZoneController ctrl, float wasted)
	{
		if (wasted <= 0.01f)
		{
			return;
		}
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				if (eff.K == EK.Overheal && ctrl.On(eff.W))
				{
					self.AddBarrier(wasted * Mathf.Min(1f, eff.A * (float)n));
				}
			}
		}
	}

	internal static void Tick(ZoneController ctrl, CharacterBody body, HealthComponent hc, float dt)
	{
		//IL_01b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f2: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0282: Unknown result type (might be due to invalid IL or missing references)
		//IL_0287: Unknown result type (might be due to invalid IL or missing references)
		//IL_0439: Unknown result type (might be due to invalid IL or missing references)
		//IL_0213: Unknown result type (might be due to invalid IL or missing references)
		//IL_0218: Unknown result type (might be due to invalid IL or missing references)
		//IL_021a: Unknown result type (might be due to invalid IL or missing references)
		//IL_021f: Unknown result type (might be due to invalid IL or missing references)
		//IL_02af: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b3: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b8: Unknown result type (might be due to invalid IL or missing references)
		//IL_02bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_02dc: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e5: Unknown result type (might be due to invalid IL or missing references)
		//IL_0300: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f9: Unknown result type (might be due to invalid IL or missing references)
		Owned[] items = ctrl.Items;
		bool flag = false;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				int num = items[i].Index * 6 + j;
				if (ctrl.Cd[num] > 0f)
				{
					ctrl.Cd[num] -= dt;
				}
				if (eff.K == EK.KillBuff)
				{
					if (ctrl.Stacks[num] > 0)
					{
						ctrl.StackT[num] -= dt;
						if (ctrl.StackT[num] <= 0f)
						{
							ctrl.Stacks[num] = 0;
							flag = true;
						}
					}
				}
				else
				{
					if (!ctrl.On(eff.W))
					{
						continue;
					}
					switch (eff.K)
					{
					case EK.PulseHeal:
						if (Elapsed(ctrl, num, eff.A, dt))
						{
							Z.SelfHeal(hc, hc.fullHealth * eff.B * (float)n);
						}
						break;
					case EK.PulseBarrier:
						if (Elapsed(ctrl, num, eff.A, dt))
						{
							hc.AddBarrier(hc.fullHealth * eff.B * (float)n);
						}
						break;
					case EK.PulseBlast:
						if (Elapsed(ctrl, num, eff.A, dt))
						{
							Z.Blast(body, body.corePosition, eff.C, body.damage * eff.B * (float)n);
						}
						break;
					case EK.PulseDebuff:
					{
						if (!Elapsed(ctrl, num, eff.A, dt))
						{
							break;
						}
						Vector3 corePosition = body.corePosition;
						foreach (CharacterBody item in Z.Enemies(body))
						{
							Vector3 val = item.corePosition - corePosition;
							if (((Vector3)(ref val)).sqrMagnitude <= eff.B * eff.B)
							{
								Z.Debuff(body, item, (int)eff.D, eff.C);
							}
						}
						break;
					}
					case EK.PulsePull:
					{
						if (!Elapsed(ctrl, num, eff.A, dt))
						{
							break;
						}
						Vector3 corePosition2 = body.corePosition;
						float speed = Mathf.Abs(eff.C);
						foreach (CharacterBody item2 in Z.Enemies(body))
						{
							Vector3 val2 = corePosition2 - item2.corePosition;
							float magnitude = ((Vector3)(ref val2)).magnitude;
							if (!(magnitude > eff.B) && !(magnitude < 1.5f))
							{
								Vector3 val3 = val2 / magnitude;
								Z.Pull(item2, (eff.C >= 0f) ? val3 : (-val3), speed);
							}
						}
						break;
					}
					case EK.PulseZap:
						if (Elapsed(ctrl, num, eff.A, dt))
						{
							CharacterBody val4 = Z.Nearest(body, eff.D);
							if (Object.op_Implicit((Object)(object)val4))
							{
								Z.Zap(body, val4, eff.B * (float)n, (int)eff.C, 20f);
							}
							else
							{
								ctrl.Tm[num] = eff.A;
							}
						}
						break;
					case EK.Low:
						if (ctrl.Cd[num] <= 0f && hc.combinedHealthFraction <= eff.A)
						{
							if (eff.C > 0f)
							{
								hc.AddBarrier(hc.fullHealth * eff.C * (float)n);
							}
							if (eff.D > 0f)
							{
								Z.SelfHeal(hc, hc.fullHealth * eff.D * (float)n);
							}
							ctrl.Cd[num] = eff.B;
						}
						break;
					case EK.LowBlast:
						if (ctrl.Cd[num] <= 0f && hc.combinedHealthFraction <= eff.A)
						{
							Z.Blast(body, body.corePosition, eff.C, body.damage * eff.B * (float)n);
							ctrl.Cd[num] = eff.D;
						}
						break;
					case EK.LowCloak:
						if (ctrl.Cd[num] <= 0f && hc.combinedHealthFraction <= eff.A)
						{
							Cloak(body, eff.B);
							ctrl.Cd[num] = eff.C;
						}
						break;
					case EK.RadPurge:
						if (Elapsed(ctrl, num, eff.A, dt))
						{
							ctrl.Dose = Mathf.Max(0f, ctrl.Dose - eff.B * (float)n);
						}
						break;
					}
				}
			}
		}
		if (flag)
		{
			body.MarkAllStatsDirty();
		}
	}

	private static bool Elapsed(ZoneController ctrl, int slot, float interval, float dt)
	{
		ctrl.Tm[slot] += dt;
		if (ctrl.Tm[slot] < interval)
		{
			return false;
		}
		ctrl.Tm[slot] = 0f;
		return true;
	}

	private static void Cloak(CharacterBody body, float seconds)
	{
		if (!(seconds <= 0f))
		{
			body.AddTimedBuff(Buffs.Cloak, seconds);
			body.AddTimedBuff(Buffs.CloakSpeed, seconds);
		}
	}

	internal static void OnStage(ZoneController ctrl, CharacterBody body, HealthComponent hc)
	{
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			int n = items[i].N;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				if (eff.K == EK.StageBarrier)
				{
					hc.AddBarrier(hc.fullHealth * eff.A * (float)n);
				}
				else if (eff.K == EK.StageCloak)
				{
					Cloak(body, eff.A * (float)n);
				}
			}
		}
	}

	internal static void OnJump(ZoneController ctrl, HealthComponent hc)
	{
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				if (eff.K == EK.JumpBarrier && ctrl.On(eff.W))
				{
					int num = items[i].Index * 6 + j;
					if (!(ctrl.Cd[num] > 0f))
					{
						hc.AddBarrier(hc.fullHealth * eff.A * (float)items[i].N);
						ctrl.Cd[num] = eff.B;
					}
				}
			}
		}
	}

	internal static void OnLand(ZoneController ctrl, CharacterBody body)
	{
		//IL_006e: Unknown result type (might be due to invalid IL or missing references)
		Owned[] items = ctrl.Items;
		for (int i = 0; i < items.Length; i++)
		{
			Eff[] fx = items[i].Spec.Fx;
			for (int j = 0; j < fx.Length; j++)
			{
				Eff eff = fx[j];
				if (eff.K == EK.LandBlast && ctrl.On(eff.W))
				{
					int num = items[i].Index * 6 + j;
					if (!(ctrl.Cd[num] > 0f))
					{
						Z.Blast(body, body.footPosition, eff.B, body.damage * eff.A * (float)items[i].N);
						ctrl.Cd[num] = eff.C;
					}
				}
			}
		}
	}
}
internal static class Hooks
{
	internal static void Install()
	{
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Expected O, but got Unknown
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0022: Expected O, but got Unknown
		//IL_0029: Unknown result type (might be due to invalid IL or missing references)
		//IL_0033: Expected O, but got Unknown
		RecalculateStatsAPI.GetStatCoefficients += new StatHookEventHandler(OnStats);
		HealthComponent.TakeDamage += new hook_TakeDamage(OnTakeDamage);
		HealthComponent.Heal += new hook_Heal(OnHeal);
		GlobalEventManager.onServerDamageDealt += OnDamageDealt;
		GlobalEventManager.onCharacterDeathGlobal += OnDeath;
		CharacterBody.onBodyInventoryChangedGlobal += OnInventoryChanged;
	}

	private static void OnStats(CharacterBody body, StatHookEventArgs a)
	{
		if (!Object.op_Implicit((Object)(object)body) || !Object.op_Implicit((Object)(object)body.inventory))
		{
			return;
		}
		ZoneController zoneController = EnsureController(body);
		if (!Object.op_Implicit((Object)(object)zoneController))
		{
			return;
		}
		zoneController.Refresh();
		float num = 1f + 0.2f * Mathf.Max(0f, body.level - 1f);
		float hpMinus = 0f;
		int num2;
		if ((num2 = Z.N(body, ZId.Battery)) > 0)
		{
			a.moveSpeedMultAdd += 0.08f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Crystal)) > 0)
		{
			a.armorAdd += 6f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Cavity)) > 0)
		{
			a.healthMultAdd += 0.08f * (float)num2;
			a.baseRegenAdd += 0.5f * (float)num2 * num;
		}
		if ((num2 = Z.N(body, ZId.Frost)) > 0)
		{
			a.armorAdd += 5f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Static)) > 0)
		{
			a.armorAdd += 10f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Heart)) > 0)
		{
			a.baseRegenAdd += 0.8f * (float)num2 * num;
		}
		if ((num2 = Z.N(body, ZId.Sun)) > 0)
		{
			a.healthMultAdd += 0.1f * (float)num2;
			a.baseRegenAdd += 1f * (float)num2 * num;
			if (zoneController.IsCalm)
			{
				a.baseRegenAdd += 2f * (float)num2 * num;
			}
		}
		if ((num2 = Z.N(body, ZId.Thunderberry)) > 0)
		{
			a.moveSpeedMultAdd += 0.25f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Compass)) > 0)
		{
			a.armorAdd += 30f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Hypercube)) > 0)
		{
			a.healthMultAdd += 0.15f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Bubblegum)) > 0)
		{
			a.armorAdd += 45f * (float)num2;
			a.moveSpeedReductionMultAdd += 0.12f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.Firebird)) > 0)
		{
			a.baseRegenAdd += 1.4f * (float)num2 * num;
		}
		if ((num2 = Z.N(body, ZId.BlackHole)) > 0)
		{
			a.armorAdd += 25f * (float)num2;
			a.attackSpeedMultAdd += 0.1f * (float)num2;
		}
		if ((num2 = Z.N(body, ZId.EyeOfStorm)) > 0)
		{
			a.moveSpeedMultAdd += 0.2f * (float)num2;
			a.jumpPowerMultAdd += 0.1f * (float)num2;
			hpMinus += Z.Red(num2, 0.15f);
		}
		bool flag = ZoneArtifactsPlugin.RadiationEnabled == null || ZoneArtifactsPlugin.RadiationEnabled.Value;
		int surplus = 0;
		zoneController.Net = (flag ? Z.NetRadiation(body, out surplus) : 0);
		Engine.Stats(body, zoneController, a, num, ref hpMinus);
		int num3 = Z.N(body, ZId.RadiationSickness);
		if (num3 > 0)
		{
			float num4 = Mathf.Min(0.9f, (float)num3 * 0.01f);
			a.baseCurseAdd += num4 / (1f - num4);
		}
		if (flag)
		{
			if (surplus > 0 && Z.N(body, ZId.LiquidRock) > 0)
			{
				a.baseRegenAdd += 0.4f * Mathf.Min((float)surplus, 6f) * num;
			}
			if (Z.N(body, ZId.HeartOfChornobyl) > 0 && zoneController.Net > 0)
			{
				a.damageMultAdd += Mathf.Min(1.5f, 0.03f * (float)zoneController.Net);
			}
		}
		if (hpMinus > 0f)
		{
			a.healthMultAdd -= Mathf.Min(hpMinus, 0.9f);
		}
	}

	private static void OnTakeDamage(orig_TakeDamage orig, HealthComponent self, DamageInfo di)
	{
		//IL_0049: Unknown result type (might be due to invalid IL or missing references)
		//IL_004f: Invalid comparison between Unknown and I4
		//IL_0055: Unknown result type (might be due to invalid IL or missing references)
		CharacterBody val = (Object.op_Implicit((Object)(object)self) ? self.body : null);
		if (!Object.op_Implicit((Object)(object)val) || di == null || di.rejected || !Object.op_Implicit((Object)(object)val.inventory))
		{
			orig.Invoke(self, di);
			return;
		}
		ZoneController component = ((Component)val).GetComponent<ZoneController>();
		float mult = 1f;
		if ((int)di.dotIndex != -1)
		{
			switch (Z.Classify(di.dotIndex))
			{
			case DotKind.Burn:
				mult = ((Z.N(val, ZId.Hypercube) <= 0 && Z.N(val, ZId.EyeOfStorm) <= 0) ? (mult * (1f - Z.Red(Z.N(val, ZId.Crystal), 0.25f))) : 0f);
				break;
			case DotKind.Bleed:
				if (Z.N(val, ZId.Hypercube) > 0)
				{
					mult = 0f;
					break;
				}
				mult *= 1f - Z.Red(Z.N(val, ZId.Cavity), 0.3f);
				mult *= 1f - Z.Red(Z.N(val, ZId.Bubblegum), 0.45f);
				break;
			case DotKind.Chem:
				if (Z.N(val, ZId.LiquidRock) > 0 || Z.N(val, ZId.EyeOfStorm) > 0)
				{
					mult = 0f;
				}
				break;
			}
		}
		if (mult > 0f)
		{
			int num = Z.N(val, ZId.Compass);
			if (num > 0 && di.damage >= self.fullHealth * 0.2f)
			{
				mult *= 1f - Z.Red(num, 0.4f);
			}
		}
		if (mult > 0f && Object.op_Implicit((Object)(object)component) && !Engine.BeforeDamage(self, val, component, di, ref mult))
		{
			mult = 0f;
		}
		if (mult <= 0f)
		{
			di.rejected = true;
			orig.Invoke(self, di);
			return;
		}
		if (mult < 1f)
		{
			di.damage *= mult;
		}
		orig.Invoke(self, di);
		AfterDamage(self, val, di);
	}

	private static void AfterDamage(HealthComponent self, CharacterBody body, DamageInfo di)
	{
		//IL_007a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0085: Unknown result type (might be due to invalid IL or missing references)
		if (di.rejected || di.damage <= 0f)
		{
			return;
		}
		ZoneController component = ((Component)body).GetComponent<ZoneController>();
		if (Object.op_Implicit((Object)(object)component))
		{
			component.MarkHit();
		}
		CharacterBody val = (Object.op_Implicit((Object)(object)di.attacker) ? di.attacker.GetComponent<CharacterBody>() : null);
		if ((Object)(object)val == (Object)(object)body)
		{
			val = null;
		}
		if (Object.op_Implicit((Object)(object)val) && Object.op_Implicit((Object)(object)val.teamComponent) && Object.op_Implicit((Object)(object)body.teamComponent) && val.teamComponent.teamIndex == body.teamComponent.teamIndex)
		{
			val = null;
		}
		if (Object.op_Implicit((Object)(object)component))
		{
			Engine.AfterDamage(self, body, component, di, val);
		}
		if (Object.op_Implicit((Object)(object)val))
		{
			if (Z.N(body, ZId.Bubblegum) > 0)
			{
				val.AddTimedBuff(Buffs.Slow60, 2f);
			}
			int num = Z.N(body, ZId.Static);
			if (num > 0 && Object.op_Implicit((Object)(object)component) && component.StaticReady && self.alive && Z.Roll(0.25f * (float)num, body))
			{
				component.StaticUsed();
				Z.Zap(body, val, 1.5f, 3, 20f);
			}
		}
	}

	private static float OnHeal(orig_Heal orig, HealthComponent self, float amount, ProcChainMask procChainMask, bool nonRegen)
	{
		//IL_008b: Unknown result type (might be due to invalid IL or missing references)
		CharacterBody val = (Object.op_Implicit((Object)(object)self) ? self.body : null);
		ZoneController zoneController = null;
		if (Object.op_Implicit((Object)(object)val) && Object.op_Implicit((Object)(object)val.inventory))
		{
			zoneController = ((Component)val).GetComponent<ZoneController>();
			float num = 1f;
			if (!Z.SkipHealBonus)
			{
				num += 0.12f * (float)Z.N(val, ZId.Frost) + 0.12f * (float)Z.N(val, ZId.Heart) + 0.25f * (float)Z.N(val, ZId.Firebird);
			}
			if (Object.op_Implicit((Object)(object)zoneController))
			{
				num *= Engine.HealMult(zoneController, Z.SkipHealBonus);
			}
			amount *= num;
		}
		float num2 = orig.Invoke(self, amount, procChainMask, nonRegen);
		if (Object.op_Implicit((Object)(object)zoneController) && amount > num2)
		{
			Engine.Overheal(self, zoneController, amount - num2);
		}
		return num2;
	}

	private static void OnDamageDealt(DamageReport report)
	{
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_0057: Invalid comparison between Unknown and I4
		//IL_007a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0085: Unknown result type (might be due to invalid IL or missing references)
		if (report == null)
		{
			return;
		}
		DamageInfo damageInfo = report.damageInfo;
		CharacterBody attackerBody = report.attackerBody;
		CharacterBody victimBody = report.victimBody;
		if (damageInfo != null && Object.op_Implicit((Object)(object)attackerBody) && Object.op_Implicit((Object)(object)victimBody) && !((Object)(object)attackerBody == (Object)(object)victimBody) && Object.op_Implicit((Object)(object)attackerBody.inventory) && !(damageInfo.procCoefficient <= 0f) && (int)damageInfo.dotIndex == -1 && (!Object.op_Implicit((Object)(object)attackerBody.teamComponent) || !Object.op_Implicit((Object)(object)victimBody.teamComponent) || attackerBody.teamComponent.teamIndex != victimBody.teamComponent.teamIndex))
		{
			float procCoefficient = damageInfo.procCoefficient;
			int num;
			if ((num = Z.N(attackerBody, ZId.Battery)) > 0 && Z.Roll(0.07f * (float)num * procCoefficient, attackerBody))
			{
				Z.Zap(attackerBody, victimBody, 0.6f, 2, 18f);
			}
			if ((num = Z.N(attackerBody, ZId.Frost)) > 0 && Z.Roll(0.15f * (float)num * procCoefficient, attackerBody))
			{
				victimBody.AddTimedBuff(Buffs.Slow60, 3f);
			}
			if ((num = Z.N(attackerBody, ZId.Firebird)) > 0 && Z.Roll(0.15f * (float)num * procCoefficient, attackerBody))
			{
				Z.Ignite(attackerBody, victimBody, 4f);
			}
			ZoneController component = ((Component)attackerBody).GetComponent<ZoneController>();
			if (Object.op_Implicit((Object)(object)component))
			{
				Engine.OnHit(component, attackerBody, victimBody, report.damageDealt, procCoefficient);
			}
		}
	}

	private static void OnDeath(DamageReport report)
	{
		if (report == null || !NetworkServer.active)
		{
			return;
		}
		CharacterBody attackerBody = report.attackerBody;
		CharacterBody victimBody = report.victimBody;
		if (!Object.op_Implicit((Object)(object)attackerBody) || (Object)(object)attackerBody == (Object)(object)victimBody || !Object.op_Implicit((Object)(object)attackerBody.inventory))
		{
			return;
		}
		HealthComponent healthComponent = attackerBody.healthComponent;
		if (Object.op_Implicit((Object)(object)healthComponent) && healthComponent.alive)
		{
			if (Z.N(attackerBody, ZId.Firebird) > 0 && Object.op_Implicit((Object)(object)victimBody) && victimBody.HasBuff(Buffs.OnFire))
			{
				Z.SelfHeal(healthComponent, healthComponent.fullHealth * 0.04f);
			}
			ZoneController component = ((Component)attackerBody).GetComponent<ZoneController>();
			if (Object.op_Implicit((Object)(object)component))
			{
				Engine.OnKill(component, attackerBody, victimBody);
			}
		}
	}

	private static void OnInventoryChanged(CharacterBody body)
	{
		ZoneController zoneController = EnsureController(body);
		if (Object.op_Implicit((Object)(object)zoneController))
		{
			zoneController.Refresh();
		}
	}

	private static ZoneController EnsureController(CharacterBody body)
	{
		if (!Object.op_Implicit((Object)(object)body) || !Object.op_Implicit((Object)(object)body.inventory))
		{
			return null;
		}
		ZoneController component = ((Component)body).GetComponent<ZoneController>();
		if (Object.op_Implicit((Object)(object)component))
		{
			return component;
		}
		for (int i = 0; i < Z.Defs.Length; i++)
		{
			ItemDef val = Z.Defs[i];
			if (Object.op_Implicit((Object)(object)val) && body.inventory.GetItemCount(val) > 0)
			{
				return ((Component)body).gameObject.AddComponent<ZoneController>();
			}
		}
		return null;
	}
}
internal enum ZId
{
	Battery,
	Crystal,
	Cavity,
	Bubble,
	Frost,
	Static,
	Heart,
	Sun,
	WeirdFlower,
	WeirdPot,
	WeirdBolt,
	Thunderberry,
	Compass,
	Hypercube,
	LiquidRock,
	Bubblegum,
	Firebird,
	BlackHole,
	WeirdWater,
	WeirdNut,
	EyeOfStorm,
	HeartOfChornobyl,
	Mica,
	Slug,
	Thorn,
	Crust,
	Slime,
	Pellicle,
	TouristsBreakfast,
	Kolobok,
	Horn,
	Skipjack,
	MeatChunk,
	CrystalThorn,
	DevilsMushroom,
	Urchin,
	Mold,
	Ciliate,
	Glare,
	ChocolateBar,
	Harp,
	Crest,
	Shell,
	Flash,
	Sapphire,
	Moonlight,
	Starfish,
	Snowflake,
	Soul,
	Sparkler,
	Lantern,
	ShopClass,
	RatKing,
	Flaw,
	Spinner,
	Petal,
	Torch,
	DeadSponge,
	Droplets,
	Eye,
	Fireball,
	MeatLighter,
	Magma,
	MamasBeads,
	Plasma,
	Lyre,
	Steak,
	StoneBlood,
	FlowerBud,
	Goldfish,
	Crown,
	Gravi,
	Flytrap,
	Jellyfish,
	Nightstar,
	Pebble,
	MagicCube,
	BrokenRock,
	Whirlwind,
	Spring,
	StoneHeart,
	Rosin,
	Wrenched,
	WeirdBall,
	WeirdMirror,
	ChimeraHeart,
	RadiationSickness
}
internal enum EK
{
	Armor,
	Hp,
	Regen,
	Move,
	Atk,
	Dmg,
	Crit,
	Jump,
	Luck,
	Jumps,
	Dr,
	Res,
	DrBig,
	Dodge,
	RetZap,
	RetDebuff,
	HurtBarrier,
	HitZap,
	HitDebuff,
	HitBlast,
	Lifesteal,
	HitBarrier,
	HitGold,
	KillHeal,
	KillBarrier,
	KillBuff,
	KillGold,
	KillBlast,
	PulseHeal,
	PulseBarrier,
	PulseBlast,
	PulseDebuff,
	PulsePull,
	PulseZap,
	Low,
	LowBlast,
	LowCloak,
	StageBarrier,
	StageCloak,
	LandBlast,
	JumpBarrier,
	CheatDeath,
	HealAmp,
	Overheal,
	RadStat,
	RadPurge
}
internal struct Eff
{
	public EK K;

	public int W;

	public float A;

	public float B;

	public float C;

	public float D;

	public Eff(EK k, int w, float a, float b, float c, float d)
	{
		K = k;
		W = w;
		A = a;
		B = b;
		C = c;
		D = d;
	}
}
internal sealed class ItemSpec
{
	public ZId Id;

	public string Key;

	public string IconFile;

	public string ModelFile;

	public ItemTier Tier;

	public int Rad;

	public Eff[] Fx;

	public string ColorHex;

	public string[] Tags;

	public string NameEn;

	public string PickupEn;

	public string DescEn;

	public string LoreEn;

	public string NameRu;

	public string PickupRu;

	public string DescRu;

	public string LoreRu;
}
internal static class Cfg
{
	public const float RadPer = 2.5f;

	public const float RadCap = 60f;

	public const float RadRise = 0.12f;

	public const float RadFall = 0.5f;

	public const float RadStagePurge = 0.4f;

	public const float battery_move = 0.08f;

	public const float battery_chance = 0.07f;

	public const float battery_dmg = 0.6f;

	public const float battery_bounces = 2f;

	public const float battery_range = 18f;

	public const float crystal_armor = 6f;

	public const float crystal_burn_res = 0.25f;

	public const float cavity_hp = 0.08f;

	public const float cavity_regen = 0.5f;

	public const float cavity_bleed_res = 0.3f;

	public const float bubble_barrier = 0.12f;

	public const float bubble_thresh = 0.5f;

	public const float bubble_cd = 15f;

	public const float frost_heal = 0.12f;

	public const float frost_armor = 5f;

	public const float frost_chance = 0.15f;

	public const float frost_slow = 3f;

	public const float static_armor = 10f;

	public const float static_chance = 0.25f;

	public const float static_dmg = 1.5f;

	public const float static_bounces = 3f;

	public const float static_range = 20f;

	public const float static_cd = 1.5f;

	public const float heart_regen = 0.8f;

	public const float heart_heal = 0.12f;

	public const float heart_pulse = 0.025f;

	public const float heart_interval = 6f;

	public const float sun_hp = 0.1f;

	public const float sun_regen = 1f;

	public const float sun_bonus_regen = 2f;

	public const float sun_calm = 5f;

	public const float thunderberry_move = 0.25f;

	public const float thunderberry_interval = 2f;

	public const float thunderberry_dmg = 2.5f;

	public const float thunderberry_bounces = 3f;

	public const float thunderberry_range = 28f;

	public const float compass_armor = 30f;

	public const float compass_big_hit = 0.2f;

	public const float compass_big_res = 0.4f;

	public const float hypercube_hp = 0.15f;

	public const float liquid_rock_surplus_regen = 0.4f;

	public const float liquid_rock_surplus_cap = 6f;

	public const float bubblegum_armor = 45f;

	public const float bubblegum_move_pen = 0.12f;

	public const float bubblegum_bleed_res = 0.45f;

	public const float bubblegum_slow = 2f;

	public const float firebird_heal = 0.25f;

	public const float firebird_regen = 1.4f;

	public const float firebird_ignite = 0.15f;

	public const float firebird_burn_dur = 4f;

	public const float firebird_burn_heal = 0.04f;

	public const float black_hole_armor = 25f;

	public const float black_hole_atk = 0.1f;

	public const float black_hole_interval = 10f;

	public const float black_hole_interval_stack = 1f;

	public const float black_hole_interval_min = 4f;

	public const float black_hole_radius = 22f;

	public const float black_hole_pull = 14f;

	public const float black_hole_slow = 1.5f;

	public const float eye_of_storm_move = 0.2f;

	public const float eye_of_storm_jump = 0.1f;

	public const float eye_of_storm_hp_pen = 0.15f;

	public const float heart_of_chornobyl_dmg_per_rad = 0.03f;

	public const float heart_of_chornobyl_dmg_cap = 1.5f;
}
internal static class Specs
{
	public static readonly ItemSpec[] All = new ItemSpec[87]
	{
		new ItemSpec
		{
			Id = ZId.Battery,
			Key = "BATTERY",
			IconFile = "battery.png",
			ModelFile = "battery.zam",
			Tier = (ItemTier)0,
			Rad = 1,
			Fx = new Eff[0],
			ColorHex = "#e8c33a",
			Tags = new string[2] { "Utility", "Damage" },
			NameEn = "Battery",
			PickupEn = "+8% move speed. On hit: 7% chance of chain lightning (60% dmg). Radiation +1.",
			DescEn = "Increase <style=cIsUtility>movement speed</style> by <style=cIsUtility>8%</style> <style=cStack>(+8% per stack)</style>. <style=cIsDamage>7%</style> <style=cStack>(+7% per stack)</style> chance on hit to discharge <style=cIsDamage>chain lightning</style> for <style=cIsDamage>60% damage</style>.\n\n<style=cDeath>Radiation +1</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "It hums in your pocket like a trapped insect. The charge never runs out, and no instrument can say why.",
			NameRu = "Батарейка",
			PickupRu = "+8% скорости бега. При попадании: 7% шанс цепной молнии (60% урона). Радиация +1.",
			DescRu = "Увеличивает <style=cIsUtility>скорость передвижения</style> на <style=cIsUtility>8%</style> <style=cStack>(+8% за каждый)</style>. Шанс <style=cIsDamage>7%</style> <style=cStack>(+7% за каждый)</style> при попадании выпустить <style=cIsDamage>цепную молнию</style> на <style=cIsDamage>60% урона</style>.\n\n<style=cDeath>Радиация +1</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Она гудит в кармане, как пойманное насекомое. Заряд не кончается, и ни один прибор не может объяснить почему."
		},
		new ItemSpec
		{
			Id = ZId.Crystal,
			Key = "CRYSTAL",
			IconFile = "crystal.png",
			ModelFile = "crystal.zam",
			Tier = (ItemTier)0,
			Rad = 1,
			Fx = new Eff[0],
			ColorHex = "#ff7a3d",
			Tags = new string[1] { "Utility" },
			NameEn = "Crystal",
			PickupEn = "+6 armor. -25% burn damage taken. Radiation +1.",
			DescEn = "Gain <style=cIsHealing>6 armor</style> <style=cStack>(+6 per stack)</style>. Take <style=cIsHealing>25%</style> less <style=cIsDamage>burn damage</style> <style=cStack>(increases hyperbolically)</style>.\n\n<style=cDeath>Radiation +1</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "Warm to the touch even in January. Stalkers keep it close when the Zone starts to smoulder.",
			NameRu = "Кристалл",
			PickupRu = "+6 брони. -25% урона от горения. Радиация +1.",
			DescRu = "Даёт <style=cIsHealing>6 брони</style> <style=cStack>(+6 за каждый)</style>. Вы получаете на <style=cIsHealing>25%</style> меньше <style=cIsDamage>урона от горения</style> <style=cStack>(растёт гиперболически)</style>.\n\n<style=cDeath>Радиация +1</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Тёплый на ощупь даже в январе. Сталкеры держат его при себе, когда Зона начинает тлеть."
		},
		new ItemSpec
		{
			Id = ZId.Cavity,
			Key = "CAVITY",
			IconFile = "cavity.png",
			ModelFile = "cavity.zam",
			Tier = (ItemTier)0,
			Rad = 1,
			Fx = new Eff[0],
			ColorHex = "#c9573a",
			Tags = new string[1] { "Healing" },
			NameEn = "Cavity",
			PickupEn = "+8% max HP, +0.5 HP/s regen. -30% bleed damage taken. Radiation +1.",
			DescEn = "Increase <style=cIsHealing>maximum health</style> by <style=cIsHealing>8%</style> <style=cStack>(+8% per stack)</style>. Gain <style=cIsHealing>+0.5 base health regeneration</style> <style=cStack>(+0.5 per stack)</style>. Take <style=cIsHealing>30%</style> less <style=cIsDamage>bleed damage</style> <style=cStack>(increases hyperbolically)</style>.\n\n<style=cDeath>Radiation +1</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "A hollow where something used to be. Wounds close faster around it, as if it were hungry for them.",
			NameRu = "Полость",
			PickupRu = "+8% макс. здоровья, +0.5 ХП/с регенерации. -30% урона от кровотечения. Радиация +1.",
			DescRu = "Увеличивает <style=cIsHealing>максимальное здоровье</style> на <style=cIsHealing>8%</style> <style=cStack>(+8% за каждый)</style>. Даёт <style=cIsHealing>+0.5 к базовой регенерации</style> <style=cStack>(+0.5 за каждый)</style>. Вы получаете на <style=cIsHealing>30%</style> меньше <style=cIsDamage>урона от кровотечения</style> <style=cStack>(растёт гиперболически)</style>.\n\n<style=cDeath>Радиация +1</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Пустота там, где раньше что-то было. Раны затягиваются вокруг неё быстрее, словно она их жаждет."
		},
		new ItemSpec
		{
			Id = ZId.Bubble,
			Key = "BUBBLE",
			IconFile = "bubble.png",
			ModelFile = "bubble.zam",
			Tier = (ItemTier)1,
			Rad = -2,
			Fx = new Eff[0],
			ColorHex = "#4fd1a5",
			Tags = new string[2] { "Healing", "Utility" },
			NameEn = "Bubble",
			PickupEn = "Below 50% HP: barrier of 12% max HP (once per 15s). Radiation resistance 2.",
			DescEn = "Falling below <style=cIsHealth>50% health</style> grants a <style=cIsHealing>temporary barrier</style> for <style=cIsHealing>12%</style> of maximum health <style=cStack>(+12% per stack)</style>. Recharges after 15 seconds.\n\n<style=cIsHealing>Radiation resistance 2</style> <style=cStack>(cancels radiation from other artifacts)</style>",
			LoreEn = "A film as thin as soap, and as stubborn as a pressure vessel. When it bursts, the stalker is usually already somewhere else.",
			NameRu = "Пузырь",
			PickupRu = "Здоровье ниже 50%: барьер 12% макс. здоровья (раз в 15 с). Защита от радиации 2.",
			DescRu = "При падении ниже <style=cIsHealth>50% здоровья</style> даёт <style=cIsHealing>временный барьер</style> на <style=cIsHealing>12%</style> максимального здоровья <style=cStack>(+12% за каждый)</style>. Перезарядка 15 с.\n\n<style=cIsHealing>Сопротивление радиации 2</style> <style=cStack>(гасит радиацию других артефактов)</style>",
			LoreRu = "Плёнка тонкая, как мыльная, и упрямая, как сосуд под давлением. Когда она лопается, сталкер обычно уже в другом месте."
		},
		new ItemSpec
		{
			Id = ZId.Frost,
			Key = "FROST",
			IconFile = "frost.png",
			ModelFile = "frost.zam",
			Tier = (ItemTier)1,
			Rad = 0,
			Fx = new Eff[0],
			ColorHex = "#7fd4ff",
			Tags = new string[2] { "Healing", "Utility" },
			NameEn = "Frost",
			PickupEn = "+12% healing received, +5 armor. On hit: 15% chance to chill the enemy for 3s.",
			DescEn = "Receive <style=cIsHealing>12%</style> more <style=cIsHealing>healing</style> <style=cStack>(+12% per stack)</style>. Gain <style=cIsHealing>5 armor</style> <style=cStack>(+5 per stack)</style>. <style=cIsDamage>15%</style> <style=cStack>(+15% per stack)</style> chance on hit to <style=cIsUtility>chill</style> the enemy, slowing it for 3 seconds.",
			LoreEn = "Crystals grow on its icy crust while you watch. Hold it long enough and your own pulse starts to feel slow.",
			NameRu = "Мороз",
			PickupRu = "+12% получаемого лечения, +5 брони. При попадании: 15% шанс охладить врага на 3 с.",
			DescRu = "Вы получаете на <style=cIsHealing>12%</style> больше <style=cIsHealing>лечения</style> <style=cStack>(+12% за каждый)</style>. Даёт <style=cIsHealing>5 брони</style> <style=cStack>(+5 за каждый)</style>. Шанс <style=cIsDamage>15%</style> <style=cStack>(+15% за каждый)</style> при попадании <style=cIsUtility>охладить</style> врага, замедлив его на 3 с.",
			LoreRu = "Кристаллы растут на ледяной корке прямо на глазах. Подержи его подольше, и собственный пульс покажется медленным."
		},
		new ItemSpec
		{
			Id = ZId.Static,
			Key = "STATIC",
			IconFile = "static.png",
			ModelFile = "static.zam",
			Tier = (ItemTier)1,
			Rad = 2,
			Fx = new Eff[0],
			ColorHex = "#b48cff",
			Tags = new string[2] { "Damage", "Utility" },
			NameEn = "Static",
			PickupEn = "+10 armor. When hit: 25% chance to strike the attacker with lightning (150% dmg, once per 1.5s). Radiation +2.",
			DescEn = "Gain <style=cIsHealing>10 armor</style> <style=cStack>(+10 per stack)</style>. When struck by an enemy, <style=cIsDamage>25%</style> <style=cStack>(+25% per stack)</style> chance to discharge <style=cIsDamage>lightning</style> back at the attacker for <style=cIsDamage>150% damage</style>. Cooldown 1.5 seconds.\n\n<style=cDeath>Radiation +2</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "Every hair on your arm leans toward it. When something hostile comes close, the air tastes of metal.",
			NameRu = "Статик",
			PickupRu = "+10 брони. Когда бьют вас: 25% шанс ударить напавшего молнией (150% урона, раз в 1.5 с). Радиация +2.",
			DescRu = "Даёт <style=cIsHealing>10 брони</style> <style=cStack>(+10 за каждый)</style>. Когда враг попадает по вам, шанс <style=cIsDamage>25%</style> <style=cStack>(+25% за каждый)</style> ответить <style=cIsDamage>молнией</style> на <style=cIsDamage>150% урона</style>. Перезарядка 1.5 с.\n\n<style=cDeath>Радиация +2</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Каждый волосок на руке тянется к нему. Когда рядом появляется враг, воздух отдаёт металлом."
		},
		new ItemSpec
		{
			Id = ZId.Heart,
			Key = "HEART",
			IconFile = "heart.png",
			ModelFile = "heart.zam",
			Tier = (ItemTier)1,
			Rad = 1,
			Fx = new Eff[0],
			ColorHex = "#ff4d6a",
			Tags = new string[1] { "Healing" },
			NameEn = "Heart",
			PickupEn = "+0.8 HP/s regen, +12% healing received. Every 6s: heal 2.5% max HP. Radiation +1.",
			DescEn = "Gain <style=cIsHealing>+0.8 base health regeneration</style> <style=cStack>(+0.8 per stack)</style>. Receive <style=cIsHealing>12%</style> more <style=cIsHealing>healing</style> <style=cStack>(+12% per stack)</style>. Every 6 seconds <style=cIsHealing>heal for 2.5%</style> of maximum health <style=cStack>(+2.5% per stack)</style>.\n\n<style=cDeath>Radiation +1</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "It beats out of time with yours, then slowly falls into step.",
			NameRu = "Сердце",
			PickupRu = "+0.8 ХП/с регенерации, +12% получаемого лечения. Каждые 6 с: лечит на 2.5% макс. здоровья. Радиация +1.",
			DescRu = "Даёт <style=cIsHealing>+0.8 к базовой регенерации</style> <style=cStack>(+0.8 за каждый)</style>. Вы получаете на <style=cIsHealing>12%</style> больше <style=cIsHealing>лечения</style> <style=cStack>(+12% за каждый)</style>. Каждые 6 с <style=cIsHealing>лечит на 2.5%</style> максимального здоровья <style=cStack>(+2.5% за каждый)</style>.\n\n<style=cDeath>Радиация +1</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Оно бьётся невпопад с вашим, а потом постепенно подстраивается."
		},
		new ItemSpec
		{
			Id = ZId.Sun,
			Key = "SUN",
			IconFile = "sun.png",
			ModelFile = "sun.zam",
			Tier = (ItemTier)1,
			Rad = 0,
			Fx = new Eff[0],
			ColorHex = "#ffb627",
			Tags = new string[1] { "Healing" },
			NameEn = "Sun",
			PickupEn = "+10% max HP, +1 HP/s regen (+2 more after 5s unhurt).",
			DescEn = "Increase <style=cIsHealing>maximum health</style> by <style=cIsHealing>10%</style> <style=cStack>(+10% per stack)</style>. Gain <style=cIsHealing>+1 base health regeneration</style> <style=cStack>(+1 per stack)</style>, increased by <style=cIsHealing>+2</style> <style=cStack>(+2 per stack)</style> while you have taken no damage for 5 seconds.",
			LoreEn = "A small, patient dawn. It does not care about the Emission, only that you are still alive.",
			NameRu = "Солнце",
			PickupRu = "+10% макс. здоровья, +1 ХП/с регенерации (ещё +2, если 5 с нет урона).",
			DescRu = "Увеличивает <style=cIsHealing>максимальное здоровье</style> на <style=cIsHealing>10%</style> <style=cStack>(+10% за каждый)</style>. Даёт <style=cIsHealing>+1 к базовой регенерации</style> <style=cStack>(+1 за каждый)</style>, а если 5 с вы не получали урон, ещё <style=cIsHealing>+2</style> <style=cStack>(+2 за каждый)</style>.",
			LoreRu = "Маленький терпеливый рассвет. Ему нет дела до Выброса, лишь бы вы остались живы."
		},
		new ItemSpec
		{
			Id = ZId.WeirdFlower,
			Key = "WEIRD_FLOWER",
			IconFile = "weird_flower.png",
			ModelFile = "weird_flower.zam",
			Tier = (ItemTier)2,
			Rad = 0,
			Fx = new Eff[4]
			{
				new Eff(EK.StageCloak, 0, 6f, 0f, 0f, 0f),
				new Eff(EK.LowCloak, 0, 0.5f, 5f, 30f, 0f),
				new Eff(EK.Move, 1, 0.1f, 0f, 0f, 0f),
				new Eff(EK.Regen, 1, 2f, 0f, 0f, 0f)
			},
			ColorHex = "#e86fd0",
			Tags = new string[2] { "Healing", "Utility" },
			NameEn = "Weird Flower",
			PickupEn = "Stage start: invisible for 6s. Below 50% HP: invisible for 5s (once per 30s). Unhurt for 5s: +10% move speed, +2 HP/s regen.",
			DescEn = "Start every stage invisible for 6 seconds <style=cStack>(+6 s per stack)</style>. Falling below <style=cIsHealth>50%</style> health: turn invisible for 5 seconds (once every 30 seconds). While you take no damage: <style=cIsUtility>+10% movement speed</style> <style=cStack>(+10% per stack)</style>, <style=cIsHealing>+2 base health regeneration</style> <style=cStack>(+2 per stack)</style>.",
			LoreEn = "After a night beside it, beasts walk past you as if you were a stone.",
			NameRu = "Странный цветок",
			PickupRu = "Начало уровня: невидимость 6 с. Здоровье ниже 50%: невидимость 5 с (раз в 30 с). Без урона 5 с: +10% скорости бега, +2 ХП/с регенерации.",
			DescRu = "Каждый уровень вы начинаете невидимым на 6 сек <style=cStack>(+6 сек. за каждый)</style>. Когда здоровье падает ниже <style=cIsHealth>50%</style>: невидимость на 5 сек. (раз в 30 сек.). Пока вы не получаете урон: <style=cIsUtility>+10% скорости передвижения</style> <style=cStack>(+10% за каждый)</style>, <style=cIsHealing>+2 к базовой регенерации</style> <style=cStack>(+2 за каждый)</style>.",
			LoreRu = "После ночи рядом с ним твари проходят мимо, будто вы камень."
		},
		new ItemSpec
		{
			Id = ZId.WeirdPot,
			Key = "WEIRD_POT",
			IconFile = "weird_pot.png",
			ModelFile = "weird_pot.zam",
			Tier = (ItemTier)2,
			Rad = 0,
			Fx = new Eff[3]
			{
				new Eff(EK.KillHeal, 0, 0.04f, 0f, 0f, 0f),
				new Eff(EK.KillBarrier, 0, 0.04f, 0f, 0f, 0f),
				new Eff(EK.Hp, 0, 0.15f, 0f, 0f, 0f)
			},
			ColorHex = "#a8795a",
			Tags = new string[1] { "Healing" },
			NameEn = "Weird Pot",
			PickupEn = "Kills heal 4% max HP. Kills give a barrier of 4% max HP. +15% max HP.",
			DescEn = "Heal for <style=cIsHealing>4%</style> of your maximum health on kill <style=cStack>(+4% per stack)</style>. Gain a barrier worth <style=cIsHealing>4%</style> of your maximum health on kill <style=cStack>(+4% per stack)</style>. <style=cIsHealing>+15% maximum health</style> <style=cStack>(+15% per stack)</style>.",
			LoreEn = "You are never hungry. You are also never quite sure what you just ate.",
			NameRu = "Странный горшок",
			PickupRu = "Убийство лечит на 4% макс. здоровья. Убийство даёт барьер 4% макс. здоровья. +15% макс. здоровья.",
			DescRu = "За каждое убийство вы лечитесь на <style=cIsHealing>4%</style> максимального здоровья <style=cStack>(+4% за каждый)</style>. За каждое убийство вы получаете барьер в <style=cIsHealing>4%</style> максимального здоровья <style=cStack>(+4% за каждый)</style>. <style=cIsHealing>+15% максимального здоровья</style> <style=cStack>(+15% за каждый)</style>.",
			LoreRu = "Вы больше не чувствуете голода. И не уверены, что именно только что съели."
		},
		new ItemSpec
		{
			Id = ZId.WeirdBolt,
			Key = "WEIRD_BOLT",
			IconFile = "weird_bolt.png",
			ModelFile = "weird_bolt.zam",
			Tier = (ItemTier)4,
			Rad = 0,
			Fx = new Eff[4]
			{
				new Eff(EK.StageBarrier, 0, 0.5f, 0f, 0f, 0f),
				new Eff(EK.Res, 0, 0.5f, 0f, 0f, 3f),
				new Eff(EK.PulseBlast, 0, 8f, 2.5f, 13f, 0f),
				new Eff(EK.PulsePull, 0, 8f, 13f, -12f, 0f)
			},
			ColorHex = "#5ec8ff",
			Tags = new string[3] { "Healing", "Damage", "Utility" },
			NameEn = "Weird Bolt",
			PickupEn = "Stage start: barrier of 50% max HP. -50% fall and environmental damage taken. Every 8s: damages nearby enemies (250% dmg, 13 m). Every 8s: throws enemies within 13 m away.",
			DescEn = "Start every stage with a barrier worth <style=cIsHealing>50%</style> of your maximum health <style=cStack>(+50% per stack)</style>. Take <style=cIsHealing>50%</style> less environmental and fall damage <style=cStack>(increases hyperbolically)</style>. Every 8 seconds, damage all enemies within 13 m for <style=cIsDamage>250% damage</style> <style=cStack>(+250% per stack)</style>. Every 8 seconds, push enemies within 13 m away from you.",
			LoreEn = "It drinks the storm before the storm arrives.",
			NameRu = "Странный болт",
			PickupRu = "Начало уровня: барьер 50% макс. здоровья. -50% урона от падений и среды. Каждые 8 с: урон врагам рядом (250% урона, 13 м). Каждые 8 с: отбрасывает врагов в 13 м.",
			DescRu = "В начале каждого уровня вы получаете барьер в <style=cIsHealing>50%</style> максимального здоровья <style=cStack>(+50% за каждый)</style>. Вы получаете на <style=cIsHealing>50%</style> меньше урона от окружающей среды и падения <style=cStack>(растёт гиперболически)</style>. Каждые 8 сек. наносит всем врагам в радиусе 13 м <style=cIsDamage>250% урона</style> <style=cStack>(+250% за каждый)</style>. Каждые 8 сек. отбрасывает врагов в радиусе 13 м от вас.",
			LoreRu = "Он выпивает бурю раньше, чем она придёт."
		},
		new ItemSpec
		{
			Id = ZId.Thunderberry,
			Key = "THUNDERBERRY",
			IconFile = "thunderberry.png",
			ModelFile = "thunderberry.zam",
			Tier = (ItemTier)2,
			Rad = 4,
			Fx = new Eff[0],
			ColorHex = "#6f7bff",
			Tags = new string[2] { "Utility", "Damage" },
			NameEn = "Thunderberry",
			PickupEn = "+25% move speed. Sprinting: lightning every 2s at the nearest enemy (250% dmg). Radiation +4.",
			DescEn = "Increase <style=cIsUtility>movement speed</style> by <style=cIsUtility>25%</style> <style=cStack>(+25% per stack)</style>. While <style=cIsUtility>sprinting</style>, every 2 seconds a <style=cIsDamage>lightning bolt</style> strikes the nearest enemy within 28m for <style=cIsDamage>250% damage</style>, chaining 3 times.\n\n<style=cDeath>Radiation +4</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "The strongest wind in the Zone lives inside this berry. Run, and it runs with you.",
			NameRu = "Громоягода",
			PickupRu = "+25% скорости бега. В беге: каждые 2 с молния по ближайшему врагу (250% урона). Радиация +4.",
			DescRu = "Увеличивает <style=cIsUtility>скорость передвижения</style> на <style=cIsUtility>25%</style> <style=cStack>(+25% за каждый)</style>. Во время <style=cIsUtility>бега</style> каждые 2 с <style=cIsDamage>молния</style> бьёт ближайшего врага в радиусе 28 м на <style=cIsDamage>250% урона</style> и перескакивает ещё 3 раза.\n\n<style=cDeath>Радиация +4</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "В этой ягоде живёт самый сильный ветер Зоны. Бежишь ты, бежит и он."
		},
		new ItemSpec
		{
			Id = ZId.Compass,
			Key = "COMPASS",
			IconFile = "compass.png",
			ModelFile = "compass.zam",
			Tier = (ItemTier)2,
			Rad = 4,
			Fx = new Eff[0],
			ColorHex = "#d9d9d9",
			Tags = new string[1] { "Utility" },
			NameEn = "Compass",
			PickupEn = "+30 armor. Hits over 20% max HP deal 40% less. Radiation +4.",
			DescEn = "Gain <style=cIsHealing>30 armor</style> <style=cStack>(+30 per stack)</style>. Hits that deal more than <style=cIsHealth>20%</style> of your maximum health are reduced by <style=cIsHealing>40%</style> <style=cStack>(increases hyperbolically)</style>.\n\n<style=cDeath>Radiation +4</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "The needle never points north. It points at whatever is about to hit you hardest, and then bends it away.",
			NameRu = "Компас",
			PickupRu = "+30 брони. Удары сильнее 20% макс. здоровья слабее на 40%. Радиация +4.",
			DescRu = "Даёт <style=cIsHealing>30 брони</style> <style=cStack>(+30 за каждый)</style>. Удары, отнимающие больше <style=cIsHealth>20%</style> максимального здоровья, ослабляются на <style=cIsHealing>40%</style> <style=cStack>(растёт гиперболически)</style>.\n\n<style=cDeath>Радиация +4</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Стрелка никогда не указывает на север. Она указывает на то, что вот-вот ударит сильнее всего, и отводит удар."
		},
		new ItemSpec
		{
			Id = ZId.Hypercube,
			Key = "HYPERCUBE",
			IconFile = "hypercube.png",
			ModelFile = "hypercube.zam",
			Tier = (ItemTier)2,
			Rad = 4,
			Fx = new Eff[0],
			ColorHex = "#ff5a36",
			Tags = new string[2] { "Healing", "Utility" },
			NameEn = "Hypercube",
			PickupEn = "+15% max HP. Immune to burning and bleeding. Radiation +4.",
			DescEn = "Increase <style=cIsHealing>maximum health</style> by <style=cIsHealing>15%</style> <style=cStack>(+15% per stack)</style>. <style=cIsHealing>Immune</style> to <style=cIsDamage>burn</style> and <style=cIsDamage>bleed</style> damage.\n\n<style=cDeath>Radiation +4</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "Count its corners twice and you will get different numbers. Fire and blood find nothing to hold on to.",
			NameRu = "Гиперкуб",
			PickupRu = "+15% макс. здоровья. Иммунитет к горению и кровотечению. Радиация +4.",
			DescRu = "Увеличивает <style=cIsHealing>максимальное здоровье</style> на <style=cIsHealing>15%</style> <style=cStack>(+15% за каждый)</style>. <style=cIsHealing>Иммунитет</style> к урону от <style=cIsDamage>горения</style> и <style=cIsDamage>кровотечения</style>.\n\n<style=cDeath>Радиация +4</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Сосчитай его углы дважды, и числа не совпадут. Огню и крови не за что зацепиться."
		},
		new ItemSpec
		{
			Id = ZId.LiquidRock,
			Key = "LIQUID_ROCK",
			IconFile = "liquid_rock.png",
			ModelFile = "liquid_rock.zam",
			Tier = (ItemTier)2,
			Rad = -4,
			Fx = new Eff[0],
			ColorHex = "#3dffb0",
			Tags = new string[2] { "Healing", "Utility" },
			NameEn = "Liquid Rock",
			PickupEn = "Immune to poison. Spare radiation resistance gives +0.4 HP/s regen per point (max 6 points). Radiation resistance 4.",
			DescEn = "<style=cIsHealing>Immune</style> to <style=cIsDamage>poison</style> and <style=cIsDamage>blight</style> damage. Resistance exceeding your total radiation is converted into <style=cIsHealing>+0.4 base health regeneration</style> per point (max 6 points).\n\n<style=cIsHealing>Radiation resistance 4</style> <style=cStack>(cancels radiation from other artifacts)</style>",
			LoreEn = "Stone that forgot to be solid. Everything harmful slides off it, including, at times, you.",
			NameRu = "Жидкий камень",
			PickupRu = "Иммунитет к яду. Избыток защиты от радиации даёт +0.4 ХП/с регенерации за очко (макс. 6 очков). Защита от радиации 4.",
			DescRu = "<style=cIsHealing>Иммунитет</style> к урону от <style=cIsDamage>яда</style> и <style=cIsDamage>порчи</style>. Сопротивление сверх вашей общей радиации превращается в <style=cIsHealing>+0.4 к базовой регенерации</style> за каждое очко (максимум 6 очков).\n\n<style=cIsHealing>Сопротивление радиации 4</style> <style=cStack>(гасит радиацию других артефактов)</style>",
			LoreRu = "Камень, забывший быть твёрдым. Всё вредное скользит по нему, иногда и вы."
		},
		new ItemSpec
		{
			Id = ZId.Bubblegum,
			Key = "BUBBLEGUM",
			IconFile = "bubblegum.png",
			ModelFile = "bubblegum.zam",
			Tier = (ItemTier)2,
			Rad = 0,
			Fx = new Eff[0],
			ColorHex = "#ff8fc7",
			Tags = new string[1] { "Utility" },
			NameEn = "Bubblegum",
			PickupEn = "+45 armor, -45% bleed damage taken, -12% move speed. Attackers are stuck and slowed for 2s.",
			DescEn = "Gain <style=cIsHealing>45 armor</style> <style=cStack>(+45 per stack)</style>. Take <style=cIsHealing>45%</style> less <style=cIsDamage>bleed damage</style> <style=cStack>(increases hyperbolically)</style>. Reduce <style=cIsUtility>movement speed</style> by <style=cDeath>12%</style> <style=cStack>(+12% per stack)</style>. Enemies that hit you are <style=cIsUtility>stuck and slowed</style> for 2 seconds.",
			LoreEn = "Chewed by something far larger than you. It remembers, and it wants everyone else to remember too.",
			NameRu = "Жвачка",
			PickupRu = "+45 брони, -45% урона от кровотечения, -12% скорости бега. Напавшие прилипают и замедляются на 2 с.",
			DescRu = "Даёт <style=cIsHealing>45 брони</style> <style=cStack>(+45 за каждый)</style>. Вы получаете на <style=cIsHealing>45%</style> меньше <style=cIsDamage>урона от кровотечения</style> <style=cStack>(растёт гиперболически)</style>. Снижает <style=cIsUtility>скорость передвижения</style> на <style=cDeath>12%</style> <style=cStack>(+12% за каждый)</style>. Враги, ударившие вас, <style=cIsUtility>прилипают и замедляются</style> на 2 с.",
			LoreRu = "Её жевало существо куда больше вас. Оно помнит и хочет, чтобы помнили и остальные."
		},
		new ItemSpec
		{
			Id = ZId.Firebird,
			Key = "FIREBIRD",
			IconFile = "firebird.png",
			ModelFile = "firebird.zam",
			Tier = (ItemTier)2,
			Rad = 0,
			Fx = new Eff[0],
			ColorHex = "#ff6a1a",
			Tags = new string[2] { "Healing", "Damage" },
			NameEn = "Firebird",
			PickupEn = "+25% healing received, +1.4 HP/s regen. On hit: 15% chance to ignite for 4s. Killing a burning enemy heals 4% max HP.",
			DescEn = "Receive <style=cIsHealing>25%</style> more <style=cIsHealing>healing</style> <style=cStack>(+25% per stack)</style>. Gain <style=cIsHealing>+1.4 base health regeneration</style> <style=cStack>(+1.4 per stack)</style>. <style=cIsDamage>15%</style> <style=cStack>(+15% per stack)</style> chance on hit to <style=cIsDamage>ignite</style> for 4 seconds. Killing a burning enemy <style=cIsHealing>heals</style> you for <style=cIsHealing>4%</style> of maximum health.",
			LoreEn = "Its feathers are not on fire. Fire is simply the shape this bird takes when it is happy.",
			NameRu = "Жар-птица",
			PickupRu = "+25% получаемого лечения, +1.4 ХП/с регенерации. При попадании: 15% шанс поджечь на 4 с. Убийство горящего врага лечит на 4% макс. здоровья.",
			DescRu = "Вы получаете на <style=cIsHealing>25%</style> больше <style=cIsHealing>лечения</style> <style=cStack>(+25% за каждый)</style>. Даёт <style=cIsHealing>+1.4 к базовой регенерации</style> <style=cStack>(+1.4 за каждый)</style>. Шанс <style=cIsDamage>15%</style> <style=cStack>(+15% за каждый)</style> при попадании <style=cIsDamage>поджечь</style> цель на 4 с. Убийство горящего врага <style=cIsHealing>лечит</style> вас на <style=cIsHealing>4%</style> максимального здоровья.",
			LoreRu = "Перья не горят. Огонь для неё просто форма, которую она принимает от радости."
		},
		new ItemSpec
		{
			Id = ZId.BlackHole,
			Key = "BLACK_HOLE",
			IconFile = "black_hole.png",
			ModelFile = "black_hole.zam",
			Tier = (ItemTier)2,
			Rad = 0,
			Fx = new Eff[0],
			ColorHex = "#8a4dff",
			Tags = new string[1] { "Utility" },
			NameEn = "Black Hole",
			PickupEn = "+25 armor, +10% attack speed. Every 10s: pulls in enemies within 22 m and slows them.",
			DescEn = "Gain <style=cIsHealing>25 armor</style> <style=cStack>(+25 per stack)</style> and <style=cIsDamage>10% attack speed</style> <style=cStack>(+10% per stack)</style>. Every 10 seconds <style=cStack>(-1 second per stack, minimum 4)</style> a <style=cIsUtility>gravity pulse</style> drags enemies within 22m toward you and slows them for 1.5 seconds.",
			LoreEn = "Small enough to hold in one hand. Heavy enough that the ground leans toward it.",
			NameRu = "Чёрная дыра",
			PickupRu = "+25 брони, +10% скорости атаки. Каждые 10 с: притягивает врагов в 22 м и замедляет их.",
			DescRu = "Даёт <style=cIsHealing>25 брони</style> <style=cStack>(+25 за каждый)</style> и <style=cIsDamage>10% скорости атаки</style> <style=cStack>(+10% за каждый)</style>. Каждые 10 с <style=cStack>(-1 с за каждый, минимум 4)</style> <style=cIsUtility>гравитационный импульс</style> стягивает врагов в радиусе 22 м к вам и замедляет их на 1.5 с.",
			LoreRu = "Помещается в ладони. Тяжёлая настолько, что земля клонится к ней."
		},
		new ItemSpec
		{
			Id = ZId.WeirdWater,
			Key = "WEIRD_WATER",
			IconFile = "weird_water.png",
			ModelFile = "weird_water.zam",
			Tier = (ItemTier)3,
			Rad = -3,
			Fx = new Eff[5]
			{
				new Eff(EK.Hp, 0, 0.35f, 0f, 0f, 0f),
				new Eff(EK.Regen, 0, 1.5f, 0f, 0f, 0f),
				new Eff(EK.Res, 0, 0.5f, 0f, 0f, 2f),
				new Eff(EK.Atk, 0, -0.15f, 0f, 0f, 0f),
				new Eff(EK.Move, 0, -0.1f, 0f, 0f, 0f)
			},
			ColorHex = "#3aa7ff",
			Tags = new string[3] { "Healing", "Damage", "Utility" },
			NameEn = "Weird Water",
			PickupEn = "+35% max HP, +1.5 HP/s regen. -50% poison damage taken. -15% attack speed, -10% move speed. Radiation resistance 3.",
			DescEn = "<style=cIsHealing>+35% maximum health</style> <style=cStack>(+35% per stack)</style>, <style=cIsHealing>+1.5 base health regeneration</style> <style=cStack>(+1.5 per stack)</style>. Take <style=cIsHealing>50%</style> less poison and acid damage <style=cStack>(increases hyperbolically)</style>. <style=cDeath>-15% attack speed</style> <style=cStack>(-15% per stack)</style>, <style=cDeath>-10% movement speed</style> <style=cStack>(-10% per stack)</style>.\n\n<style=cIsHealing>Radiation resistance 3</style> <style=cStack>(cancels radiation from other artifacts)</style>",
			LoreEn = "You cannot drink it. It simply decides, once in a while, that you have had enough.",
			NameRu = "Странная вода",
			PickupRu = "+35% макс. здоровья, +1.5 ХП/с регенерации. -50% урона от яда. -15% скорости атаки, -10% скорости бега. Защита от радиации 3.",
			DescRu = "<style=cIsHealing>+35% максимального здоровья</style> <style=cStack>(+35% за каждый)</style>, <style=cIsHealing>+1.5 к базовой регенерации</style> <style=cStack>(+1.5 за каждый)</style>. Вы получаете на <style=cIsHealing>50%</style> меньше урона от яда и кислоты <style=cStack>(растёт гиперболически)</style>. <style=cDeath>-15% скорости атаки</style> <style=cStack>(-15% за каждый)</style>, <style=cDeath>-10% скорости передвижения</style> <style=cStack>(-10% за каждый)</style>.\n\n<style=cIsHealing>Сопротивление радиации 3</style> <style=cStack>(гасит радиацию других артефактов)</style>",
			LoreRu = "Её нельзя выпить. Она просто время от времени решает, что с вас хватит."
		},
		new ItemSpec
		{
			Id = ZId.WeirdNut,
			Key = "WEIRD_NUT",
			IconFile = "weird_nut.png",
			ModelFile = "weird_nut.zam",
			Tier = (ItemTier)3,
			Rad = 0,
			Fx = new Eff[4]
			{
				new Eff(EK.Armor, 0, 35f, 0f, 0f, 0f),
				new Eff(EK.Res, 0, 1f, 0f, 0f, 1f),
				new Eff(EK.HealAmp, 0, -0.5f, 0f, 0f, 0f),
				new Eff(EK.Dmg, 2, 0.15f, 0f, 0f, 0f)
			},
			ColorHex = "#b0b86a",
			Tags = new string[2] { "Healing", "Damage" },
			NameEn = "Weird Nut",
			PickupEn = "+35 armor. Immune to bleeding. -50% healing received. Below 50% HP: +15% damage.",
			DescEn = "<style=cIsHealing>+35 armor</style> <style=cStack>(+35 per stack)</style>. Immune to bleeding. Healing received is reduced by <style=cDeath>50%</style> <style=cStack>(increases hyperbolically)</style>. While below 50% health: <style=cIsDamage>+15% damage</style> <style=cStack>(+15% per stack)</style>.",
			LoreEn = "It seals every wound shut. The trouble is that it seals shut the medicine too.",
			NameRu = "Странная гайка",
			PickupRu = "+35 брони. Иммунитет к кровотечению. -50% получаемого лечения. Здоровье ниже 50%: +15% урона.",
			DescRu = "<style=cIsHealing>+35 брони</style> <style=cStack>(+35 за каждый)</style>. Иммунитет к кровотечению. Получаемое лечение ослаблено на <style=cDeath>50%</style> <style=cStack>(растёт гиперболически)</style>. Пока здоровья меньше 50%: <style=cIsDamage>+15% урона</style> <style=cStack>(+15% за каждый)</style>.",
			LoreRu = "Она запечатывает любую рану. Беда в том, что заодно запечатывает и лекарство."
		},
		new ItemSpec
		{
			Id = ZId.EyeOfStorm,
			Key = "EYE_OF_STORM",
			IconFile = "eye_of_storm.png",
			ModelFile = "eye_of_storm.zam",
			Tier = (ItemTier)3,
			Rad = 0,
			Fx = new Eff[0],
			ColorHex = "#9be7ff",
			Tags = new string[1] { "Utility" },
			NameEn = "Eye of the Storm",
			PickupEn = "+20% move speed, +10% jump height. Immune to burning and poison. -15% max HP.",
			DescEn = "Increase <style=cIsUtility>movement speed</style> by <style=cIsUtility>20%</style> <style=cStack>(+20% per stack)</style> and <style=cIsUtility>jump height</style> by <style=cIsUtility>10%</style> <style=cStack>(+10% per stack)</style>. <style=cIsHealing>Immune</style> to <style=cIsDamage>burn</style>, <style=cIsDamage>poison</style> and <style=cIsDamage>blight</style> damage. <style=cDeath>Reduce maximum health by 15%</style> <style=cStack>(increases hyperbolically)</style>.",
			LoreEn = "Everything around it howls. Inside, it is perfectly still, and so thin that you can see through yourself.",
			NameRu = "Глаз бури",
			PickupRu = "+20% скорости бега, +10% высоты прыжка. Иммунитет к горению и яду. -15% макс. здоровья.",
			DescRu = "Увеличивает <style=cIsUtility>скорость передвижения</style> на <style=cIsUtility>20%</style> <style=cStack>(+20% за каждый)</style> и <style=cIsUtility>высоту прыжка</style> на <style=cIsUtility>10%</style> <style=cStack>(+10% за каждый)</style>. <style=cIsHealing>Иммунитет</style> к урону от <style=cIsDamage>горения</style>, <style=cIsDamage>яда</style> и <style=cIsDamage>порчи</style>. <style=cDeath>Снижает максимальное здоровье на 15%</style> <style=cStack>(растёт гиперболически)</style>.",
			LoreRu = "Вокруг всё воет. Внутри абсолютная тишина, и ты так тонок, что видишь сквозь себя."
		},
		new ItemSpec
		{
			Id = ZId.HeartOfChornobyl,
			Key = "HEART_OF_CHORNOBYL",
			IconFile = "heart_of_chornobyl.png",
			ModelFile = "heart_of_chornobyl.zam",
			Tier = (ItemTier)3,
			Rad = 0,
			Fx = new Eff[0],
			ColorHex = "#8cff3a",
			Tags = new string[1] { "Damage" },
			NameEn = "Heart of Chornobyl",
			PickupEn = "Net radiation x2 (+1 per stack). +3% damage per radiation point (max +150%).",
			DescEn = "<style=cDeath>Amplifies your radiation</style>: net radiation is multiplied by <style=cDeath>2</style> <style=cStack>(+1 per stack)</style>. Gain <style=cIsDamage>3% damage</style> per point of net radiation (max 150%).",
			LoreEn = "It does not give power. It simply stops hiding what the Zone has already done to you.",
			NameRu = "Сердце Чернобыля",
			PickupRu = "Итоговая радиация x2 (+1 за каждый). +3% урона за очко радиации (макс. +150%).",
			DescRu = "<style=cDeath>Усиливает вашу радиацию</style>: итоговая радиация умножается на <style=cDeath>2</style> <style=cStack>(+1 за каждый)</style>. Даёт <style=cIsDamage>3% урона</style> за каждое очко итоговой радиации (максимум 150%).",
			LoreRu = "Оно не даёт силу. Оно лишь перестаёт скрывать то, что Зона уже с вами сделала."
		},
		new ItemSpec
		{
			Id = ZId.Mica,
			Key = "MICA",
			IconFile = "mica.png",
			ModelFile = "mica.zam",
			Tier = (ItemTier)0,
			Rad = -1,
			Fx = new Eff[2]
			{
				new Eff(EK.Regen, 1, 0.6f, 0f, 0f, 0f),
				new Eff(EK.Res, 0, 0.25f, 0f, 0f, 2f)
			},
			ColorHex = "#c6f29d",
			Tags = new string[1] { "Healing" },
			NameEn = "Mica",
			PickupEn = "Unhurt for 5s: +0.6 HP/s regen. -25% poison damage taken. Radiation resistance 1.",
			DescEn = "While you take no damage: <style=cIsHealing>+0.6 base health regeneration</style> <style=cStack>(+0.6 per stack)</style>. Take <style=cIsHealing>25%</style> less poison and acid damage <style=cStack>(increases hyperbolically)</style>.\n\n<style=cIsHealing>Radiation resistance 1</style> <style=cStack>(cancels radiation from other artifacts)</style>",
			LoreEn = "Pale flakes that swallow the glow of the Zone. Stalkers sew them into their collars.",
			NameRu = "Слюда",
			PickupRu = "Без урона 5 с: +0.6 ХП/с регенерации. -25% урона от яда. Защита от радиации 1.",
			DescRu = "Пока вы не получаете урон: <style=cIsHealing>+0.6 к базовой регенерации</style> <style=cStack>(+0.6 за каждый)</style>. Вы получаете на <style=cIsHealing>25%</style> меньше урона от яда и кислоты <style=cStack>(растёт гиперболически)</style>.\n\n<style=cIsHealing>Сопротивление радиации 1</style> <style=cStack>(гасит радиацию других артефактов)</style>",
			LoreRu = "Бледные чешуйки, впитывающие свечение Зоны. Сталкеры вшивают их в воротники."
		},
		new ItemSpec
		{
			Id = ZId.Slug,
			Key = "SLUG",
			IconFile = "slug.png",
			ModelFile = "slug.zam",
			Tier = (ItemTier)0,
			Rad = -1,
			Fx = new Eff[1]
			{
				new Eff(EK.RetDebuff, 0, 0.25f, 2f, 0f, 0f)
			},
			ColorHex = "#f2af6f",
			Tags = new string[1] { "Utility" },
			NameEn = "Slug",
			PickupEn = "When hit: 25% chance to slow the attacker for 2s. Radiation resistance 1.",
			DescEn = "When hit: <style=cIsUtility>25%</style> chance to slow the attacker for 2 seconds <style=cStack>(+25% chance per stack)</style>.\n\n<style=cIsHealing>Radiation resistance 1</style> <style=cStack>(cancels radiation from other artifacts)</style>",
			LoreEn = "Slow, wet and oddly loyal. Whatever touches it gets stuck in the slime.",
			NameRu = "Слизняк",
			PickupRu = "Когда бьют вас: 25% шанс замедлить напавшего на 2 с. Защита от радиации 1.",
			DescRu = "При получении удара: шанс <style=cIsUtility>25%</style> замедлить напавшего на 2 сек <style=cStack>(+25% шанса за каждый)</style>.\n\n<style=cIsHealing>Сопротивление радиации 1</style> <style=cStack>(гасит радиацию других артефактов)</style>",
			LoreRu = "Медленный, мокрый и странно преданный. Всё, что его коснётся, увязает в слизи."
		},
		new ItemSpec
		{
			Id = ZId.Thorn,
			Key = "THORN",
			IconFile = "thorn.png",
			ModelFile = "thorn.zam",
			Tier = (ItemTier)0,
			Rad = -1,
			Fx = new Eff[1]
			{
				new Eff(EK.RetDebuff, 0, 0.3f, 3f, 4f, 0f)
			},
			ColorHex = "#f2ab63",
			Tags = new string[1] { "Utility" },
			NameEn = "Thorn",
			PickupEn = "When hit: 30% chance to make the attacker bleed for 3s. Radiation resistance 1.",
			DescEn = "When hit: <style=cIsUtility>30%</style> chance to make the attacker bleed for 3 seconds <style=cStack>(+30% chance per stack)</style>.\n\n<style=cIsHealing>Radiation resistance 1</style> <style=cStack>(cancels radiation from other artifacts)</style>",
			LoreEn = "A thorn that grew in an acid pool and kept its sting after it was picked.",
			NameRu = "Колючка",
			PickupRu = "Когда бьют вас: 30% шанс вызвать у напавшего кровотечение на 3 с. Защита от радиации 1.",
			DescRu = "При получении удара: шанс <style=cIsUtility>30%</style> вызвать у напавшего кровотечение на 3 сек <style=cStack>(+30% шанса за каждый)</style>.\n\n<style=cIsHealing>Сопротивление радиации 1</style> <style=cStack>(гасит радиацию других артефактов)</style>",
			LoreRu = "Колючка, выросшая в кислотной луже и не утратившая жала."
		},
		new ItemSpec
		{
			Id = ZId.Crust,
			Key = "CRUST",
			IconFile = "crust.png",
			ModelFile = "crust.zam",
			Tier = (ItemTier)0,
			Rad = 0,
			Fx = new Eff[2]
			{
				new Eff(EK.Armor, 0, 6f, 0f, 0f, 0f),
				new Eff(EK.DrBig, 0, 0.12f, 0.25f, 0f, 0f)
			},
			ColorHex = "#eff24d",
			Tags = new string[1] { "Healing" },
			NameEn = "Crust",
			PickupEn = "+6 armor. Hits over 25% max HP deal 12% less.",
			DescEn = "<style=cIsHealing>+6 armor</style> <style=cStack>(+6 per stack)</style>. Hits that deal more than <style=cIsHealing>25%</style> of your maximum health are reduced by <style=cIsHealing>12%</style> <style=cStack>(increases hyperbolically)</style>.",
			LoreEn = "A hard shell around nothing at all. It does not break, it only dents.",
			NameRu = "Скорлупа",
			PickupRu = "+6 брони. Удары сильнее 25% макс. здоровья слабее на 12%.",
			DescRu = "<style=cIsHealing>+6 брони</style> <style=cStack>(+6 за каждый)</style>. Удары, наносящие больше <style=cIsHealing>25%</style> вашего максимального здоровья, ослабляются на <style=cIsHealing>12%</style> <style=cStack>(растёт гиперболически)</style>.",
			LoreRu = "Твёрдая скорлупа вокруг пустоты. Она не ломается, лишь прогибается."
		},
		new ItemSpec
		{
			Id = ZId.Slime,
			Key = "SLIME",
			IconFile = "slime.png",
			ModelFile = "slime.zam",
			Tier = (ItemTier)0,
			Rad = 0,
			Fx = new Eff[3]
			{
				new Eff(EK.HealAmp, 0, 0.12f, 0f, 0f, 0f),
				new Eff(EK.Res, 0, 0.25f, 0f, 0f, 3f),
				new Eff(EK.RadPurge, 0, 10f, 2f, 0f, 0f)
			},
			ColorHex = "#6ab5f2",
			Tags = new string[2] { "Healing", "Utility" },
			NameEn = "Slime",
			PickupEn = "+12% healing received. -25% fall and environmental damage taken. Every 10s: washes out 2 radiation.",
			DescEn = "Healing received is increased by <style=cIsHealing>12%</style> <style=cStack>(+12% per stack)</style>. Take <style=cIsHealing>25%</style> less environmental and fall damage <style=cStack>(increases hyperbolically)</style>. Every 10 seconds, wash <style=cIsHealing>2</style> points of radiation dose out of your body <style=cStack>(+2 per stack)</style>.",
			LoreEn = "Warm, pulsing slime that clings to wounds and pulls out whatever the Zone left in you.",
			NameRu = "Слизь",
			PickupRu = "+12% получаемого лечения. -25% урона от падений и среды. Каждые 10 с: вымывает 2 радиации.",
			DescRu = "Получаемое лечение усилено на <style=cIsHealing>12%</style> <style=cStack>(+12% за каждый)</style>. Вы получаете на <style=cIsHealing>25%</style> меньше урона от окружающей среды и падения <style=cStack>(растёт гиперболически)</style>. Каждые 10 сек. вымывает из тела <style=cIsHealing>2</style> очков дозы облучения <style=cStack>(+2 за каждый)</style>.",
			LoreRu = "Тёплая пульсирующая слизь. Она липнет к ранам и вытягивает всё, что оставила в вас Зона."
		},
		new ItemSpec
		{
			Id = ZId.Pellicle,
			Key = "PELLICLE",
			IconFile = "pellicle.png",
			ModelFile = "pellicle.zam",
			Tier = (ItemTier)2,
			Rad = -2,
			Fx = new Eff[2]
			{
				new Eff(EK.StageBarrier, 0, 0.25f, 0f, 0f, 0f),
				new Eff(EK.HurtBarrier, 0, 0.08f, 5f, 0f, 0f)
			},
			ColorHex = "#aaf27a",
			Tags = new string[1] { "Healing" },
			NameEn = "Pellicle",
			PickupEn = "Stage start: barrier of 25% max HP. When hit: barrier of 8% max HP (once per 5s). Radiation resistance 2.",
			DescEn = "Start every stage with a barrier worth <style=cIsHealing>25%</style> of your maximum health <style=cStack>(+25% per stack)</style>. When hit, gain a barrier worth <style=cIsHealing>8%</style> of your maximum health (at most once every 5 seconds) <style=cStack>(+8% per stack)</style>.\n\n<style=cIsHealing>Radiation resistance 2</style> <style=cStack>(cancels radiation from other artifacts)</style>",
			LoreEn = "A film thinner than a breath. Stalkers swear it has never once torn.",
			NameRu = "Плёнка",
			PickupRu = "Начало уровня: барьер 25% макс. здоровья. Когда бьют вас: барьер 8% макс. здоровья (раз в 5 с). Защита от радиации 2.",
			DescRu = "В начале каждого уровня вы получаете барьер в <style=cIsHealing>25%</style> максимального здоровья <style=cStack>(+25% за каждый)</style>. При получении удара вы получаете барьер в <style=cIsHealing>8%</style> максимального здоровья (не чаще раза в 5 сек.) <style=cStack>(+8% за каждый)</style>.\n\n<style=cIsHealing>Сопротивление радиации 2</style> <style=cStack>(гасит радиацию других артефактов)</style>",
			LoreRu = "Плёнка тоньше дыхания. Сталкеры клянутся, что она ни разу не порвалась."
		},
		new ItemSpec
		{
			Id = ZId.TouristsBreakfast,
			Key = "TOURISTS_BREAKFAST",
			IconFile = "tourists_breakfast.png",
			ModelFile = "tourists_breakfast.zam",
			Tier = (ItemTier)1,
			Rad = 0,
			Fx = new Eff[2]
			{
				new Eff(EK.KillHeal, 0, 0.025f, 0f, 0f, 0f),
				new Eff(EK.Hp, 0, 0.08f, 0f, 0f, 0f)
			},
			ColorHex = "#edf260",
			Tags = new string[1] { "Healing" },
			NameEn = "Tourist's Breakfast",
			PickupEn = "Kills heal 2.5% max HP. +8% max HP.",
			DescEn = "Heal for <style=cIsHealing>2.5%</style> of your maximum health on kill <style=cStack>(+2.5% per stack)</style>. <style=cIsHealing>+8% maximum health</style> <style=cStack>(+8% per stack)</style>.",
			LoreEn = "The label is gone, the tin is warm. Nobody has opened it, and nobody has gone hungry with it.",
			NameRu = "Завтрак туриста",
			PickupRu = "Убийство лечит на 2.5% макс. здоровья. +8% макс. здоровья.",
			DescRu = "За каждое убийство вы лечитесь на <style=cIsHealing>2.5%</style> максимального здоровья <style=cStack>(+2.5% за каждый)</style>. <style=cIsHealing>+8% максимального здоровья</style> <style=cStack>(+8% за каждый)</style>.",
			LoreRu = "Этикетки нет, банка тёплая. Её никто не вскрывал, и никто с ней не голодал."
		},
		new ItemSpec
		{
			Id = ZId.Kolobok,
			Key = "KOLOBOK",
			IconFile = "kolobok.png",
			ModelFile = "kolobok.zam",
			Tier = (ItemTier)1,
			Rad = 0,
			Fx = new Eff[2]
			{
				new Eff(EK.Dodge, 0, 0.12f, 4f, 0f, 0f),
				new Eff(EK.Move, 0, 0.1f, 0f, 0f, 0f)
			},
			ColorHex = "#87f24c",
			Tags = new string[1] { "Utility" },
			NameEn = "Kolobok",
			PickupEn = "12% chance to dodge a hit (once per 4s). +10% move speed.",
			DescEn = "<style=cIsUtility>12%</style> chance to avoid a hit completely, at most once every 4 seconds <style=cStack>(increases hyperbolically)</style>. <style=cIsUtility>+10% movement speed</style> <style=cStack>(+10% per stack)</style>.",
			LoreEn = "A round little bun that rolled away from every grandfather and every anomaly.",
			NameRu = "Колобок",
			PickupRu = "12% шанс уклониться от удара (раз в 4 с). +10% скорости бега.",
			DescRu = "Шанс <style=cIsUtility>12%</style> полностью избежать удара, не чаще раза в 4 сек <style=cStack>(растёт гиперболически)</style> <style=cIsUtility>+10% скорости передвижения</style> <style=cStack>(+10% за каждый)</style>.",
			LoreRu = "Круглый румяный шарик, который укатился от дедушки, от бабушки и от всех аномалий."
		},
		new ItemSpec
		{
			Id = ZId.Horn,
			Key = "HORN",
			IconFile = "horn.png",
			ModelFile = "horn.zam",
			Tier = (ItemTier)0,
			Rad = 1,
			Fx = new Eff[2]
			{
				new Eff(EK.Atk, 7, 0.1f, 0f, 0f, 0f),
				new Eff(EK.Move, 7, 0.06f, 0f, 0f, 0f)
			},
			ColorHex = "#f29527",
			Tags = new string[2] { "Damage", "Utility" },
			NameEn = "Horn",
			PickupEn = "For 3s after a hit: +10% attack speed, +6% move speed. Radiation +1.",
			DescEn = "For 3 seconds after taking damage: <style=cIsDamage>+10% attack speed</style> <style=cStack>(+10% per stack)</style>, <style=cIsUtility>+6% movement speed</style> <style=cStack>(+6% per stack)</style>.\n\n<style=cDeath>Radiation +1</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "It sounds like a horn when the wind finds it. Wounded animals run toward the sound.",
			NameRu = "Рог",
			PickupRu = "3 с после удара: +10% скорости атаки, +6% скорости бега. Радиация +1.",
			DescRu = "В течение 3 секунд после получения урона: <style=cIsDamage>+10% скорости атаки</style> <style=cStack>(+10% за каждый)</style>, <style=cIsUtility>+6% скорости передвижения</style> <style=cStack>(+6% за каждый)</style>.\n\n<style=cDeath>Радиация +1</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Он гудит, как рог, когда его находит ветер. Раненые звери бегут на этот звук."
		},
		new ItemSpec
		{
			Id = ZId.Skipjack,
			Key = "SKIPJACK",
			IconFile = "skipjack.png",
			ModelFile = "skipjack.zam",
			Tier = (ItemTier)2,
			Rad = 1,
			Fx = new Eff[4]
			{
				new Eff(EK.Jump, 0, 0.3f, 0f, 0f, 0f),
				new Eff(EK.Jumps, 0, 1f, 0f, 0f, 0f),
				new Eff(EK.Res, 0, 1f, 0f, 0f, 3f),
				new Eff(EK.LandBlast, 0, 4f, 12f, 2f, 0f)
			},
			ColorHex = "#9bf27a",
			Tags = new string[3] { "Healing", "Damage", "Utility" },
			NameEn = "Skipjack",
			PickupEn = "+30% jump height, +1 extra jump. Immune to fall and environmental damage. Landing: shockwave (400% dmg, 12 m). Radiation +1.",
			DescEn = "<style=cIsUtility>+30% jump height</style> <style=cStack>(+30% per stack)</style>, <style=cIsUtility>+1 extra jump</style> <style=cStack>(+1 per stack)</style>. Immune to environmental and fall damage. Landing after a jump or fall releases a shockwave for <style=cIsDamage>400% damage</style> in 12 m (once every 2 seconds) <style=cStack>(+400% per stack)</style>.\n\n<style=cDeath>Radiation +1</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "It never stops bouncing, even in a lead box. Do not ask what it bounces off.",
			NameRu = "Попрыгунчик",
			PickupRu = "+30% высоты прыжка, +1 доп. прыжок. Иммунитет к урону от падений и среды. Приземление: ударная волна (400% урона, 12 м). Радиация +1.",
			DescRu = "<style=cIsUtility>+30% высоты прыжка</style> <style=cStack>(+30% за каждый)</style>, <style=cIsUtility>+1 дополнительный прыжок</style> <style=cStack>(+1 за каждый)</style>. Иммунитет к урону от окружающей среды и падения. Приземление после прыжка или падения вызывает ударную волну на <style=cIsDamage>400% урона</style> в радиусе 12 м (раз в 2 сек.) <style=cStack>(+400% за каждый)</style>.\n\n<style=cDeath>Радиация +1</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Он не перестаёт прыгать даже в свинцовом ящике. Не спрашивайте, от чего."
		},
		new ItemSpec
		{
			Id = ZId.MeatChunk,
			Key = "MEAT_CHUNK",
			IconFile = "meat_chunk.png",
			ModelFile = "meat_chunk.zam",
			Tier = (ItemTier)0,
			Rad = 1,
			Fx = new Eff[2]
			{
				new Eff(EK.Lifesteal, 0, 0.02f, 0f, 0f, 0f),
				new Eff(EK.Hp, 0, 0.05f, 0f, 0f, 0f)
			},
			ColorHex = "#f2902a",
			Tags = new string[1] { "Healing" },
			NameEn = "Meat Chunk",
			PickupEn = "Heal 2% of damage dealt. +5% max HP. Radiation +1.",
			DescEn = "Heal for <style=cIsHealing>2%</style> of the damage you deal <style=cStack>(+2% per stack)</style>. <style=cIsHealing>+5% maximum health</style> <style=cStack>(+5% per stack)</style>.\n\n<style=cDeath>Radiation +1</style> <style=cStack>(net radiation slowly irradiates you: each point takes up to 2.5% of your maximum health, at most 60%)</style>",
			LoreEn = "Raw, warm and always fresh. The Zone is not picky about what it keeps alive.",
			NameRu = "Ломоть мяса",
			PickupRu = "Лечит на 2% от нанесённого урона. +5% макс. здоровья. Радиация +1.",
			DescRu = "Вы лечитесь на <style=cIsHealing>2%</style> от нанесённого урона <style=cStack>(+2% за каждый)</style>. <style=cIsHealing>+5% максимального здоровья</style> <style=cStack>(+5% за каждый)</style>.\n\n<style=cDeath>Радиация +1</style> <style=cStack>(итоговая радиация постепенно облучает вас: каждое очко отнимает до 2.5% максимального здоровья, не более 60%)</style>",
			LoreRu = "Сырой, тёплый и всегда свежий. Зона не привередлива в том, что держит живым."
		},
		new ItemSpec
		{
			Id = ZId.CrystalThorn,
			Key = "CRYSTAL_THORN",
			IconFile = "crystal_thorn.png",
			ModelFile = "crystal_thorn.zam",
			Tier = (ItemTier)0,
			Rad = 0,
			Fx = new Eff[2]
			{
				new Eff(EK.HitDebuff, 0, 0.12f, 3f, 4f, 0f),
				new Eff(EK.Crit, 0, 0.05f, 0f, 0f, 0f)
			},
			ColorHex = "#9df2c8",
			Tags = new string[2] { "Damage", "Utility" },
			NameEn = "Crystal Thorn",
			PickupEn = "On hit: 12% chance to make the enemy bleed for 3s. +5% crit chance.",
			DescEn = "<style=cIsUtility>12%</style> chance on hit to cause bleeding for 3 seconds <style=cStack>(+12% chance per stack)</style>. <style=cIsDamage>+5% critical strike chance</style> <style=cStack>(+5% per stack)</style>.",
			LoreEn = "A crystal sliver that cuts the air before it cuts you.",
			NameRu = "Кристальная колючка",
			Pickup