using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using On.RoR2.Skills;
using R2API;
using RoR2.Skills;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyCompany("RuModROR2")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("RuModROR2")]
[assembly: AssemblyTitle("RuModROR2")]
[assembly: AssemblyVersion("1.0.0.0")]
[BepInPlugin("com.example.rumodror2", "RuModROR2", "1.0.0")]
public class RuModROR2 : BaseUnityPlugin
{
public void Awake()
{
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
SkillCatalog.Init += new hook_Init(Test_get);
((BaseUnityPlugin)this).Logger.LogInfo((object)"Translation tokens registered.");
}
private void Test_get(orig_Init orig)
{
orig.Invoke();
((BaseUnityPlugin)this).Logger.LogInfo((object)"\n\nIm in hook\n\n");
foreach (SkillDef allSkillDef in SkillCatalog.allSkillDefs)
{
if (allSkillDef.keywordTokens == null)
{
continue;
}
for (int i = 0; i < allSkillDef.keywordTokens.Length; i++)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)("Found keywordToken: " + allSkillDef.keywordTokens[i]));
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Symbiotic</style><style=cSub>Gain <style=cIsDamage>attack speed</style> and <style=cIsUtility>move speed</style> for each stock missing. Additional stocks are converted into missing stock.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_SYMBIOTIC_SKILLDEF", "<style=cKeywordName>Symbiotic</style><style=cSub>Gain <style=cIsDamage>attack speed</style> and <style=cIsUtility>move speed</style> for each stock missing. Additional stocks are converted into missing stock.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_SYMBIOTIC_SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Agile</style><style=cSub>The skill can be used while sprinting.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_AGILE_SKILLDEF", "<style=cKeywordName>Agile</style><style=cSub>The skill can be used while sprinting.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_AGILE_SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Symbiotic Slash</style><style=cSub><style=cIsUtility>Stunning</style>. When your <color=#9B3737>Symbiotic</color> weapon is available hit for an additional strike dealing <style=cIsDamage>200% damage</style>.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_SYMBIOTIC_SLASH_SKILLDEF", "<style=cKeywordName>Symbiotic Slash</style><style=cSub><style=cIsUtility>Stunning</style>. When your <color=#9B3737>Symbiotic</color> weapon is available hit for an additional strike dealing <style=cIsDamage>200% damage</style>.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_SYMBIOTIC_SLASH_SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Insatiable</style><style=cSub>Attacks <style=cIsHealth>bleed</style> and grant <color=#9B3737>Needles</color>. <style=cIsHealing>Healing</style> is converted into <style=cIsHealing>Barrier</style>.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_INSATIABLE_SKILLDEF", "<style=cKeywordName>Insatiable</style><style=cSub>Attacks <style=cIsHealth>bleed</style> and grant <color=#9B3737>Needles</color>. <style=cIsHealing>Healing</style> is converted into <style=cIsHealing>Barrier</style>.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_INSATIABLE_SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Needles</style><style=cSub>Gain <color=#9B3737>Needles</color> by picking up your <color=#9B3737>Symbiotic</color> weapons or hitting enemies during <color=#9B3737>Insatiable</color>.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_NEEDLES_SKILLDEF", "<style=cKeywordName>Needles</style><style=cSub>Gain <color=#9B3737>Needles</color> by picking up your <color=#9B3737>Symbiotic</color> weapons or hitting enemies during <color=#9B3737>Insatiable</color>.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_NEEDLES_SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Details</style><style=cSub>Gain <style=cIsDamage>0,04 base damage</style> per <style=cIsHealth>1 missing health</style>. Heal up to <style=cIsHealing>2,5%</style> of your <style=cIsHealth>missing health</style> on hit.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_DETAILS_SKILLDEF", "<style=cKeywordName>Details</style><style=cSub>Gain <style=cIsDamage>0,04 base damage</style> per <style=cIsHealth>1 missing health</style>. Heal up to <style=cIsHealing>2,5%</style> of your <style=cIsHealth>missing health</style> on hit.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_DETAILS_SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Insatiable</style><style=cSub>Attacks <style=cIsHealth>bleed</style> and grant <color=#9B3737>Needles</color>. <style=cIsHealing>Healing</style> is converted into <style=cIsHealing>Barrier</style>.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_INSATIABLE__SKILLDEF", "<style=cKeywordName>Insatiable</style><style=cSub>Attacks <style=cIsHealth>bleed</style> and grant <color=#9B3737>Needles</color>. <style=cIsHealing>Healing</style> is converted into <style=cIsHealing>Barrier</style>.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_INSATIABLE__SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Crush</style><style=cSub>Deal bonus damage to an enemy based on their velocity and <style=cIsHealth>max health</style>.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_CRUSH_SKILLDEF", "<style=cKeywordName>Crush</style><style=cSub>Deal bonus damage to an enemy based on their velocity and <style=cIsHealth>max health</style>.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_CRUSH_SKILLDEF";
}
if (allSkillDef.keywordTokens[i] == "<style=cKeywordName>Symbiotic Slash</style><style=cSub><style=cIsUtility>Stunning</style>. When your <color=#9B3737>Symbiotic</color> weapon is available hit for an additional strike dealing <style=cIsDamage>200% damage</style>.</style>")
{
LanguageAPI.Add("KENKO_SEAMSTRESS_SYMBIOTIC_SLASH__SKILLDEF", "<style=cKeywordName>Symbiotic Slash</style><style=cSub><style=cIsUtility>Stunning</style>. When your <color=#9B3737>Symbiotic</color> weapon is available hit for an additional strike dealing <style=cIsDamage>200% damage</style>.</style>");
allSkillDef.keywordTokens[i] = "KENKO_SEAMSTRESS_SYMBIOTIC_SLASH__SKILLDEF";
}
}
}
}
}