搜索结果: *

  1. Please allow tier 7+ troops in the game again.

    Hey, try this Harmony patch. You can change 10 to the number of tiers you want.

    C#:
    [HarmonyPatch(typeof(CharacterHelper), "GetCharacterTier")]
    public static bool Prefix(CharacterObject character, ref int __result)
    {
        if (character.IsHero)
        {
            __result = 0;
        }
        __result = Math.Min(Math.Max(MathF.Ceiling(((float)character.Level - 5f) / 5f), 0), 10);
        return false;
    }
    Hello, I've run into issues with my own custom troop trees due to the 7 tier limitation. How do you implement this harmony patch? Afraid my modding expertise never went much beyond editing xml's in notepad :razz:
后退
顶部 底部