Beispiel #1
0
 static bool Prefix(ApplyClassMechanics __instance, LevelUpState state, UnitDescriptor unit)
 {
     if (IsAvailable() && Core.Mod.IsLevelLocked)
     {
         __instance.Apply_NoStatsAndHitPoints(state, unit);
         return(false);
     }
     return(true);
 }
Beispiel #2
0
            static void Postfix(ApplyClassMechanics __instance, LevelUpState state, UnitDescriptor unit)
            {
                if (IsAvailable())
                {
                    if (state.SelectedClass != null)
                    {
                        ForEachAppliedMulticlass(state, unit, () => {
                            Logger.ModLoggerDebug($" - {nameof(ApplyClassMechanics)}.{nameof(ApplyClassMechanics.Apply)}*({state.SelectedClass}[{state.NextClassLevel}], {unit})");

                            __instance.Apply_NoStatsAndHitPoints(state, unit);
                        });
                    }
                }
            }