Beispiel #1
0
 private static void Prefix(ShipModel.Crew __instance, ref float dt)
 {
     if (_settings.MaxNavalMorale && __instance.ship.side == RuntimeVars.playerSide)
     {
         dt = 1000f;
     }
 }
Beispiel #2
0
 private static void Prefix(ShipModel.Crew __instance, ref float drain)
 {
     if (_settings.MaxNavalCondition && __instance.ship.side == RuntimeVars.playerSide)
     {
         drain = -1000f;
     }
 }
Beispiel #3
0
            private static void Prefix(ShipModel.Crew __instance, ref float change)
            {
                bool flag = Main._settings.MaxNavalMorale && __instance.ship.side == RuntimeVars.playerSide;

                if (flag)
                {
                    change = 1f;
                }
            }