Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Huntress Reborn v1.1.0
plugins/HuntressUnbound.dll
Decompiled 4 days ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using BepInEx; using BepInEx.Configuration; using EntityStates; using R2API; using R2API.Networking; using R2API.Networking.Interfaces; using R2API.Utils; using RoR2; using RoR2.Achievements; using RoR2.ContentManagement; using RoR2.Projectile; using RoR2.Skills; using RoR2.UI; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Networking; using UnityEngine.Rendering; using UnityEngine.UI; [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: AssemblyVersion("0.0.0.0")] namespace HuntressUnbound; [BepInPlugin("com.tox.huntressunbound", "Huntress Reborn", "1.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] public sealed class Plugin : BaseUnityPlugin { internal static GameObject Arrow; internal static GameObject Volley; internal static GameObject SlimArrowGhost; internal static BuffDef LastChoiceBuff; internal static Sprite PrimaryIcon; internal static Sprite SecondaryIcon; internal static Sprite SpecialIcon; internal static Sprite ChargedIcon; internal static Sprite ActiveSpecialIcon; internal static ConfigEntry<float> BuffDuration; internal static ConfigEntry<float> BuffCooldown; internal static ConfigEntry<float> AttackBonus; internal static ConfigEntry<float> MoveBonus; internal static ConfigEntry<float> CritBonus; internal static ConfigEntry<float> CritRefund; internal static ConfigEntry<float> ChargeTime; internal static ConfigEntry<float> Cooldown; internal static ConfigEntry<float> Slow; internal static ConfigEntry<float> Speed; internal static ConfigEntry<float> CritSpeed; internal static ConfigEntry<float> Cone; internal static ConfigEntry<float> PrimaryInterval; private float nextIconScan; public static int HudIconScans; private void Awake() { //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Expected O, but got Unknown //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Expected O, but got Unknown //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_018b: Expected O, but got Unknown //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Expected O, but got Unknown //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_0205: Expected O, but got Unknown //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Expected O, but got Unknown //IL_0275: Unknown result type (might be due to invalid IL or missing references) //IL_027f: Expected O, but got Unknown //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02bc: Expected O, but got Unknown //IL_02ef: Unknown result type (might be due to invalid IL or missing references) //IL_02f9: Expected O, but got Unknown //IL_032c: Unknown result type (might be due to invalid IL or missing references) //IL_0336: Expected O, but got Unknown //IL_034f: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Expected O, but got Unknown //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_03df: Unknown result type (might be due to invalid IL or missing references) //IL_0416: Unknown result type (might be due to invalid IL or missing references) //IL_041e: Unknown result type (might be due to invalid IL or missing references) //IL_0426: Unknown result type (might be due to invalid IL or missing references) //IL_042e: Unknown result type (might be due to invalid IL or missing references) //IL_0472: Unknown result type (might be due to invalid IL or missing references) //IL_0477: Unknown result type (might be due to invalid IL or missing references) //IL_0487: Unknown result type (might be due to invalid IL or missing references) //IL_048c: Unknown result type (might be due to invalid IL or missing references) //IL_051e: Unknown result type (might be due to invalid IL or missing references) //IL_0523: Unknown result type (might be due to invalid IL or missing references) HUD.onHudTargetChangedGlobal += AttachCooldownDisplays; PrimaryInterval = ((BaseUnityPlugin)this).Config.Bind<float>("Primary", "ShotInterval", 0.5f, new ConfigDescription("Minimum seconds between shots at base attack speed.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.1f, 5f), Array.Empty<object>())); ChargeTime = ((BaseUnityPlugin)this).Config.Bind<float>("Secondary", "ChargeTime", 1.2f, new ConfigDescription("Base seconds to full charge at 1.0 attack speed; divided by attack speed.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.1f, 10f), Array.Empty<object>())); Cooldown = ((BaseUnityPlugin)this).Config.Bind<float>("Secondary", "Cooldown", 6f, new ConfigDescription("Recharge seconds.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.1f, 60f), Array.Empty<object>())); Slow = ((BaseUnityPlugin)this).Config.Bind<float>("Secondary", "MovementMultiplier", 0.8f, new ConfigDescription("Movement multiplier while drawing.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.1f, 1f), Array.Empty<object>())); Speed = ((BaseUnityPlugin)this).Config.Bind<float>("Primary", "ArrowSpeed", 120f, new ConfigDescription("Arrow speed in metres per second.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(1f, 1000f), Array.Empty<object>())); CritSpeed = ((BaseUnityPlugin)this).Config.Bind<float>("Primary", "CriticalSpeedMultiplier", 1.5f, new ConfigDescription("Critical primary arrow speed multiplier.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(1f, 5f), Array.Empty<object>())); Cone = ((BaseUnityPlugin)this).Config.Bind<float>("Secondary", "ConeHalfAngle", 8f, new ConfigDescription("Half angle of horizontal five-arrow fan, degrees.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(1f, 45f), Array.Empty<object>())); BuffDuration = ((BaseUnityPlugin)this).Config.Bind<float>("Special", "Duration", 8f, new ConfigDescription("Base buff duration.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(1f, 60f), Array.Empty<object>())); BuffCooldown = ((BaseUnityPlugin)this).Config.Bind<float>("Special", "Cooldown", 35f, new ConfigDescription("Cooldown starts after the buff ends.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(1f, 120f), Array.Empty<object>())); AttackBonus = ((BaseUnityPlugin)this).Config.Bind<float>("Special", "AttackSpeedBonus", 0.5f, new ConfigDescription("Additive attack speed bonus.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 5f), Array.Empty<object>())); MoveBonus = ((BaseUnityPlugin)this).Config.Bind<float>("Special", "MovementSpeedBonus", 0.3f, new ConfigDescription("Additive movement speed bonus.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 5f), Array.Empty<object>())); CritBonus = ((BaseUnityPlugin)this).Config.Bind<float>("Special", "CritDamageBonus", 0.5f, new ConfigDescription("Added to critical damage multiplier (2.0 becomes 2.5).", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 5f), Array.Empty<object>())); CritRefund = ((BaseUnityPlugin)this).Config.Bind<float>("Special", "CooldownReductionPerCriticalHit", 0.5f, new ConfigDescription("Cooldown seconds refunded per critical direct skill hit, including during the buff.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 5f), Array.Empty<object>())); NetworkingAPI.RegisterMessageType<CriticalRefundMessage>(); RecalculateStatsAPI.GetStatCoefficients += new StatHookEventHandler(ApplyStats); GlobalEventManager.onServerDamageDealt += OnServerDamage; try { PrimaryIcon = LoadIcon("primary"); SecondaryIcon = LoadIcon("secondary"); ChargedIcon = CreateChargedIcon(PrimaryIcon); SpecialIcon = LoadIcon("special"); ActiveSpecialIcon = CreateChargedIcon(SpecialIcon); HuntressUnlocks.Register(); SlimArrowGhost = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Junk/Huntress/ArrowGhost.prefab").WaitForCompletion(); Arrow = MakeArrow("HU_PrecisionArrow", 1f); Volley = MakeArrow("HU_VolleyArrow", 0.7f); bool flag = default(bool); ContentAddition.AddEntityState<PrecisionShot>(ref flag); ContentAddition.AddEntityState<DrawShot>(ref flag); ContentAddition.AddEntityState<ReleaseShot>(ref flag); ContentAddition.AddEntityState<LastChoice>(ref flag); GameObject val = LegacyResourcesAPI.Load<GameObject>("Prefabs/CharacterBodies/HuntressBody"); if (!Object.op_Implicit((Object)(object)val)) { throw new InvalidOperationException("HuntressBody missing"); } EntityStateMachine val2 = val.AddComponent<EntityStateMachine>(); val2.customName = "HU_Instinct"; val2.initialStateType = new SerializableEntityStateType(typeof(Idle)); val2.mainStateType = new SerializableEntityStateType(typeof(Idle)); NetworkStateMachine component = val.GetComponent<NetworkStateMachine>(); FieldInfo field = typeof(NetworkStateMachine).GetField("stateMachines", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); EntityStateMachine[] array = (EntityStateMachine[])field.GetValue(component); Array.Resize(ref array, array.Length + 1); array[^1] = val2; field.SetValue(component, array); SkillLocator component2 = val.GetComponent<SkillLocator>(); val.AddComponent<UnboundTrackerControl>(); val.AddComponent<LastChoiceController>(); val.AddComponent<LastChoiceVisual>(); LastChoiceBuff = ScriptableObject.CreateInstance<BuffDef>(); ((Object)LastChoiceBuff).name = "HU_LastChoice"; LastChoiceBuff.buffColor = Color.white; LastChoiceBuff.canStack = false; LastChoiceBuff.isDebuff = false; LastChoiceBuff.iconSprite = LoadIcon("apex-buff"); ContentAddition.AddBuffDef(LastChoiceBuff); AddSkill(component2.primary.skillFamily, typeof(PrecisionShot), "HU_PRIMARY", "Wahrer Schuss", "Verschieße einen präzisen Pfeil ohne Zielsuche für <style=cIsDamage>150% Schaden</style>. Kritische Pfeile fliegen schneller.\n\nProc-Koeffizient: <style=cIsDamage>1,0</style>", PrimaryInterval.Value, keypress: false); AddSkill(component2.secondary.skillFamily, typeof(DrawShot), "HU_SECONDARY", "Salve", "Kurz loslassen: <style=cIsDamage>5 × 200% Schaden</style> als horizontaler Fächer mit gleichen Abständen. Halten bis die Pfeilspitze blinkt: ein nicht durchbohrender Pfeil für <style=cIsDamage>500% Schaden</style>, der das erste Ziel <style=cIsUtility>1 Sekunde betäubt</style>. Volle Aufladung lässt Huntress einmal aufblitzen. Die Ladezeit skaliert mit Angriffstempo. Während des Ladens leicht verlangsamt.\n\nProc-Koeffizient: <style=cIsDamage>0,7 je Salvenpfeil</style> / <style=cIsDamage>1,0 aufgeladen</style>", Cooldown.Value, keypress: true); AddSkill(component2.special.skillFamily, typeof(LastChoice), "HU_SPECIAL", "Apex Instinkt", "Erhalte für " + Number(BuffDuration.Value) + " Sekunden <style=cIsDamage>+" + Number(AttackBonus.Value * 100f) + "% Angriffstempo</style>, <style=cIsUtility>+" + Number(MoveBonus.Value * 100f) + "% Bewegungstempo</style> und <style=cIsDamage>+" + Number(CritBonus.Value * 100f) + " Prozentpunkte Kritschaden</style> (standardmäßig 200% → 250%). Jeder kritische Treffer reduziert die Abklingzeit um <style=cIsUtility>" + Number(CritRefund.Value) + " Sekunden</style>, auch außerhalb des Buffs. Krits während des Buffs werden auf den anschließenden Cooldown angerechnet.\n\nBasis-Cooldown: " + Number(BuffCooldown.Value) + " Sekunden nach Buffende.", BuffCooldown.Value, keypress: true, special: true); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Huntress Unbound registered: 3 skills, 4 states, 2 projectiles, 1 buff."); } catch (Exception ex) { ((BaseUnityPlugin)this).Logger.LogError((object)ex); throw; } } private static void AttachCooldownDisplays(HUD hud) { if (!Object.op_Implicit((Object)(object)hud)) { return; } HudIconScans++; SkillIcon[] componentsInChildren = ((Component)hud).GetComponentsInChildren<SkillIcon>(true); foreach (SkillIcon val in componentsInChildren) { if (!Object.op_Implicit((Object)(object)((Component)val).GetComponent<SpecialCooldownDisplay>())) { ((Component)val).gameObject.AddComponent<SpecialCooldownDisplay>(); } } } private void LateUpdate() { if (Time.unscaledTime < nextIconScan) { return; } nextIconScan = Time.unscaledTime + 1f; foreach (HUD readOnlyInstance in HUD.readOnlyInstanceList) { AttachCooldownDisplays(readOnlyInstance); } } private void OnDestroy() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Expected O, but got Unknown HUD.onHudTargetChangedGlobal -= AttachCooldownDisplays; RecalculateStatsAPI.GetStatCoefficients -= new StatHookEventHandler(ApplyStats); GlobalEventManager.onServerDamageDealt -= OnServerDamage; } private static void ApplyStats(CharacterBody body, StatHookEventArgs args) { if (Object.op_Implicit((Object)(object)LastChoiceBuff) && body.HasBuff(LastChoiceBuff)) { args.attackSpeedMultAdd += AttackBonus.Value; args.moveSpeedMultAdd += MoveBonus.Value; args.critDamageMultAdd += CritBonus.Value; } } private static void OnServerDamage(DamageReport report) { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) if (!NetworkServer.active || !Object.op_Implicit((Object)(object)report.attackerBody) || !Object.op_Implicit((Object)(object)report.victimBody) || !report.damageInfo.crit || report.damageDealt <= 0f || report.attackerTeamIndex == report.victimTeamIndex) { return; } SkillLocator skillLocator = report.attackerBody.skillLocator; if (Object.op_Implicit((Object)(object)skillLocator) && Object.op_Implicit((Object)(object)skillLocator.special) && Object.op_Implicit((Object)(object)skillLocator.special.skillDef) && !(skillLocator.special.skillDef.skillName != "HU_SPECIAL")) { NetworkIdentity component = ((Component)report.attackerBody).GetComponent<NetworkIdentity>(); if (Object.op_Implicit((Object)(object)component)) { CriticalRefundMessage criticalRefundMessage = new CriticalRefundMessage(); criticalRefundMessage.bodyId = component.netId; criticalRefundMessage.seconds = CritRefund.Value; NetMessageExtensions.Send((INetMessage)(object)criticalRefundMessage, (NetworkDestination)1); } } } internal static float GetChargeDuration(float attackSpeed) { return ChargeTime.Value / Mathf.Max(0.01f, attackSpeed); } private static Sprite CreateChargedIcon(Sprite source) { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) Texture2D texture = source.texture; Texture2D val = new Texture2D(((Texture)texture).width, ((Texture)texture).height, (TextureFormat)4, false); Color[] pixels = texture.GetPixels(); for (int i = 0; i < pixels.Length; i++) { float num = Mathf.Max(pixels[i].r, Mathf.Max(pixels[i].g, pixels[i].b)); ref Color reference = ref pixels[i]; reference = new Color(num, num * 0.12f, num * 0.07f, pixels[i].a); } val.SetPixels(pixels); val.Apply(); Sprite val2 = Sprite.Create(val, new Rect(0f, 0f, (float)((Texture)val).width, (float)((Texture)val).height), new Vector2(0.5f, 0.5f)); ((Object)val2).name = "HU_ChargedRedIcon"; return val2; } private static Sprite LoadIcon(string name) { //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) Assembly executingAssembly = Assembly.GetExecutingAssembly(); using Stream stream = executingAssembly.GetManifestResourceStream("HuntressUnbound.Icons." + name + ".png"); if (stream == null) { throw new InvalidOperationException("Missing embedded skill icon: " + name); } byte[] array = new byte[(int)stream.Length]; int num; for (int i = 0; i < array.Length; i += num) { num = stream.Read(array, i, array.Length - i); if (num == 0) { throw new EndOfStreamException(); } } Texture2D val = new Texture2D(2, 2, (TextureFormat)4, false); ((Object)val).name = "HU_" + name + "_Texture"; ((Texture)val).filterMode = (FilterMode)1; ((Texture)val).wrapMode = (TextureWrapMode)1; if (!ImageConversion.LoadImage(val, array)) { throw new InvalidOperationException("Invalid skill icon: " + name); } Sprite val2 = Sprite.Create(val, new Rect(0f, 0f, (float)((Texture)val).width, (float)((Texture)val).height), new Vector2(0.5f, 0.5f), 100f); ((Object)val2).name = "HU_" + name + "_Icon"; return val2; } private static string Number(float value) { return value.ToString("0.##", CultureInfo.GetCultureInfo("de-DE")); } private static GameObject MakeArrow(string name, float proc) { GameObject val = LegacyResourcesAPI.Load<GameObject>("Prefabs/Projectiles/Arrow"); if (!Object.op_Implicit((Object)(object)val)) { throw new InvalidOperationException("Arrow prefab missing"); } GameObject val2 = PrefabAPI.InstantiateClone(val, name, true); MonoBehaviour[] components = val2.GetComponents<MonoBehaviour>(); foreach (MonoBehaviour val3 in components) { string name2 = ((object)val3).GetType().Name; if (name2.Contains("Steer") || name2.Contains("TargetFinder") || name2 == "ProjectileTargetComponent" || name2.Contains("StickOnImpact") || name2.Contains("OverlapAttack")) { Object.DestroyImmediate((Object)(object)val3); } } ProjectileSimple val4 = val2.GetComponent<ProjectileSimple>(); if (!Object.op_Implicit((Object)(object)val4)) { val4 = val2.AddComponent<ProjectileSimple>(); } val4.desiredForwardSpeed = 120f; val4.lifetime = 10f; val4.oscillate = false; Rigidbody component = val2.GetComponent<Rigidbody>(); if (Object.op_Implicit((Object)(object)component)) { component.useGravity = false; component.collisionDetectionMode = (CollisionDetectionMode)2; } ProjectileController component2 = val2.GetComponent<ProjectileController>(); component2.procCoefficient = proc; component2.ghostPrefab = SlimArrowGhost; component2.ghostPrefabAddress = null; AssetOrDirectReference<GameObject> val5 = new AssetOrDirectReference<GameObject>(); val5.directRef = SlimArrowGhost; typeof(ProjectileController).GetField("ghostAssetOrDirectReference", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic).SetValue(component2, val5); ProjectileSingleTargetImpact val6 = val2.GetComponent<ProjectileSingleTargetImpact>(); if (!Object.op_Implicit((Object)(object)val6)) { val6 = val2.AddComponent<ProjectileSingleTargetImpact>(); } val6.destroyOnWorld = true; val6.destroyWhenNotAlive = true; ContentAddition.AddProjectile(val2); return val2; } private static void AddSkill(SkillFamily family, Type state, string token, string title, string text, float cooldown, bool keypress, bool special = false) { //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Expected O, but got Unknown //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_0205: Unknown result type (might be due to invalid IL or missing references) SkillDef val = (SkillDef)(special ? ((object)ScriptableObject.CreateInstance<LastChoiceSkillDef>()) : ((object)((!(token == "HU_SECONDARY")) ? ((ChargedShotSkillDef)(object)ScriptableObject.CreateInstance<SkillDef>()) : ScriptableObject.CreateInstance<ChargedShotSkillDef>()))); val.skillName = token; ((Object)val).name = token; val.skillNameToken = token + "_NAME"; val.skillDescriptionToken = token + "_DESC"; HuntressLocale.Add(val.skillNameToken, title); HuntressLocale.Add(val.skillDescriptionToken, text); val.icon = ((token == "HU_PRIMARY") ? PrimaryIcon : ((!(token == "HU_SECONDARY")) ? SpecialIcon : SecondaryIcon)); val.activationState = new SerializableEntityStateType(state); val.activationStateMachineName = ((!special) ? "Weapon" : "HU_Instinct"); val.interruptPriority = (InterruptPriority)((!(token == "HU_SECONDARY")) ? 1 : 2); val.baseMaxStock = 1; val.baseRechargeInterval = cooldown; val.rechargeStock = 1; val.requiredStock = 1; val.stockToConsume = 1; val.fullRestockOnAssign = true; val.resetCooldownTimerOnUse = true; val.beginSkillCooldownOnSkillEnd = keypress; val.attackSpeedBuffsRestockSpeed = !keypress; val.attackSpeedBuffsRestockSpeed_Multiplier = 1f; val.cancelSprintingOnActivation = !special; val.canceledFromSprinting = false; val.isCombatSkill = !special; val.mustKeyPress = keypress; ContentAddition.AddSkillDef(val); Array.Resize(ref family.variants, family.variants.Length + 1); ref Variant reference = ref family.variants[family.variants.Length - 1]; Variant val2 = new Variant { skillDef = val, unlockableDef = ((token == "HU_SECONDARY") ? HuntressUnlocks.SalveUnlock : ((!(token == "HU_SPECIAL")) ? null : HuntressUnlocks.ApexUnlock)) }; ((Variant)(ref val2)).viewableNode = new Node(val.skillNameToken, false, (Node)null); reference = val2; } internal static Ray Aim(GameObject owner, Ray original) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0004: Unknown result type (might be due to invalid IL or missing references) //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Unknown result type (might be due to invalid IL or missing references) //IL_0222: Unknown result type (might be due to invalid IL or missing references) //IL_0224: Unknown result type (might be due to invalid IL or missing references) //IL_0226: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_022d: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_024e: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_01dc: Unknown result type (might be due to invalid IL or missing references) //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Unknown result type (might be due to invalid IL or missing references) //IL_0205: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Unknown result type (might be due to invalid IL or missing references) float num = default(float); Ray val = CameraRigController.ModifyAimRayIfApplicable(original, owner, ref num); foreach (CameraRigController readOnlyInstances in CameraRigController.readOnlyInstancesList) { if ((Object)(object)readOnlyInstances.target == (Object)(object)owner && Object.op_Implicit((Object)(object)readOnlyInstances.sceneCam)) { val = readOnlyInstances.sceneCam.ViewportPointToRay(new Vector3(0.5f, 0.5f, 0f)); break; } } Vector3 val2 = ((Ray)(ref original)).origin; ModelLocator component = owner.GetComponent<ModelLocator>(); if (Object.op_Implicit((Object)(object)component) && Object.op_Implicit((Object)(object)component.modelTransform)) { ChildLocator component2 = ((Component)component.modelTransform).GetComponent<ChildLocator>(); if (Object.op_Implicit((Object)(object)component2)) { Transform val3 = component2.FindChild("Muzzle"); if (Object.op_Implicit((Object)(object)val3)) { val2 = val3.position; } } } Ray val4 = val; LayerIndex world = LayerIndex.world; int num2 = LayerMask.op_Implicit(((LayerIndex)(ref world)).mask); LayerIndex entityPrecise = LayerIndex.entityPrecise; RaycastHit[] array = Physics.RaycastAll(val4, 1000f, num2 | LayerMask.op_Implicit(((LayerIndex)(ref entityPrecise)).mask), (QueryTriggerInteraction)1); Array.Sort(array, (RaycastHit a, RaycastHit b) => ((RaycastHit)(ref a)).distance.CompareTo(((RaycastHit)(ref b)).distance)); Vector3 point = ((Ray)(ref val)).GetPoint(1000f); RaycastHit[] array2 = array; for (int num3 = 0; num3 < array2.Length; num3++) { RaycastHit val5 = array2[num3]; if (!((Component)((RaycastHit)(ref val5)).collider).transform.IsChildOf(owner.transform)) { HurtBox component3 = ((Component)((RaycastHit)(ref val5)).collider).GetComponent<HurtBox>(); if ((!Object.op_Implicit((Object)(object)component3) || !Object.op_Implicit((Object)(object)component3.healthComponent) || !((Object)(object)((Component)component3.healthComponent).gameObject == (Object)(object)owner)) && !(Vector3.Dot(((RaycastHit)(ref val5)).point - val2, ((Ray)(ref val)).direction) <= 0.05f)) { point = ((RaycastHit)(ref val5)).point; break; } } } Vector3 val6 = point - val2; return new Ray(val2, (!(((Vector3)(ref val6)).sqrMagnitude > 0.0001f)) ? ((Ray)(ref val)).direction : ((Vector3)(ref val6)).normalized); } internal static DamageType ArrowDamageType(bool charged) { return (DamageType)(charged ? 32 : 0); } internal static void Fire(BaseState state, GameObject owner, Ray ray, Vector3 direction, float damage, bool crit, float speed, bool volley) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) ProjectileManager instance = ProjectileManager.instance; FireProjectileInfo val = new FireProjectileInfo { projectilePrefab = ((!volley) ? Arrow : Volley), position = ((Ray)(ref ray)).origin, rotation = Util.QuaternionSafeLookRotation(direction), owner = owner, damage = damage, force = 50f, crit = crit }; ((FireProjectileInfo)(ref val)).speedOverride = speed; val.damageTypeOverride = new DamageTypeCombo { damageType = ArrowDamageType(state is ReleaseShot && !volley), damageSource = (DamageSource)((state is PrecisionShot) ? 1 : 2) }; instance.FireProjectile(val); } } public sealed class CriticalRefundMessage : INetMessage, ISerializableObject { public NetworkInstanceId bodyId; public float seconds; public void Serialize(NetworkWriter writer) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) writer.Write(bodyId); writer.Write(seconds); } public void Deserialize(NetworkReader reader) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) bodyId = reader.ReadNetworkId(); seconds = reader.ReadSingle(); } public void OnReceived() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) GameObject val = Util.FindNetworkObject(bodyId); if (Object.op_Implicit((Object)(object)val) && Util.HasEffectiveAuthority(val)) { LastChoiceController component = val.GetComponent<LastChoiceController>(); if (Object.op_Implicit((Object)(object)component)) { component.Refund(seconds); } } } } public sealed class LastChoiceController : MonoBehaviour { private CharacterBody body; private float pendingRefund; private void Awake() { body = ((Component)this).GetComponent<CharacterBody>(); } public void Activate() { if (NetworkServer.active && Object.op_Implicit((Object)(object)body) && !body.HasBuff(Plugin.LastChoiceBuff)) { body.AddTimedBuff(Plugin.LastChoiceBuff, Plugin.BuffDuration.Value); } } public void Refund(float seconds) { if (!Object.op_Implicit((Object)(object)body) || !Util.HasEffectiveAuthority(((Component)this).gameObject)) { return; } GenericSkill special = body.skillLocator.special; if (Object.op_Implicit((Object)(object)special) && Object.op_Implicit((Object)(object)special.skillDef) && !(special.skillDef.skillName != "HU_SPECIAL")) { if (body.HasBuff(Plugin.LastChoiceBuff)) { pendingRefund = Mathf.Min(pendingRefund + seconds, special.GetFinalRechargeInterval()); } else { special.RunRecharge(seconds); } } } public void UpdateCooldown(GenericSkill skill) { if (Object.op_Implicit((Object)(object)body) && body.HasBuff(Plugin.LastChoiceBuff)) { skill.rechargeStopwatch = 0f; } else if (pendingRefund > 0f) { float num = pendingRefund; pendingRefund = 0f; skill.RunRecharge(num); } } } public sealed class LastChoiceVisual : MonoBehaviour { private CharacterBody body; private TemporaryOverlayInstance overlay; private CharacterModel visualModel; private Material glow; private void Awake() { body = ((Component)this).GetComponent<CharacterBody>(); } private void LateUpdate() { CharacterModel model = ((!Object.op_Implicit((Object)(object)body) || !Object.op_Implicit((Object)(object)body.modelLocator) || !Object.op_Implicit((Object)(object)body.modelLocator.modelTransform)) ? null : ((Component)body.modelLocator.modelTransform).GetComponent<CharacterModel>()); SetVisual(model, Object.op_Implicit((Object)(object)body) && Object.op_Implicit((Object)(object)body.healthComponent) && body.healthComponent.alive && Object.op_Implicit((Object)(object)Plugin.LastChoiceBuff) && body.HasBuff(Plugin.LastChoiceBuff)); } internal void SetVisual(CharacterModel model, bool active) { //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Expected O, but got Unknown //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Unknown result type (might be due to invalid IL or missing references) if (!active || !Object.op_Implicit((Object)(object)model) || (Object.op_Implicit((Object)(object)visualModel) && (Object)(object)visualModel != (Object)(object)model)) { Clear(); } if (!active || !Object.op_Implicit((Object)(object)model) || overlay != null) { return; } if (!Object.op_Implicit((Object)(object)glow)) { Material val = Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/Huntress/matHuntressFlashExpanded.mat").WaitForCompletion(); glow = new Material(val); ((Object)glow).name = "HU_LastChoiceCyanGlow"; glow.EnableKeyword("FRESNEL"); glow.SetFloat("_FresnelOn", 1f); glow.SetFloat("_FresnelPower", 2.5f); glow.SetFloat("_OffsetAmount", 0.025f); Color val2 = default(Color); ((Color)(ref val2))..ctor(0.04f, 0.9f, 1.2f, 1f); if (glow.HasProperty("_TintColor")) { glow.SetColor("_TintColor", val2); } if (glow.HasProperty("_Color")) { glow.SetColor("_Color", val2); } } visualModel = model; overlay = TemporaryOverlayManager.AddOverlay(((Component)this).gameObject); overlay.originalMaterial = glow; overlay.duration = float.PositiveInfinity; overlay.animateShaderAlpha = false; overlay.destroyComponentOnEnd = false; overlay.AddToCharacterModel(model); } private void Clear() { if (overlay != null) { overlay.Destroy(); overlay = null; } visualModel = null; } private void OnDisable() { Clear(); } private void OnDestroy() { Clear(); if (Object.op_Implicit((Object)(object)glow)) { Object.Destroy((Object)(object)glow); } } } public sealed class SpecialCooldownDisplay : MonoBehaviour { private SkillIcon icon; private Behaviour cooldown; private bool hidden; private bool previousEnabled; private bool previousPanelEnabled; private Color previousColor; private void Awake() { icon = ((Component)this).GetComponent<SkillIcon>(); FieldInfo field = typeof(SkillIcon).GetField("cooldownText", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); ref Behaviour reference = ref cooldown; object? value = field.GetValue(icon); reference = (Behaviour)((value is Behaviour) ? value : null); } private void LateUpdate() { //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0166: Unknown result type (might be due to invalid IL or missing references) if (!Object.op_Implicit((Object)(object)icon) || !Object.op_Implicit((Object)(object)cooldown)) { return; } GenericSkill targetSkill = icon.targetSkill; if (Object.op_Implicit((Object)(object)targetSkill) && Object.op_Implicit((Object)(object)targetSkill.skillDef) && ((targetSkill.skillDef.skillName == "HU_SPECIAL" && Object.op_Implicit((Object)(object)targetSkill.characterBody) && targetSkill.characterBody.HasBuff(Plugin.LastChoiceBuff)) || (targetSkill.skillDef.skillName == "HU_SECONDARY" && Object.op_Implicit((Object)(object)targetSkill.stateMachine) && (targetSkill.stateMachine.state is DrawShot || targetSkill.stateMachine.state is ReleaseShot)))) { if (!hidden) { previousEnabled = cooldown.enabled; previousPanelEnabled = Object.op_Implicit((Object)(object)icon.cooldownRemapPanel) && ((Behaviour)icon.cooldownRemapPanel).enabled; previousColor = ((!Object.op_Implicit((Object)(object)icon.iconImage)) ? Color.white : ((Graphic)icon.iconImage).color); hidden = true; } cooldown.enabled = false; if (Object.op_Implicit((Object)(object)icon.iconImage)) { ((Graphic)icon.iconImage).color = Color.white; icon.iconImage.sprite = targetSkill.skillDef.GetCurrentIcon(targetSkill); } if (Object.op_Implicit((Object)(object)icon.cooldownRemapPanel)) { ((Behaviour)icon.cooldownRemapPanel).enabled = false; } } else if (hidden) { Restore(); } } private void Restore() { //IL_007d: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)cooldown)) { cooldown.enabled = previousEnabled; } if (Object.op_Implicit((Object)(object)icon)) { if (Object.op_Implicit((Object)(object)icon.cooldownRemapPanel)) { ((Behaviour)icon.cooldownRemapPanel).enabled = previousPanelEnabled; } if (Object.op_Implicit((Object)(object)icon.iconImage)) { ((Graphic)icon.iconImage).color = previousColor; } } hidden = false; } private void OnDestroy() { if (hidden) { Restore(); } } } public sealed class LastChoiceSkillDef : SkillDef { public override Sprite GetCurrentIcon(GenericSkill skill) { return (!Object.op_Implicit((Object)(object)skill.characterBody) || !skill.characterBody.HasBuff(Plugin.LastChoiceBuff)) ? ((SkillDef)this).GetCurrentIcon(skill) : Plugin.ActiveSpecialIcon; } public override bool IsReady(GenericSkill skill) { return ((SkillDef)this).IsReady(skill) && (!Object.op_Implicit((Object)(object)skill.characterBody) || !skill.characterBody.HasBuff(Plugin.LastChoiceBuff)); } public override void OnFixedUpdate(GenericSkill skill, float deltaTime) { ((SkillDef)this).OnFixedUpdate(skill, deltaTime); if (Object.op_Implicit((Object)(object)skill.characterBody)) { LastChoiceController component = ((Component)skill.characterBody).GetComponent<LastChoiceController>(); if (Object.op_Implicit((Object)(object)component)) { component.UpdateCooldown(skill); } } } } public sealed class LastChoice : BaseSkillState { public override void OnEnter() { ((BaseState)this).OnEnter(); if (NetworkServer.active) { LastChoiceController component = ((EntityState)this).GetComponent<LastChoiceController>(); if (Object.op_Implicit((Object)(object)component)) { component.Activate(); } } Util.PlaySound("Play_huntress_shift_start", ((EntityState)this).gameObject); } public override void FixedUpdate() { ((EntityState)this).FixedUpdate(); if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= 0.1f) { ((EntityState)this).outer.SetNextStateToMain(); } } public override InterruptPriority GetMinimumInterruptPriority() { return (InterruptPriority)2; } } public sealed class UnboundTrackerControl : MonoBehaviour { private HuntressTracker tracker; private SkillLocator skills; private bool disabledByUs; private void Awake() { tracker = ((Component)this).GetComponent<HuntressTracker>(); skills = ((Component)this).GetComponent<SkillLocator>(); } private void Update() { if (Object.op_Implicit((Object)(object)tracker) && Object.op_Implicit((Object)(object)skills) && Object.op_Implicit((Object)(object)skills.primary) && Object.op_Implicit((Object)(object)skills.secondary)) { bool flag = Object.op_Implicit((Object)(object)skills.primary.skillDef) && Object.op_Implicit((Object)(object)skills.secondary.skillDef) && skills.primary.skillDef.skillName == "HU_PRIMARY" && skills.secondary.skillDef.skillName == "HU_SECONDARY"; if (flag && ((Behaviour)tracker).enabled) { ((Behaviour)tracker).enabled = false; disabledByUs = true; } else if (!flag && disabledByUs) { ((Behaviour)tracker).enabled = true; disabledByUs = false; } } } private void OnDestroy() { if (disabledByUs && Object.op_Implicit((Object)(object)tracker)) { ((Behaviour)tracker).enabled = true; } } } public sealed class PrecisionShot : BaseSkillState { public override void OnEnter() { //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) ((BaseState)this).OnEnter(); ((EntityState)this).characterBody.isSprinting = false; ((BaseState)this).StartAimMode(2f, false); ((EntityState)this).PlayAnimation("Gesture, Override", "FireSeekingShot", "FireSeekingShot.playbackRate", Plugin.PrimaryInterval.Value / ((BaseState)this).attackSpeedStat, 0f); if (((EntityState)this).isAuthority) { bool flag = ((BaseState)this).RollCrit(); Ray ray = Plugin.Aim(((EntityState)this).gameObject, ((BaseState)this).GetAimRay()); Plugin.Fire((BaseState)(object)this, ((EntityState)this).gameObject, ray, ((Ray)(ref ray)).direction, ((BaseState)this).damageStat * 1.5f, flag, Plugin.Speed.Value * ((!flag) ? 1f : Plugin.CritSpeed.Value), volley: false); } Util.PlaySound("Play_huntress_m1_shoot", ((EntityState)this).gameObject); } public override void FixedUpdate() { ((EntityState)this).FixedUpdate(); ((EntityState)this).characterBody.isSprinting = false; if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= Plugin.PrimaryInterval.Value / ((BaseState)this).attackSpeedStat) { ((EntityState)this).outer.SetNextStateToMain(); } } public override InterruptPriority GetMinimumInterruptPriority() { return (InterruptPriority)2; } } public sealed class ChargeVisual : MonoBehaviour { private static Material energyMaterial; private ParticleSystem wisps; private LineRenderer core; private LineRenderer flashRing; private float progress; private float flashRemaining; private bool full; public bool IsFullyCharged => full; public int FullFlashCount { get; private set; } public float PlumeWidth { get; private set; } private static Material GetMaterial() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Expected O, but got Unknown //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown //IL_0120: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)energyMaterial)) { return energyMaterial; } GameObject val = new GameObject("HU_ParticleMaterialSource"); SpriteRenderer val2 = val.AddComponent<SpriteRenderer>(); energyMaterial = new Material(((Renderer)val2).sharedMaterial); Object.Destroy((Object)(object)val); ((Object)energyMaterial).name = "HU_ChargeEnergyMaterial"; energyMaterial.SetColor("_Color", new Color(1.2f, 1.6f, 1.7f, 1f)); Texture2D val3 = new Texture2D(64, 64, (TextureFormat)4, false); ((Object)val3).name = "HU_SoftEnergyTexture"; ((Texture)val3).wrapMode = (TextureWrapMode)1; for (int i = 0; i < 64; i++) { for (int j = 0; j < 64; j++) { float num = ((float)j - 31.5f) / 31.5f; float num2 = ((float)i - 31.5f) / 31.5f; float num3 = Mathf.Pow(Mathf.Clamp01(1f - num * num - num2 * num2), 2f); float num4 = 0.65f + 0.35f * Mathf.PerlinNoise((float)j * 0.17f, (float)i * 0.17f); val3.SetPixel(j, i, new Color(1f, 1f, 1f, num3 * num4)); } } val3.Apply(false, true); energyMaterial.mainTexture = (Texture)(object)val3; return energyMaterial; } private LineRenderer MakeLine(string name) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown GameObject val = new GameObject(name); val.transform.SetParent(((Component)this).transform, false); LineRenderer val2 = val.AddComponent<LineRenderer>(); val2.useWorldSpace = false; ((Renderer)val2).sharedMaterial = GetMaterial(); val2.numCapVertices = 4; ((Renderer)val2).shadowCastingMode = (ShadowCastingMode)0; ((Renderer)val2).receiveShadows = false; return val2; } private void Awake() { //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Expected O, but got Unknown //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_0162: Expected O, but got Unknown //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_0210: Unknown result type (might be due to invalid IL or missing references) //IL_0215: Unknown result type (might be due to invalid IL or missing references) //IL_0226: Unknown result type (might be due to invalid IL or missing references) //IL_0236: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Unknown result type (might be due to invalid IL or missing references) //IL_026a: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_027f: Expected O, but got Unknown //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02a7: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_02d6: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: 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_030d: Unknown result type (might be due to invalid IL or missing references) //IL_0312: Unknown result type (might be due to invalid IL or missing references) //IL_0328: Unknown result type (might be due to invalid IL or missing references) //IL_032d: Unknown result type (might be due to invalid IL or missing references) //IL_033b: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_0350: Unknown result type (might be due to invalid IL or missing references) //IL_0378: Unknown result type (might be due to invalid IL or missing references) //IL_037d: Unknown result type (might be due to invalid IL or missing references) //IL_0393: Unknown result type (might be due to invalid IL or missing references) //IL_0398: Unknown result type (might be due to invalid IL or missing references) //IL_03ae: Unknown result type (might be due to invalid IL or missing references) //IL_03b3: Unknown result type (might be due to invalid IL or missing references) //IL_03b8: Unknown result type (might be due to invalid IL or missing references) //IL_03c2: Expected O, but got Unknown //IL_03bd: Unknown result type (might be due to invalid IL or missing references) //IL_03cd: Unknown result type (might be due to invalid IL or missing references) //IL_03d2: Unknown result type (might be due to invalid IL or missing references) //IL_03ef: Unknown result type (might be due to invalid IL or missing references) //IL_0400: Unknown result type (might be due to invalid IL or missing references) core = MakeLine("EnergyTip"); core.positionCount = 4; core.SetPositions((Vector3[])(object)new Vector3[4] { new Vector3(0f, 0f, -0.22f), new Vector3(0f, 0f, -0.05f), Vector3.zero, new Vector3(0f, 0f, 0.06f) }); core.widthCurve = new AnimationCurve((Keyframe[])(object)new Keyframe[4] { new Keyframe(0f, 0f), new Keyframe(0.55f, 0.45f), new Keyframe(0.78f, 1f), new Keyframe(1f, 0f) }); flashRing = MakeLine("FullChargeFlash"); flashRing.loop = true; flashRing.positionCount = 32; ((Renderer)flashRing).enabled = false; GameObject val = new GameObject("EnergyWake"); val.transform.SetParent(((Component)this).transform, false); val.transform.localRotation = Quaternion.Euler(0f, 180f, 0f); wisps = val.AddComponent<ParticleSystem>(); wisps.Stop(true, (ParticleSystemStopBehavior)0); MainModule main = wisps.main; ((MainModule)(ref main)).loop = true; ((MainModule)(ref main)).playOnAwake = false; ((MainModule)(ref main)).simulationSpace = (ParticleSystemSimulationSpace)0; ((MainModule)(ref main)).scalingMode = (ParticleSystemScalingMode)0; ((MainModule)(ref main)).maxParticles = 160; ((MainModule)(ref main)).startLifetime = new MinMaxCurve(0.16f, 0.32f); ((MainModule)(ref main)).startColor = MinMaxGradient.op_Implicit(new Color(0.6f, 1f, 1f, 0.9f)); ((MainModule)(ref main)).gravityModifier = MinMaxCurve.op_Implicit(0f); ShapeModule shape = wisps.shape; ((ShapeModule)(ref shape)).enabled = true; ((ShapeModule)(ref shape)).shapeType = (ParticleSystemShapeType)4; ((ShapeModule)(ref shape)).angle = 12f; ((ShapeModule)(ref shape)).radius = 0.015f; ColorOverLifetimeModule colorOverLifetime = wisps.colorOverLifetime; ((ColorOverLifetimeModule)(ref colorOverLifetime)).enabled = true; Gradient val2 = new Gradient(); val2.SetKeys((GradientColorKey[])(object)new GradientColorKey[2] { new GradientColorKey(new Color(0.65f, 1f, 1f), 0f), new GradientColorKey(new Color(0.04f, 0.6f, 0.85f), 1f) }, (GradientAlphaKey[])(object)new GradientAlphaKey[3] { new GradientAlphaKey(0f, 0f), new GradientAlphaKey(0.7f, 0.12f), new GradientAlphaKey(0f, 1f) }); ((ColorOverLifetimeModule)(ref colorOverLifetime)).color = MinMaxGradient.op_Implicit(val2); SizeOverLifetimeModule sizeOverLifetime = wisps.sizeOverLifetime; ((SizeOverLifetimeModule)(ref sizeOverLifetime)).enabled = true; ((SizeOverLifetimeModule)(ref sizeOverLifetime)).size = new MinMaxCurve(1f, new AnimationCurve((Keyframe[])(object)new Keyframe[3] { new Keyframe(0f, 0.2f), new Keyframe(0.35f, 1f), new Keyframe(1f, 0f) })); NoiseModule noise = wisps.noise; ((NoiseModule)(ref noise)).enabled = true; ((NoiseModule)(ref noise)).frequency = 3f; ((NoiseModule)(ref noise)).scrollSpeed = MinMaxCurve.op_Implicit(0.6f); ((NoiseModule)(ref noise)).strength = MinMaxCurve.op_Implicit(0.045f); ParticleSystemRenderer component = ((Component)wisps).GetComponent<ParticleSystemRenderer>(); ((Renderer)component).sharedMaterial = GetMaterial(); component.renderMode = (ParticleSystemRenderMode)1; component.lengthScale = 3.5f; component.velocityScale = 0.035f; ((Renderer)component).shadowCastingMode = (ShadowCastingMode)0; ((Renderer)component).receiveShadows = false; SetProgress(0f); wisps.Play(); } public void SetProgress(float value) { //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Unknown result type (might be due to invalid IL or missing references) progress = Mathf.Clamp01(value); bool flag = full; full = progress >= 1f; if (full && !flag) { flashRemaining = 0.16f; FullFlashCount++; wisps.Emit(22); } float num = ((!full) ? Mathf.Lerp(0.18f, 0.8f, progress) : 1.6f); PlumeWidth = ((!full) ? Mathf.Lerp(0.015f, 0.04f, progress) : 0.075f); MainModule main = wisps.main; ((MainModule)(ref main)).startSize = new MinMaxCurve(PlumeWidth * 0.45f, PlumeWidth); ((MainModule)(ref main)).startSpeed = new MinMaxCurve(num * 1.1f, num * 2.1f); EmissionModule emission = wisps.emission; ((EmissionModule)(ref emission)).rateOverTime = MinMaxCurve.op_Implicit((!full) ? Mathf.Lerp(12f, 65f, progress) : 105f); ShapeModule shape = wisps.shape; ((ShapeModule)(ref shape)).radius = PlumeWidth * 0.45f; ((ShapeModule)(ref shape)).angle = ((!full) ? 12f : 20f); core.widthMultiplier = ((!full) ? Mathf.Lerp(0.006f, 0.018f, progress) : 0.035f); core.startColor = new Color(0.6f, 1f, 1f, 0.65f); core.endColor = new Color(0.8f, 1f, 1f, (!full) ? 0.6f : 0.95f); } private void Update() { //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) if (flashRemaining <= 0f) { ((Renderer)flashRing).enabled = false; return; } flashRemaining = Mathf.Max(0f, flashRemaining - Time.deltaTime); float num = 1f - flashRemaining / 0.16f; float num2 = Mathf.Lerp(0.04f, 0.18f, num); ((Renderer)flashRing).enabled = flashRemaining > 0f; flashRing.widthMultiplier = 0.018f * (1f - num); LineRenderer obj = flashRing; Color val = new Color(0.7f, 1f, 1f, 1f - num); flashRing.endColor = val; obj.startColor = val; for (int i = 0; i < 32; i++) { float num3 = (float)i * (float)Math.PI * 2f / 32f; flashRing.SetPosition(i, new Vector3(Mathf.Cos(num3) * num2, Mathf.Sin(num3) * num2, 0f)); } } } public sealed class ChargedShotSkillDef : SkillDef { public override Sprite GetCurrentIcon(GenericSkill skill) { DrawShot drawShot = ((!Object.op_Implicit((Object)(object)skill.stateMachine)) ? null : (skill.stateMachine.state as DrawShot)); return (drawShot == null || !drawShot.FullyCharged) ? ((SkillDef)this).GetCurrentIcon(skill) : Plugin.ChargedIcon; } } public static class FullChargeFlash { private static Material material; public static void Play(CharacterBody body) { //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_00bc: Unknown result type (might be due to invalid IL or missing references) if (!Object.op_Implicit((Object)(object)body) || !Object.op_Implicit((Object)(object)body.modelLocator) || !Object.op_Implicit((Object)(object)body.modelLocator.modelTransform)) { return; } CharacterModel component = ((Component)body.modelLocator.modelTransform).GetComponent<CharacterModel>(); if (!Object.op_Implicit((Object)(object)component)) { return; } if (!Object.op_Implicit((Object)(object)material)) { Material val = Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/Huntress/matHuntressFlashBright.mat").WaitForCompletion(); material = new Material(val); ((Object)material).name = "HU_FullChargeFlash"; if (material.HasProperty("_TintColor")) { material.SetColor("_TintColor", new Color(0.3f, 1.3f, 1.5f, 1f)); } } TemporaryOverlayInstance val2 = TemporaryOverlayManager.AddOverlay(((Component)body).gameObject); val2.originalMaterial = material; val2.duration = 0.25f; val2.animateShaderAlpha = true; val2.alphaCurve = AnimationCurve.EaseInOut(0f, 1f, 0.25f, 0f); val2.destroyComponentOnEnd = true; val2.AddToCharacterModel(component); } } public sealed class DrawShot : BaseSkillState { private WalkSpeedPenaltyModifier penalty; private ChargeVisual chargeVisual; private bool ready; private Animator bowAnimator; private int overrideLayer = -1; private int additiveLayer = -1; private float drawDuration; private float poseDuration; public bool FullyCharged => ready; public float ChargeProgress => Mathf.Clamp01(((EntityState)this).fixedAge / Mathf.Max(0.001f, drawDuration)); public override void OnEnter() { //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Expected O, but got Unknown ((BaseState)this).OnEnter(); ((BaseState)this).StartAimMode(2f, false); ((EntityState)this).characterBody.isSprinting = false; drawDuration = Plugin.GetChargeDuration(((BaseState)this).attackSpeedStat); poseDuration = Mathf.Min(0.35f / Mathf.Max(0.01f, ((BaseState)this).attackSpeedStat), drawDuration); if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor)) { penalty = ((EntityState)this).characterMotor.AddWalkSpeedPenalty(Plugin.Slow.Value); } bowAnimator = ((EntityState)this).GetModelAnimator(); if (Object.op_Implicit((Object)(object)bowAnimator)) { overrideLayer = bowAnimator.GetLayerIndex("Gesture, Override"); additiveLayer = bowAnimator.GetLayerIndex("Gesture, Additive"); bowAnimator.SetFloat("FireSeekingShot.playbackRate", 0f); SetDrawPose(0f); } Transform val = ((BaseState)this).FindModelChild("Muzzle"); if (Object.op_Implicit((Object)(object)val)) { GameObject val2 = new GameObject("HU_ChargeEnergy"); val2.transform.SetParent(val, false); chargeVisual = val2.AddComponent<ChargeVisual>(); chargeVisual.SetProgress(0f); } } private void SetDrawPose(float progress) { if (Object.op_Implicit((Object)(object)bowAnimator)) { if (overrideLayer >= 0) { bowAnimator.Play("FireSeekingShot", overrideLayer, progress); } if (additiveLayer >= 0) { bowAnimator.Play("FireSeekingShot", additiveLayer, progress); } } } public override void Update() { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) ((EntityState)this).Update(); SetDrawPose(0.4f * Mathf.Clamp01(((EntityState)this).age / poseDuration)); if (Object.op_Implicit((Object)(object)chargeVisual)) { Transform transform = ((Component)chargeVisual).transform; Ray aimRay = ((BaseState)this).GetAimRay(); transform.rotation = Util.QuaternionSafeLookRotation(((Ray)(ref aimRay)).direction); chargeVisual.SetProgress(Mathf.Clamp01(((EntityState)this).fixedAge / drawDuration)); } } public override void FixedUpdate() { ((EntityState)this).FixedUpdate(); ((EntityState)this).characterBody.isSprinting = false; ((BaseState)this).StartAimMode(0.5f, false); if (!ready && ((EntityState)this).fixedAge >= drawDuration) { ready = true; FullChargeFlash.Play(((EntityState)this).characterBody); Util.PlaySound("Play_huntress_m2_throw", ((EntityState)this).gameObject); } if (((EntityState)this).isAuthority && !((BaseSkillState)this).IsKeyDownAuthority()) { ((EntityState)this).outer.SetNextState((EntityState)(object)new ReleaseShot { charged = ready }); } } public override void OnExit() { if (Object.op_Implicit((Object)(object)bowAnimator)) { bowAnimator.SetFloat("FireSeekingShot.playbackRate", 1f); if (overrideLayer >= 0) { bowAnimator.Play("BufferEmpty", overrideLayer, 0f); } if (additiveLayer >= 0) { bowAnimator.Play("BufferEmpty", additiveLayer, 0f); } } if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor) && penalty != null) { ((EntityState)this).characterMotor.RemoveWalkSpeedPenalty(penalty); } if (Object.op_Implicit((Object)(object)chargeVisual)) { Object.Destroy((Object)(object)((Component)chargeVisual).gameObject); } ((EntityState)this).OnExit(); } public override InterruptPriority GetMinimumInterruptPriority() { return (InterruptPriority)3; } } public sealed class ReleaseShot : BaseSkillState { public bool charged; public override void OnSerialize(NetworkWriter writer) { ((BaseSkillState)this).OnSerialize(writer); writer.Write(charged); } public override void OnDeserialize(NetworkReader reader) { ((BaseSkillState)this).OnDeserialize(reader); charged = reader.ReadBoolean(); } public override void OnEnter() { //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_0177: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Unknown result type (might be due to invalid IL or missing references) //IL_018b: Unknown result type (might be due to invalid IL or missing references) ((BaseState)this).OnEnter(); ((EntityState)this).characterBody.isSprinting = false; ((BaseState)this).StartAimMode(2f, false); ((EntityState)this).PlayAnimation("Gesture, Override", "FireSeekingShot", "FireSeekingShot.playbackRate", 0.3f / ((BaseState)this).attackSpeedStat, 0f); ((EntityState)this).PlayAnimation("Gesture, Additive", "FireSeekingShot", "FireSeekingShot.playbackRate", 0.3f / ((BaseState)this).attackSpeedStat, 0f); Animator modelAnimator = ((EntityState)this).GetModelAnimator(); if (Object.op_Implicit((Object)(object)modelAnimator)) { int layerIndex = modelAnimator.GetLayerIndex("Gesture, Override"); if (layerIndex >= 0) { modelAnimator.Play("FireSeekingShot", layerIndex, 0.4f); } layerIndex = modelAnimator.GetLayerIndex("Gesture, Additive"); if (layerIndex >= 0) { modelAnimator.Play("FireSeekingShot", layerIndex, 0.4f); } } Util.PlaySound("Play_huntress_m1_shoot", ((EntityState)this).gameObject); if (!((EntityState)this).isAuthority) { return; } Ray ray = Plugin.Aim(((EntityState)this).gameObject, ((BaseState)this).GetAimRay()); if (charged) { Plugin.Fire((BaseState)(object)this, ((EntityState)this).gameObject, ray, ((Ray)(ref ray)).direction, ((BaseState)this).damageStat * 5f, ((BaseState)this).RollCrit(), Plugin.Speed.Value, volley: false); return; } Quaternion val = Util.QuaternionSafeLookRotation(((Ray)(ref ray)).direction); for (int i = 0; i < 5; i++) { float num = (float)(i - 2) * Plugin.Cone.Value * 0.5f; Vector3 direction = val * (Quaternion.Euler(0f, num, 0f) * Vector3.forward); Plugin.Fire((BaseState)(object)this, ((EntityState)this).gameObject, ray, direction, ((BaseState)this).damageStat * 2f, ((BaseState)this).RollCrit(), Plugin.Speed.Value, volley: true); } } public override void FixedUpdate() { ((EntityState)this).FixedUpdate(); ((EntityState)this).characterBody.isSprinting = false; if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= 0.3f / ((BaseState)this).attackSpeedStat) { ((EntityState)this).outer.SetNextStateToMain(); } } public override InterruptPriority GetMinimumInterruptPriority() { return (InterruptPriority)1; } } public sealed class CriticalHitWindow { private readonly Queue<float> hits = new Queue<float>(); public bool Add(float time) { while (hits.Count > 0 && time - hits.Peek() > 10f) { hits.Dequeue(); } hits.Enqueue(time); return hits.Count >= 20; } public void Clear() { hits.Clear(); } } public sealed class ApexAttempt { public bool Active { get; private set; } public bool Failed { get; private set; } public bool HitBoss { get; private set; } public void Start() { Active = true; Failed = false; HitBoss = false; } public void Fail() { if (Active) { Failed = true; } } public void RecordBossHit() { if (Active) { HitBoss = true; } } public bool Finish(bool sameLivingHuntress) { bool result = Active && !Failed && HitBoss && sameLivingHuntress; Active = false; return result; } public void Cancel() { Active = false; Failed = false; HitBoss = false; } } public static class HuntressUnlocks { public const string SalveAchievement = "ToXHuntressJagdrausch"; public const string ApexAchievement = "ToXHuntressKeineZweiteChance"; public const string SalveReward = "Skills.HuntressUnbound.Salve"; public const string ApexReward = "Skills.HuntressUnbound.ApexInstinkt"; public static UnlockableDef SalveUnlock; public static UnlockableDef ApexUnlock; public static void Register() { SalveUnlock = Create("Skills.HuntressUnbound.Salve", "HU_SECONDARY_NAME", Plugin.SecondaryIcon); ApexUnlock = Create("Skills.HuntressUnbound.ApexInstinkt", "HU_SPECIAL_NAME", Plugin.SpecialIcon); Text("ToXHuntressJagdrausch", "Huntress: Jagdrausch", "Lande als Huntress innerhalb von 10 Sekunden 20 kritische Treffer mit deinen eigenen Fähigkeiten. Einzelne Pfeilhagel-Pfeile zählen; Item-Procs und Schaden über Zeit zählen nicht."); Text("ToXHuntressKeineZweiteChance", "Huntress: Keine zweite Chance", "Besiege als Huntress die Teleporterboss-Gruppe, ohne vom Aktivieren des Teleporters bis zum Boss-Sieg Schaden zu nehmen. Verwende nur Wahrer Schuss als Schadensfähigkeit und triff damit mindestens einen Teleporterboss. Blinken und passive Items sind erlaubt; andere Schadensfähigkeiten und offensiver Ausrüstungsschaden machen den Versuch ungültig."); } private static UnlockableDef Create(string id, string token, Sprite icon) { UnlockableDef val = ScriptableObject.CreateInstance<UnlockableDef>(); val.cachedName = id; val.nameToken = token; val.achievementIcon = icon; ContentAddition.AddUnlockableDef(val); return val; } private static void Text(string id, string title, string description) { string text = "ACHIEVEMENT_" + id.ToUpperInvariant(); HuntressLocale.Add(text + "_NAME", title); HuntressLocale.Add(text + "_DESCRIPTION", description); } public static bool DirectSkill(DamageInfo info) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Invalid comparison between Unknown and I4 //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Invalid comparison between Unknown and I4 //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Invalid comparison between Unknown and I4 //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Invalid comparison between Unknown and I4 //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Invalid comparison between Unknown and I4 if (info == null || info.rejected || info.procChainMask.mask != 0 || info.delayedDamageSecondHalf || (int)info.dotIndex != -1) { return false; } DamageSource damageSource = info.damageType.damageSource; return (int)damageSource == 1 || (int)damageSource == 2 || (int)damageSource == 4 || (int)damageSource == 8; } public static bool Huntress(CharacterBody body) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) return Object.op_Implicit((Object)(object)body) && body.bodyIndex == BodyCatalog.FindBodyIndex("HuntressBody"); } public static bool TrueShot(CharacterBody body) { return Object.op_Implicit((Object)(object)body) && Object.op_Implicit((Object)(object)body.skillLocator) && Object.op_Implicit((Object)(object)body.skillLocator.primary) && Object.op_Implicit((Object)(object)body.skillLocator.primary.skillDef) && body.skillLocator.primary.skillDef.skillName == "HU_PRIMARY"; } } public abstract class HuntressSkillAchievement : BaseAchievement { protected override BodyIndex LookUpRequiredBodyIndex() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) return BodyCatalog.FindBodyIndex("HuntressBody"); } protected override void OnBodyRequirementMet() { ((BaseAchievement)this).OnBodyRequirementMet(); ((BaseAchievement)this).SetServerTracked(true); } protected override void OnBodyRequirementBroken() { ((BaseAchievement)this).SetServerTracked(false); ((BaseAchievement)this).OnBodyRequirementBroken(); } } [RegisterAchievement("ToXHuntressJagdrausch", "Skills.HuntressUnbound.Salve", null, 0u, typeof(SalveServerAchievement))] public sealed class SalveAchievement : HuntressSkillAchievement { } [RegisterAchievement("ToXHuntressKeineZweiteChance", "Skills.HuntressUnbound.ApexInstinkt", null, 0u, typeof(ApexServerAchievement))] public sealed class ApexAchievement : HuntressSkillAchievement { } public sealed class SalveServerAchievement : BaseServerAchievement { private readonly CriticalHitWindow window = new CriticalHitWindow(); private CharacterBody previousBody; private bool granted; public override void OnInstall() { ((BaseServerAchievement)this).OnInstall(); GlobalEventManager.onServerDamageDealt += Damage; Run.onRunStartGlobal += Reset; } public override void OnUninstall() { GlobalEventManager.onServerDamageDealt -= Damage; Run.onRunStartGlobal -= Reset; window.Clear(); previousBody = null; ((BaseServerAchievement)this).OnUninstall(); } private void Reset(Run run) { window.Clear(); previousBody = null; } private void Damage(DamageReport report) { //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) if (!granted) { CharacterBody currentBody = ((BaseServerAchievement)this).GetCurrentBody(); if ((Object)(object)currentBody != (Object)(object)previousBody) { window.Clear(); previousBody = currentBody; } if (HuntressUnlocks.Huntress(currentBody) && ((BaseServerAchievement)this).IsCurrentBody(report.attackerBody) && Object.op_Implicit((Object)(object)report.victimBody) && !(report.damageDealt <= 0f) && report.damageInfo.crit && report.attackerTeamIndex != report.victimTeamIndex && HuntressUnlocks.DirectSkill(report.damageInfo) && window.Add(Time.fixedTime)) { granted = true; ((BaseServerAchievement)this).Grant(); } } } } public sealed class ApexServerAchievement : BaseServerAchievement { private readonly ApexAttempt attempt = new ApexAttempt(); private readonly HashSet<CharacterMaster> bosses = new HashSet<CharacterMaster>(); private CharacterBody participant; private BossGroup group; private CombatSquad squad; private bool pending; private bool granted; private float finishedAt; public override void OnInstall() { ((BaseServerAchievement)this).OnInstall(); TeleporterInteraction.onTeleporterBeginChargingGlobal += Begin; BossGroup.onBossGroupDefeatedServer += Defeated; GlobalEventManager.onServerDamageDealt += Damage; RoR2Application.onUpdate += Update; Run.onRunStartGlobal += Reset; } public override void OnUninstall() { TeleporterInteraction.onTeleporterBeginChargingGlobal -= Begin; BossGroup.onBossGroupDefeatedServer -= Defeated; GlobalEventManager.onServerDamageDealt -= Damage; RoR2Application.onUpdate -= Update; Run.onRunStartGlobal -= Reset; Clear(); ((BaseServerAchievement)this).OnUninstall(); } private void Reset(Run run) { Clear(); } private void Clear() { if (Object.op_Implicit((Object)(object)participant)) { participant.onSkillActivatedServer -= Skill; } if (Object.op_Implicit((Object)(object)squad)) { squad.onMemberAddedServer -= Member; } participant = null; squad = null; group = null; bosses.Clear(); pending = false; attempt.Cancel(); } private void Member(CharacterMaster master) { if (Object.op_Implicit((Object)(object)master)) { bosses.Add(master); } } private void Begin(TeleporterInteraction teleporter) { if (granted) { return; } Clear(); CharacterBody currentBody = ((BaseServerAchievement)this).GetCurrentBody(); if (!HuntressUnlocks.Huntress(currentBody) || !HuntressUnlocks.TrueShot(currentBody) || !Object.op_Implicit((Object)(object)currentBody.healthComponent) || !currentBody.healthComponent.alive || !Object.op_Implicit((Object)(object)teleporter) || !Object.op_Implicit((Object)(object)teleporter.bossGroup)) { return; } participant = currentBody; group = teleporter.bossGroup; squad = group.combatSquad; if (!Object.op_Implicit((Object)(object)squad)) { Clear(); return; } foreach (CharacterMaster readOnlyMembers in squad.readOnlyMembersList) { Member(readOnlyMembers); } squad.onMemberAddedServer += Member; participant.onSkillActivatedServer += Skill; attempt.Start(); } private void Skill(GenericSkill skill) { if (attempt.Active && !pending && Object.op_Implicit((Object)(object)participant) && Object.op_Implicit((Object)(object)skill)) { SkillLocator skillLocator = participant.skillLocator; if (!((Object)(object)skill == (Object)(object)skillLocator.utility) && ((Object)(object)skill != (Object)(object)skillLocator.primary || !HuntressUnlocks.TrueShot(participant))) { attempt.Fail(); } } } private void Damage(DamageReport report) { //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Invalid comparison between Unknown and I4 //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Invalid comparison between Unknown and I4 if (!attempt.Active || (pending && Time.fixedTime > finishedAt) || report.damageInfo == null || report.damageInfo.rejected || report.damageDealt <= 0f) { return; } if ((Object)(object)report.victimBody == (Object)(object)participant) { attempt.Fail(); } if (!((Object)(object)report.attackerBody != (Object)(object)participant) && Object.op_Implicit((Object)(object)report.victimBody) && report.attackerTeamIndex != report.victimTeamIndex) { if ((int)report.damageInfo.damageType.damageSource == 64) { attempt.Fail(); } if (Object.op_Implicit((Object)(object)report.victimMaster) && (bosses.Contains(report.victimMaster) || (Object.op_Implicit((Object)(object)squad) && squad.ContainsMember(report.victimMaster))) && (int)report.damageInfo.damageType.damageSource == 1 && HuntressUnlocks.DirectSkill(report.damageInfo) && HuntressUnlocks.TrueShot(participant)) { attempt.RecordBossHit(); } } } private void Defeated(BossGroup defeated) { if (attempt.Active && (Object)(object)defeated == (Object)(object)group) { pending = true; finishedAt = Time.fixedTime; } } private void Update() { if (pending) { pending = false; bool sameLivingHuntress = Object.op_Implicit((Object)(object)participant) && (Object)(object)((BaseServerAchievement)this).GetCurrentBody() == (Object)(object)participant && HuntressUnlocks.Huntress(participant) && HuntressUnlocks.TrueShot(participant) && Object.op_Implicit((Object)(object)participant.healthComponent) && participant.healthComponent.alive; bool flag = attempt.Finish(sameLivingHuntress); Clear(); if (flag) { granted = true; ((BaseServerAchievement)this).Grant(); } } } } public static class HuntressLocale { private static readonly Dictionary<string, string> Text = new Dictionary<string, string> { { "Zwillingsbolzen", "Twin Bolts" }, { "Schieße abwechselnd mit beiden Handarmbrüsten. Jeder frei gezielte Bolzen verursacht <style=cIsDamage>70 % Schaden</style>. Grundintervall 0,2 Sekunden, skaliert mit Angriffstempo.\n\nProc-Koeffizient: <style=cIsDamage>1,0</style>.", "Fire both hand crossbows in turn. Each freely aimed bolt deals <style=cIsDamage>70% damage</style>. Base interval 0.2 seconds, scales with attack speed.\n\nProc coefficient: <style=cIsDamage>1.0</style>." }, { "Durchbohren", "Pierce" }, { "Pfeilsturm", "Arrow Storm" }, { "Salve", "Salvo" }, { "Rückzug", "Disengage" }, { "Abtauchen", "Vanish" }, { "Jägerhaken", "Hunter's Hook" }, { "Gleiten", "Glide" }, { "Flammengrab", "Flame Grave" }, { "Schattenrückruf", "Shadow Recall" }, { "Wilde Jagd", "Wild Hunt" }, { "Direkte Bolzentreffer hinterlassen bis zu <style=cIsUtility>10 Bolzenschatten pro Gegner für 15 Sekunden</style>. R zieht alle Schatten zu dir zurück. Jeder Rückflug trifft durchquerte Gegner einmal für <style=cIsDamage>150 % Schaden</style>; Wände stoppen ihn. Positioniere dich neu, um die Rückflugbahnen auszurichten.\n\nProc-Koeffizient: <style=cIsDamage>0,5 pro Rückflug</style>. Kritische Ursprungstreffer erzeugen kritische Rückflüge. Heilt dich um <style=cIsHealing>10 % des tatsächlich verursachten Rückrufschadens</style>. Benötigt mindestens einen Bolzenschatten.", "Direct bolt hits leave up to <style=cIsUtility>10 bolt shadows per enemy for 15 seconds</style>. R pulls every shadow back to you. Each return flight hits every enemy it passes once for <style=cIsDamage>150% damage</style>; walls stop it. Reposition to line up the return paths.\n\nProc coefficient: <style=cIsDamage>0.5 per return</style>. Critical origin hits create critical returns. Heals you for <style=cIsHealing>10% of the recall damage actually dealt</style>. Needs at least one bolt shadow." }, { "Übermut", "Hubris" }, { "Direkte Primärtreffer geben für <style=cIsUtility>3 Sekunden</style> einen Stapel Übermut, bis zu <style=cIsUtility>5 Stapel</style>. Jeder Stapel erhöht deinen verursachten und erlittenen Schaden um <style=cIsDamage>4 %</style>. Weitere direkte Primärtreffer erneuern die Dauer aller Stapel. Blutung und Item-Procs geben keine Stapel.", "Direct primary hits grant a stack of Hubris for <style=cIsUtility>3 seconds</style>, up to <style=cIsUtility>5 stacks</style>. Each stack increases the damage you deal and take by <style=cIsDamage>4%</style>. Further direct primary hits refresh all stacks. Bleed and item procs grant no stacks." }, { "Der verhüllte Jäger", "The Veiled Hunter" }, { "Zíro jagt mit zwei Handarmbrüsten und frei gezielten Bolzen.\n\n<style=cIsUtility>Rückzug</style> eröffnet mit einem Rückwärtssprung einen neuen Angriffswinkel und betäubt Gegner am Absprungort. Schalte Tarnung und Jägerhaken als alternative Bewegung frei. Direkte Primärtreffer stapeln Übermut: mehr verursachter Schaden, aber auch mehr erlittener Schaden.\n\n<style=cIsDamage>Durchbohren</style> durchschlägt Gegner mit beiden Waffen und verursacht Blutung. <style=cIsDamage>Flammengrab</style> lässt die Bolzenschatten in Gegnern in Flammen aufgehen.\n\nSchalte <style=cIsDamage>Pfeilsturm</style>, <style=cIsDamage>Schattenrückruf</style> und <style=cIsDamage>Wilde Jagd</style> als alternative Fähigkeiten frei.", "Zíro hunts with two hand crossbows and freely aimed bolts.\n\n<style=cIsUtility>Disengage</style> opens a new angle with a back leap and stuns enemies where you jumped off. Unlock Vanish and Hunter's Hook as alternative movement. Direct primary hits stack Hubris: more damage dealt, but also more damage taken.\n\n<style=cIsDamage>Pierce</style> punches through enemies with both weapons and causes bleed. <style=cIsDamage>Flame Grave</style> sets the bolt shadows inside enemies ablaze.\n\nUnlock <style=cIsDamage>Arrow Storm</style>, <style=cIsDamage>Shadow Recall</style> and <style=cIsDamage>Wild Hunt</style> as alternative skills." }, { "…und so verschwand er, ehe sein Name fiel.", "...and so he vanished before his name was spoken." }, { "…und seine Spur verlor sich im Schatten.", "...and his trail faded into the shadows." }, { "Nachtjäger", "Night Hunter" }, { "Tiefsee", "Deep Sea" }, { "Waldläufer", "Ranger" }, { "Wüstenfuchs", "Desert Fox" }, { "Aschenjäger", "Ash Hunter" }, { "Seraph", "Seraph" }, { "Der Mantel trägt die Spuren vieler Jagden. Unter der Kapuze wartet kein Versprechen, nur Geduld. Zwei Armbrüste, gespannte Sehnen und ein Name, den niemand laut ausspricht: Zíro.", "The cloak bears the marks of many hunts. Under the hood waits no promise, only patience. Two crossbows, drawn strings and a name no one says out loud: Zíro." }, { "Töte mit einem beliebigen Überlebenden Mithrix auf Albtraum mit maximalem Karma.", "Kill Mithrix on Nightmare with maximum Karma, as any survivor." }, { "Zíro: Luftjagd", "Zíro: Sky Hunt" }, { "Reiße als Zíro mit einem einzigen Flammengrab oder Schattenrückruf 100 Bolzenschatten gleichzeitig aus Gegnern.", "As Zíro, tear 100 bolt shadows out of enemies at once with a single Flame Grave or Shadow Recall." }, { "Zíro: Jagdrausch", "Zíro: Hunting Frenzy" }, { "Lande als Zíro innerhalb von 10 Sekunden 20 kritische Treffer mit deinen eigenen Fähigkeiten. Einzelne Bolzen zählen; Item-Procs und Schaden über Zeit zählen nicht.", "As Zíro, land 20 critical hits with your own skills within 10 seconds. Single bolts count; item procs and damage over time don't." }, { "Zíro: Keine zweite Chance", "Zíro: No Second Chance" }, { "Besiege als Zíro die Teleporterboss-Gruppe, ohne vom Aktivieren des Teleporters bis zum Boss-Sieg Schaden zu nehmen. Verwende nur Zwillingsbolzen als Schadensfähigkeit und triff damit mindestens einen Teleporterboss. Abtauchen, Jägerhaken und passive Items sind erlaubt; Rückzug, andere Schadensfähigkeiten und offensiver Ausrüstungsschaden machen den Versuch ungültig.", "As Zíro, defeat the teleporter boss group without taking damage from activating the teleporter until the bosses fall. Use only Twin Bolts as your damage skill and hit at least one teleporter boss with it. Vanish, Hunter's Hook and passive items are allowed; Disengage, other damage skills and offensive equipment damage void the attempt." }, { "Zíro: Aus dem Schatten", "Zíro: Out of the Shadows" }, { "Triff als Zíro einen einzelnen Gegner innerhalb von 3 Sekunden mit 40 Bolzen. Item-Procs, Schaden über Zeit und Bolzenschatten zählen nicht.", "As Zíro, hit a single enemy with 40 bolts within 3 seconds. Item procs, damage over time and bolt shadows don't count." }, { "Zíro: Gnadenstoß", "Zíro: Coup de Grâce" }, { "Gib als Zíro in einem Run 5 Bossen den Todesstoß mit Flammengrab (Feuerstoß oder sein Brand), das mindestens 10 Bolzenschatten aus dem jeweiligen Boss gerissen hat.", "As Zíro, finish off 5 bosses in one run with a Flame Grave (burst or its burn) that tore at least 10 bolt shadows out of that boss." }, { "Zíro: Taktischer Rückzug", "Zíro: Tactical Retreat" }, { "Töte als Zíro 5 Gegner in einem einzigen Rückzug-Sprung, bevor du wieder landest.", "As Zíro, kill 5 enemies during a single Disengage leap, before you land." }, { "Zíro: Wegbereiter", "Zíro: Trailblazer" }, { "Lege als Zíro in einem Run insgesamt 100 km in der Luft zurück, ohne den Boden zu berühren. Jede Strecke zählt, solange du nicht stehst; Rückzug und Abtauchen zählen mit.", "As Zíro, travel a total of 100 km through the air in one run. Every stretch counts as long as you're not standing; Disengage and Vanish count too." }, { "Zíro: Meisterschaft", "Zíro: Mastery" }, { "Töte als Zíro Mithrix auf Albtraum.", "As Zíro, kill Mithrix on Nightmare." }, { "Zíro: Seraph", "Zíro: Seraph" }, { "Töte als Zíro Mithrix auf Albtraum mit 16 simulierten Spielern, maximalem Karma und ohne Artefakte.", "As Zíro, kill Mithrix on Nightmare with 16 simulated players, maximum Karma and no artifacts." }, { "Arkaner Impuls", "Arcane Impulse" }, { "Klingenmeute", "Blade Pack" }, { "Kreuzhieb", "Cross Slash" }, { "Ansturm", "Onslaught" }, { "Klingenhammer", "Blade Hammer" }, { "Bannkreis", "Binding Circle" }, { "Spiegelparade", "Mirror Parry" }, { "Klingentausch", "Blade Swap" }, { "Schwertsurfen", "Sword Surfing" }, { "Arkanes Echo", "Arcane Echo" }, { "Tausend Klingen", "Thousand Blades" }, { "Klingengericht", "Blade Judgement" }, { "Tarnfeld", "Veil Field" }, { "Klingenwacht", "Blade Ward" }, { "Die Klingensängerin", "The Blade Singer" }, { "Violetter Einklang", "Violet Resonance" }, { "Nachbild", "Afterimage" }, { "Klingensängerin", "Blade Singer" }, { "Frostklinge", "Frost Blade" }, { "Kirschblüte", "Cherry Blossom" }, { "Smaragd", "Emerald" }, { "Goldklinge", "Gold Blade" }, { "Leerenwandlerin", "Voidwalker" }, { "Unbegrenzte violette Arkanbolzen: <style=cIsDamage>120 % Schaden</style>, Proc 1,0. Direkte Treffer geben <style=cIsUtility>Einklang</style> (bis 8 Stapel): je Stapel <style=cIsDamage>+3 % Angriffstempo</style> und <style=cIsUtility>+8 % Größe</style> für alle deine Fähigkeiten (bis +64 %). Nach 3 Sekunden ohne Treffer verfällt alle 0,5 Sekunden ein Stapel.", "Unlimited violet arcane bolts: <style=cIsDamage>120% damage</style>, proc 1.0. Direct hits grant <style=cIsUtility>Resonance</style> (up to 8 stacks): per stack <style=cIsDamage>+3% attack speed</style> and <style=cIsUtility>+8% size</style> for all your skills (up to +64%). After 3 seconds without a hit, one stack fades every 0.5 seconds." }, { "Unbegrenzte violette Arkanbolzen mit Feuerball-Optik: <style=cIsDamage>120 % Schaden</style>, Proc 1,0. Kein Brennen. 0,6 Sekunden Wurfintervall vor Angriffstempo; keine Ladungen oder Nachladepause.", "Unlimited violet arcane bolts that look like fireballs: <style=cIsDamage>120% damage</style>, proc 1.0. No burn. 0.6 second throw interval before attack speed; no charges or reload." }, { "Halten: Schicke eines deiner fünf Schwerter an den Zielort. Dort sucht es sich den nächsten Gegner im Umkreis von 18 Metern und schneidet immer wieder aus wechselnden Richtungen durch ihn hindurch: <style=cIsDamage>130 % Schaden pro Schnitt</style>, Proc 0,6. Es verfolgt fliehende Gegner, sucht sich nach einem Kill den nächsten und kehrt nach 6,5 Sekunden zurück. Jedes Schwert hat ab seiner Rückkehr eine eigene Abklingzeit von <style=cIsUtility>5 Sekunden</style>. Erzeugt keinen Einklang.", "Hold: send one of your five swords to the target spot. It picks the nearest enemy within 18 meters and cuts through it again and again from changing directions: <style=cIsDamage>130% damage per cut</style>, proc 0.6. It chases fleeing enemies, picks the next one after a kill and returns after 6.5 seconds. Each sword has its own <style=cIsUtility>5 second</style> cooldown once it returns. Builds no Resonance." }, { "Die äußeren Schwerter schneiden immer abwechselnd vor dir: links nach rechts, rechts nach links, und so weiter. Jeder Hieb trifft alles im Bogen vor dir (5,5 m, wächst mit Einklang) für <style=cIsDamage>170 % Schaden</style>, jeder dritte für <style=cIsDamage>260 % Schaden</style> mit etwas mehr Reichweite. Treffer geben <style=cIsUtility>Schwung</style>: +10 % Angriffs- und Bewegungstempo für 2 Sekunden, bis zu 5 Stapel.", "The outer swords cut in front of you in turn: left to right, right to left, and so on. Each slash hits everything in the arc in front of you (5.5 m, grows with Resonance) for <style=cIsDamage>170% damage</style>, every third for <style=cIsDamage>260% damage</style> with a bit more reach. Hits grant <style=cIsUtility>Momentum</style>: +10% attack and movement speed for 2 seconds, up to 5 stacks." }, { "Deine Schwerter schießen nacheinander in einem schmalen Fächer in Blickrichtung (bis 70 m). Jedes bleibt im ersten Gegner stecken, auch in der Luft, sonst im Boden oder in der Wand: <style=cIsDamage>100 % Schaden</style> beim Einschlag, nach 0,45 Sekunden explodiert es für <style=cIsDamage>220 % Schaden</style> im Umkreis von 3,5 m (wächst mit Einklang). 7 Sekunden Abklingzeit.", "Your swords shoot out one after another in a narrow fan where you look (up to 70 m). Each one sticks in the first enemy, even in the air, otherwise in the ground or a wall: <style=cIsDamage>100% damage</style> on impact, then after 0.45 seconds it explodes for <style=cIsDamage>220% damage</style> in a 3.5 m radius (grows with Resonance). 7 second cooldown." }, { "Deine fünf Schwerter heben sich nacheinander über dich und schlagen abwechselnd links und rechts vor dir in den Boden, jedes ein Stück weiter vorne: je <style=cIsDamage>200 % Schaden</style> im Umkreis von 3 m (wächst mit Einklang). 6 Sekunden Abklingzeit.", "Your five swords rise above you one after another and slam into the ground in front of you, alternating left and right, each a little further ahead: <style=cIsDamage>200% damage</style> each in a 3 m radius (grows with Resonance). 6 second cooldown." }, { "Wirf eine Arkankugel an den Zielort. Deine Schwerter kreisen 3 Sekunden um sie, ziehen Gegner im Umkreis von 6 m heran und schneiden sie (<style=cIsDamage>80 % alle 0,5 s</style>), dann bricht der Kreis auf: <style=cIsDamage>300 % Schaden</style>. 8 Sekunden Abklingzeit.", "Throw an arcane orb to the target spot. Your swords circle it for 3 seconds, pull in enemies within 6 m and cut them (<style=cIsDamage>80% every 0.5 s</style>), then the circle bursts: <style=cIsDamage>300% damage</style>. 8 second cooldown." }, { "Kreuze für 0,4 Sekunden die beiden äußeren Schwerter vor dir. Wird ein Treffer geblockt, schlagen alle fünf Schwerter auf den Angreifer zurück: <style=cIsDamage>5 × 200 % Schaden</style>. Ohne Treffer schneidest du am Ende nach vorn (200 %). 5 Sekunden Abklingzeit.", "Cross the two outer swords in front of you for 0.4 seconds. If a hit is blocked, all five swords strike back at the attacker: <style=cIsDamage>5 × 200% damage</style>. Without a hit you cut forward at the end (200%). 5 second cooldown." }, { "Wirf ein Schwert in Blickrichtung (bis 40 m). Es bleibt im ersten Gegner oder in der Wand stecken. Drücke innerhalb von 4 Sekunden erneut: Du tauschst den Platz mit ihm und schneidest alles im Umkreis von 5 m (<style=cIsDamage>300 % Schaden</style>). 6 Sekunden Abklingzeit ab dem Wurf.", "Throw a sword where you look (up to 40 m). It sticks in the first enemy or wall. Press again within 4 seconds: you swap places with it and cut everything within 5 m (<style=cIsDamage>300% damage</style>). 6 second cooldown from the throw." }, { "Umschalten: Surfe auf einem Schwert knapp über dem Boden mit <style=cIsUtility>+70 % Bewegungstempo</style>. Das Schwert ist rutschig: Kurven brauchen Zeit, Tempo baut sich langsam auf und ohne Eingabe bremst es ab. Beim Surfen ist nur M1 nutzbar. Kontakt verursacht <style=cIsDamage>120 % Schaden</style>, Proc 0,2; dasselbe Ziel höchstens alle 0,5 Sekunden. <style=cIsUtility>Springen hält dich in der Luft</style>: Jeder Sprung gibt Flugzeit. Solange sie reicht, gleitest du und steigst mit gehaltenem Sprung (bis 7 m, mehr mit Extrasprüngen); danach fällst du bis zur Landung. Du bleibst verwundbar. Nach Absteigen 3 Sekunden Abklingzeit.", "Toggle: surf on a sword just above the ground with <style=cIsUtility>+70% movement speed</style>. The sword is slippery: turns take time, speed builds up slowly and it slows down without input. Only M1 can be used while surfing. Contact deals <style=cIsDamage>120% damage</style>, proc 0.2; the same target at most every 0.5 seconds. <style=cIsUtility>Jumping keeps you airborne</style>: every jump grants flight time. While it lasts you glide and rise by holding jump (up to 7 m, more with extra jumps); then you fall until you land. You stay vulnerable. 3 second cooldown after dismounting." }, { "Hinterlasse an deiner Stelle für 4 Sekunden ein arkanes Echo und erhalte 2 Sekunden lang <style=cIsUtility>+60 % Bewegungstempo</style>. Das Echo wiederholt deine M1-Angriffe: Jeder Arkane Impuls und jeder Kreuzhieb kommt vom Echo noch einmal mit <style=cIsDamage>75 % Schaden</style>, auf dein Ziel gerichtet. Mehrere Echos können gleichzeitig stehen. 8 Sekunden Abklingzeit.", "Leave an arcane echo where you stand for 4 seconds and gain <style=cIsUtility>+60% movement speed</style> for 2 seconds. The echo repeats your M1 attacks: every Arcane Impulse and every Cross Slash comes again from the echo with <style=cIsDamage>75% damage</style>, aimed at your target. Several echoes can stand at once. 8 second cooldown." }, { "Halten: Zielgebiet markieren. Loslassen: Ein riesiges Schwert kracht herab, vier Klingen schießen über Kreuz hinterher, dann bricht alles auf: <style=cIsDamage>1400 % Flächenschaden</style>, Proc 1,0, Radius 9,75 Meter, zieht leichte Gegner zur Mitte. Der Boden brennt danach 4 Sekunden violett (<style=cIsDamage>50 % alle 0,5 Sekunden</style>). 30 Sekunden Abklingzeit.", "Hold: mark the target area. Release: a giant sword crashes down, four blades shoot in crosswise after it, then everything bursts: <style=cIsDamage>1400% area damage</style>, proc 1.0, 9.75 meter radius, pulls light enemies to the center. The ground then burns violet for 4 seconds (<style=cIsDamage>50% every 0.5 seconds</style>). 30 second cooldown." }, { "Halten: Zielgebiet markieren. Loslassen: Errichte für 10 Sekunden ein Tarnfeld mit 8 Metern Grundradius, vergrößert durch Einklang (bis +64 %). Verbündete darin sind unsichtbar. Angreifen deckt auf und verhindert für 1 Sekunde erneute Feldtarnung. Nach Verlassen hält die Tarnung 1,5 Sekunden nach. 30 Sekunden Abklingzeit.", "Hold: mark the target area. Release: raise a veil field for 10 seconds with an 8 meter base radius, enlarged by Resonance (up to +64%). Allies inside are invisible. Attacking reveals you and prevents field cloaking for 1 second. After leaving, the cloak lingers for 1.5 seconds. 30 second cooldown." }, { "Eines deiner schwebenden Schwerter wacht über dich: Es <style=cIsUtility>fängt den nächsten direkten Treffer vollständig ab</style>. Danach braucht es <style=cIsUtility>10 Sekunden</style>, bis es wieder bereit ist. Schaden über Zeit wird nicht abgefangen.", "One of your floating swords watches over you: it <style=cIsUtility>fully blocks the next direct hit</style>. Then it needs <style=cIsUtility>10 seconds</style> to be ready again. Damage over time is not blocked." }, { "Synth führt fünf schwebende Schwerter und wirft violette Arkanbolzen.\n\nTreffer mit <style=cIsDamage>Arkaner Impuls</style> bauen Einklang auf und machen all ihre Fähigkeiten größer. Die <style=cIsUtility>Klingenmeute</style> schickt die Schwerter stattdessen selbst auf die Jagd.\n\n<style=cIsUtility>Klingenwacht</style> fängt alle 10 Sekunden einen Treffer ab, aber sie hält wenig aus: Bleib in Bewegung.\n\n<style=cIsDamage>Klingengericht</style> und <style=cIsDamage>Tausend Klingen</style> sind ihre großen Finisher.", "Synth wields five floating swords and throws violet arcane bolts.\n\nHits with <style=cIsDamage>Arcane Impulse</style> build Resonance and make all her skills bigger. <style=cIsUtility>Blade Pack</style> sends the swords out to hunt on their own instead.\n\n<style=cIsUtility>Blade Ward</style> blocks a hit every 10 seconds, but she can't take much: keep moving.\n\n<style=cIsDamage>Blade Judgement</style> and <style=cIsDamage>Thousand Blades</style> are her big finishers." }, { "…und ihre Melodie klang zwischen den Sternen weiter.", "...and her melody kept ringing between the stars." }, { "…und der letzte Ton verklang.", "...and the last note faded." }, { "Vier Klingen schweben im Takt ihrer Hände.", "Blades float to the rhythm of her hands." }, { "Synth: Einklang halten", "Synth: Hold the Resonance" }, { "Lande als Synth in einem Run 200 direkte Primärtreffer bei vollem Einklang. Item-Procs und Nachbildungen zählen nicht.", "As Synth, land 200 direct primary hits at full Resonance in one run. Item procs and afterimages don't count." }, { "Synth: Klingen in Bewegung", "Synth: Blades in Motion" }, { "Besiege als Synth in einem Run 20 Gegner mit Klingenwirbel.", "As Synth, defeat 20 enemies with Blade Whirl in one run." }, { "Synth: Platzwechsel", "Synth: Change of Place" }, { "Töte als Synth in einem Run 30 Gegner mit Klingentausch.", "As Synth, kill 30 enemies with Blade Swap in one run." }, { "Synth: Weitgereist", "Synth: Well Traveled" }, { "Lege als Synth in einem einzigen Run 5 Kilometer zurück.", "As Synth, travel 5 kilometers in a single run." }, { "Synth: Im Einklang", "Synth: In Resonance" }, { "Lande als Synth in einem Run 200 direkte Treffer mit Arkaner Impuls bei vollem Einklang (8 Stapel).", "As Synth, land 200 direct Arcane Impulse hits at full Resonance (8 stacks) in one run." }, { "Synth: Bannbrecherin", "Synth: Circle Breaker" }, { "Töte als Synth 4 Gegner gleichzeitig mit dem Aufbrechen eines Bannkreises.", "As Synth, kill 4 enemies at once with the burst of a Binding Circle." }, { "Synth: Unberührbar", "Synth: Untouchable" }, { "Lass als Synth die Klingenwacht 5-mal hintereinander einen Treffer abfangen, ohne dazwischen Schaden zu nehmen.", "As Synth, let Blade Ward block a hit 5 times in a row without taking damage in between." }, { "Synth: Sternschnuppe", "Synth: Shooting Star" }, { "Töte als Synth 5 Gegner mit einem einzigen Ansturm.", "As Synth, kill 5 enemies with a single Onslaught." }, { "Synth: Schwerelos", "Synth: Weightless" }, { "Bleibe als Synth 60 Sekunden am Stück in der Luft, ohne den Boden zu berühren.", "As Synth, stay in the air for 60 seconds straight without touching the ground." }, { "Synth: Tausend Schnitte", "Synth: A Thousand Cuts" }, { "Töte als Synth in einem Run 5 Bosse mit Tausend Klingen.", "As Synth, kill 5 bosses with Thousand Blades in one run." }, { "Synth: Meisterschaft", "Synth: Mastery" }, { "Töte als Synth Mithrix auf Albtraum.", "As Synth, kill Mithrix on N