Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
anyway.. here is my patch that actually prevents the creation of the thoughts, feel free to use/edit it if you want
[HarmonyPatch(typeof(PawnDiedOrDownedThoughtsUtility), "AppendThoughts_Relations")]
class FiendRivalPatchThreshhold
{
[HarmonyTranspiler]
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructionEnumerable, MethodBase original)
{
var instructions = instructionEnumerable.ToList();
bool found = false;
for (int i = 0; i < instructions.Count; i++)
{
if (instructions.Is(OpCodes.Ldc_I4_S, 20))
{
yield return new CodeInstruction(OpCodes.Ldc_I4_S, 50);
found = true;
continue;
}
else
if (instructions.Is(OpCodes.Ldc_I4_S, -20))
{
yield return new CodeInstruction(OpCodes.Ldc_I4_S, -40);
found = true;
continue;
}
else
{
yield return instructions;
}
}
if (!found)
{
ModLog.Error($"Failed to patch {original.Name}");
}
}
}