Decompiled source of Flagellant Trainer v1.1.0

plugins/enough.dll

Decompiled 9 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("OutwardModTemplate")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OutwardModTemplate")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c5450fe0-edcf-483f-b9ea-4b1ef9d36da7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace enough;

[BepInPlugin("NNNP.enough", "notEnough", "1.0.0")]
public class notEnough : BaseUnityPlugin
{
	[HarmonyPatch(typeof(Character), "ReceiveHit", new Type[]
	{
		typeof(Object),
		typeof(DamageList),
		typeof(Vector3),
		typeof(Vector3),
		typeof(float),
		typeof(float),
		typeof(Character),
		typeof(float),
		typeof(bool)
	})]
	public static class CharacterPatches
	{
		[HarmonyPatch("ReceiveHit")]
		[HarmonyPostfix]
		public static void Character_ReceiveHit_Postfix(Character __instance, ref DamageList _damage, ref DamageList __state)
		{
			if (!((CharacterKnowledge)__instance.Inventory.SkillKnowledge).IsItemLearned(-55004))
			{
				return;
			}
			DamageList val = _damage.Clone();
			for (int i = 0; i < val.Count; i++)
			{
				if (val != null && val.Contains((Types)5))
				{
					__instance.StatusEffectMngr.AddStatusEffectBuildUp("Burn", 60f, __instance);
				}
				if (val != null && val.Contains((Types)2))
				{
					__instance.StatusEffectMngr.AddStatusEffectBuildUp("Curse", 60f, __instance);
				}
				if (val != null && val.Contains((Types)3))
				{
					__instance.StatusEffectMngr.AddStatusEffectBuildUp("Doom", 60f, __instance);
				}
				if (val != null && val.Contains((Types)1))
				{
					__instance.StatusEffectMngr.AddStatusEffectBuildUp("Haunted", 60f, __instance);
				}
				if (val != null && val.Contains((Types)4))
				{
					__instance.StatusEffectMngr.AddStatusEffectBuildUp("Chill", 60f, __instance);
				}
			}
		}
	}

	public const string GUID = "NNNP.enough";

	public const string NAME = "notEnough";

	public const string VERSION = "1.0.0";

	internal static ManualLogSource Log;

	public static ConfigEntry<bool> ExampleConfig;

	internal void Awake()
	{
		//IL_0021: Unknown result type (might be due to invalid IL or missing references)
		//IL_0027: Expected O, but got Unknown
		Log = ((BaseUnityPlugin)this).Logger;
		Log.LogMessage((object)"Hello Banana from notEnough 1.0.0!");
		Harmony val = new Harmony("com.NNNP.Trasmute");
		val.PatchAll(typeof(CharacterPatches));
	}

	internal void Update()
	{
	}
}

plugins/FlaVFX2.dll

Decompiled 9 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("OutwardModTemplate")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OutwardModTemplate")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c5450fe0-edcf-483f-b9ea-4b1ef9d36da7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace GregVX2;

[BepInPlugin("NNNP.Gregvx", "gregvx", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(Weapon))]
	public static class TrainerPatches
	{
		[HarmonyPatch("OnEquip")]
		[HarmonyPostfix]
		public static void AwakePostfix(Weapon __instance, Character _char)
		{
			if ((Object)(object)__instance != (Object)null && ((Item)__instance).ItemID == 2020200 && _char.m_name == "Gregory")
			{
				((Component)((Component)_char).transform.Find("StatusManager")).GetComponent<StatusEffectManager>().AddStatusEffect("HexesC");
			}
		}
	}

	public const string GUID = "NNNP.Gregvx";

	public const string NAME = "gregvx";

	public const string VERSION = "1.0.0";

	internal static ManualLogSource Log;

	public static ConfigEntry<bool> ExampleConfig;

	internal void Awake()
	{
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		Log = ((BaseUnityPlugin)this).Logger;
		Log.LogMessage((object)"Hello world from gregvx 1.0.0!");
		ExampleConfig = ((BaseUnityPlugin)this).Config.Bind<bool>("ExampleCategory", "ExampleSetting", false, "This is an example setting.");
		new Harmony("NNNP.Gregvx").PatchAll();
	}
}

plugins/rptwk.dll

Decompiled 9 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("OutwardModTemplate")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OutwardModTemplate")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c5450fe0-edcf-483f-b9ea-4b1ef9d36da7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace raptupdate;

[BepInPlugin("raptupdate.nnnp", "UpdtRapt", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(StatusEffectManager), "ProcessUpdate", new Type[] { })]
	public class StatusEffectManager_thing
	{
		[HarmonyPostfix]
		public static void Postfix(StatusEffectManager __instance)
		{
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0058: Expected O, but got Unknown
			//IL_006a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Expected O, but got Unknown
			//IL_0086: Unknown result type (might be due to invalid IL or missing references)
			//IL_0090: Expected O, but got Unknown
			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ad: Expected O, but got Unknown
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bc: Unknown result type (might be due to invalid IL or missing references)
			Character character = __instance.m_character;
			if (!((CharacterKnowledge)character.Inventory.SkillKnowledge).IsItemLearned(-55006))
			{
				return;
			}
			PlayerCharacterStats component = ((Component)((Component)__instance).transform.parent).GetComponent<PlayerCharacterStats>();
			StatStack val = ((CharacterStats)component).m_impactResistance.AddRawStack(new StatStack("ires2", 0f, (Tag[])null));
			StatStack val2 = ((CharacterStats)component).m_resistanceModifiers.AddRawStack(new StatStack("dres2", 0f, (Tag[])null));
			StatStack val3 = ((CharacterStats)component).m_damageModifiers.AddMultiplierStack(new StatStack("dup2", 0f, (Tag[])null));
			StatStack val4 = ((CharacterStats)component).m_impactModifier.AddMultiplierStack(new StatStack("iup2", 0f, (Tag[])null));
			foreach (StatusEffect status in __instance.Statuses)
			{
				foreach (Tag inheritedTag in status.InheritedTags)
				{
					if (inheritedTag.TagName == "Hex")
					{
						val.EffectiveValue += 8.2f;
						val2.EffectiveValue += 8.2f;
						val3.EffectiveValue += 0.1f;
						val4.EffectiveValue += 0.1f;
					}
				}
			}
			foreach (StatusEffect status2 in __instance.Statuses)
			{
				foreach (Tag inheritedTag2 in status2.InheritedTags)
				{
					if ((inheritedTag2.TagName == "Hex" && status2.HasEnded) || (Object)(object)status2 == (Object)null)
					{
						val.EffectiveValue -= 8.2f;
						val2.EffectiveValue -= 8.2f;
						val3.EffectiveValue -= 0.1f;
						val4.EffectiveValue -= 0.1f;
					}
				}
			}
		}
	}

	public const string GUID = "raptupdate.nnnp";

	public const string NAME = "UpdtRapt";

	public const string VERSION = "1.0.0";

	internal static ManualLogSource Log;

	public static ConfigEntry<bool> ExampleConfig;

	internal void Awake()
	{
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		Log = ((BaseUnityPlugin)this).Logger;
		Log.LogMessage((object)"Hello Ananas from UpdtRapt 1.0.0!");
		ExampleConfig = ((BaseUnityPlugin)this).Config.Bind<bool>("ExampleCategory", "ExampleSetting", false, "This is an example setting.");
		new Harmony("raptupdate.nnnp").PatchAll();
	}
}

plugins/soku.dll

Decompiled 9 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using SideLoader;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("OutwardModTemplate")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OutwardModTemplate")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c5450fe0-edcf-483f-b9ea-4b1ef9d36da7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace sokushin;

[BepInPlugin("NNNP.sk", "sk", "1.0.0")]
public class sokus : BaseUnityPlugin
{
	public const string GUID = "NNNP.sk";

	public const string NAME = "sk";

	public const string VERSION = "1.0.0";

	internal static ManualLogSource Log;

	public static ConfigEntry<bool> ExampleConfig;

	internal void Awake()
	{
		Log = ((BaseUnityPlugin)this).Logger;
		Log.LogMessage((object)"Hello watermelon from sk 1.0.0!");
		SL.OnPacksLoaded += OnPacksLoadedSetup;
	}

	private void OnPacksLoadedSetup()
	{
		//IL_004a: Unknown result type (might be due to invalid IL or missing references)
		//IL_004f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0054: Unknown result type (might be due to invalid IL or missing references)
		//IL_005b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0066: Unknown result type (might be due to invalid IL or missing references)
		//IL_006b: 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_0078: Expected O, but got Unknown
		//IL_0078: Unknown result type (might be due to invalid IL or missing references)
		//IL_007d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0084: Unknown result type (might be due to invalid IL or missing references)
		//IL_008f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0094: Unknown result type (might be due to invalid IL or missing references)
		//IL_0099: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a2: Expected O, but got Unknown
		Log.LogMessage((object)"sk onpackloadedstup actually loaded");
		Transform transform = ((Component)ResourcesPrefabManager.Instance.GetItemPrefab(-55007)).transform;
		Transform effectsTrans = transform.Find("PassiveHungry");
		Transform effectsTrans2 = transform.Find("PassiveStarve");
		((Component)((Component)transform).transform).GetComponent<NeedPassiveSkill>().ListenedNeed = (Need)0;
		NeedLevelEffects value = new NeedLevelEffects
		{
			EffectsTrans = effectsTrans,
			NeedThreshold = new Vector2(0f, 50f),
			m_active = false
		};
		NeedLevelEffects value2 = new NeedLevelEffects
		{
			EffectsTrans = effectsTrans2,
			NeedThreshold = new Vector2(50f, 75f),
			m_active = false
		};
		NeedLevelEffects[] needEffects = ((Component)((Component)transform).transform).GetComponent<NeedPassiveSkill>().NeedEffects;
		needEffects.SetValue(value, 0);
		needEffects.SetValue(value2, 1);
	}
}

plugins/WDoSkin.dll

Decompiled 9 months ago
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using SideLoader;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("OutwardModTemplate")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OutwardModTemplate")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c5450fe0-edcf-483f-b9ea-4b1ef9d36da7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace SkinHa;

[BepInPlugin("NNNP.SkiHa", "SkinHarmony", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	public const string GUID = "NNNP.SkiHa";

	public const string NAME = "SkinHarmony";

	public const string VERSION = "1.0.0";

	internal static ManualLogSource Log;

	public static ConfigEntry<bool> ExampleConfig;

	internal void Awake()
	{
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		Log = ((BaseUnityPlugin)this).Logger;
		Log.LogMessage((object)"Hello world from SkinHarmony 1.0.0!");
		ExampleConfig = ((BaseUnityPlugin)this).Config.Bind<bool>("ExampleCategory", "ExampleSetting", false, "This is an example setting.");
		new Harmony("NNNP.SkiHa").PatchAll();
		SL.OnPacksLoaded += OnPacksLoadedSetup;
	}

	private void OnPacksLoadedSetup()
	{
		//IL_0071: Unknown result type (might be due to invalid IL or missing references)
		//IL_0077: Expected O, but got Unknown
		Transform val = ((Component)ResourcesPrefabManager.Instance.GetItemPrefab(-55005)).transform.Find("Effects");
		Transform val2 = ((Component)((Component)val).GetComponent<ShootBlast>().BaseBlast).transform.Find("Effects");
		WD wD = ((Component)((Component)val2).transform).gameObject.AddComponent<WD>();
		((WeaponDamage)wD).WeaponDamageMult = 0.2f;
		((WeaponDamage)wD).WeaponKnockbackMult = -1f;
		((PunctualDamage)wD).Damages = (DamageType[])(object)new DamageType[1]
		{
			new DamageType((Types)0, 0f)
		};
		((Effect)wD).SyncType = (SyncTypes)2;
	}
}
public class WD : WeaponDamage
{
	public override void ActivateLocally(Character _targetCharacter, object[] _infos)
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		//IL_000a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0013: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0209: Unknown result type (might be due to invalid IL or missing references)
		((PunctualDamage)this).m_startPos = (Vector3)_infos[0];
		((PunctualDamage)this).m_dir = (Vector3)_infos[1];
		if (!((Object)(object)_targetCharacter != (Object)null) || _targetCharacter.IsDead || _targetCharacter.IsUndyingDead)
		{
			return;
		}
		((PunctualDamage)this).tmpTags.Clear();
		((PunctualDamage)this).m_tempList.Clear();
		((PunctualDamage)this).m_knockback = 0f;
		if (((PunctualDamage)this).DamageAmplifiedByOwner && Object.op_Implicit((Object)(object)((Effect)this).SourceCharacter) && Object.op_Implicit((Object)(object)((Effect)this).SourceCharacter.Stats))
		{
			if (Object.op_Implicit((Object)(object)((Effect)this).m_parentItem))
			{
				((PunctualDamage)this).tmpTags.AddRange(((Effect)this).m_parentItem.Tags);
			}
			if ((Object)(object)((Effect)this).m_parentItem != (Object)(object)((Effect)this).SourceSynchronizer)
			{
				EffectSynchronizer sourceSynchronizer = ((Effect)this).SourceSynchronizer;
				Item val = (Item)(object)((sourceSynchronizer is Item) ? sourceSynchronizer : null);
				if ((Object)(object)val != (Object)null)
				{
					((PunctualDamage)this).tmpTags.AddRange(val.Tags);
				}
			}
			EffectSynchronizer parentSynchronizer = ((Effect)this).ParentSynchronizer;
			StatusEffect val2 = (StatusEffect)(object)((parentSynchronizer is StatusEffect) ? parentSynchronizer : null);
			if ((Object)(object)val2 != (Object)null)
			{
				((PunctualDamage)this).tmpTags.AddRange(val2.InheritedTags);
			}
			((Effect)this).SourceCharacter.Stats.GetAmplifiedDamage((IList<Tag>)((PunctualDamage)this).tmpTags, ref ((PunctualDamage)this).m_tempList);
		}
		Weapon val3 = ((PunctualDamage)this).BuildDamage(_targetCharacter, ref ((PunctualDamage)this).m_tempList, ref ((PunctualDamage)this).m_knockback);
		if ((Object)(object)val3 != (Object)null)
		{
			((PunctualDamage)this).tmpTags.AddRange(((Item)val3).Tags);
			if ((Object)(object)((Effect)this).OwnerCharacter.LeftHandWeapon != (Object)null)
			{
				((WeaponDamage)this).BuildDamage(((EffectSynchronizer)base.m_attackSkill).OwnerCharacter.LeftHandWeapon, _targetCharacter, true, ref ((PunctualDamage)this).m_tempList, ref ((PunctualDamage)this).m_knockback);
			}
		}
		for (int i = 0; i < base.m_attackSkill.RequiredWeaponTypes.Count; i++)
		{
			if ((Object)(object)((EffectSynchronizer)base.m_attackSkill).OwnerCharacter.CurrentWeapon != (Object)null && ((EffectSynchronizer)base.m_attackSkill).OwnerCharacter.CurrentWeapon.Type == base.m_attackSkill.RequiredWeaponTypes[i])
			{
				((WeaponDamage)this).BuildDamage(((EffectSynchronizer)base.m_attackSkill).OwnerCharacter.CurrentWeapon, _targetCharacter, true, ref ((PunctualDamage)this).m_tempList, ref ((PunctualDamage)this).m_knockback);
			}
		}
		DamageList val4 = ((PunctualDamage)this).DealHit(_targetCharacter);
		val3.ProcessDamageDealt(val4);
	}
}