예제 #1
0
 public static void CalculateFinalSpeed(ref MobileParty mobileParty, ref ExplainedNumber finalSpeed, ref ExplainedNumber __result)
 {
     try
     {
         if (!mobileParty.IsPlayerParty() &&
             BannerlordCheatsSettings.Instance?.NpcMapSpeedPercentage > 100f)
         {
             __result.AddPercentage(BannerlordCheatsSettings.Instance.NpcMapSpeedPercentage);
         }
     }
     catch (Exception e)
     {
         SubModule.LogError(e, typeof(NpcMapSpeedPercentage));
     }
 }
 public static void CalculateDailyFoodConsumptionf(ref MobileParty party, ref bool includeDescription, ref ExplainedNumber __result)
 {
     try
     {
         if (party.IsPlayerParty() &&
             BannerlordCheatsSettings.Instance?.FoodConsumptionPercentage < 100f)
         {
             __result.AddPercentage(BannerlordCheatsSettings.Instance.FoodConsumptionPercentage);
         }
     }
     catch (Exception e)
     {
         SubModule.LogError(e, typeof(FoodConsumptionPercentage));
     }
 }
예제 #3
0
 public static void GetTotalWage(ref MobileParty mobileParty, ref bool includeDescriptions, ref ExplainedNumber __result)
 {
     try
     {
         if (mobileParty.IsPlayerParty() &&
             BannerlordCheatsSettings.Instance?.TroopWagesPercentage < 100f)
         {
             __result.AddPercentage(BannerlordCheatsSettings.Instance.TroopWagesPercentage);
         }
     }
     catch (Exception e)
     {
         SubModule.LogError(e, typeof(TroopWagesPercentage));
     }
 }