Exemplo n.º 1
0
 private static int StartBombs(InstanceMode mode)
 {
     if (mode == InstanceMode.CAMPAIGN || mode == InstanceMode.TUTORIAL || mode == InstanceMode.STAGE_PRACTICE)
     {
         return(2);
     }
     else if (mode.OneLife())
     {
         return(0);
     }
     else
     {
         return(3);
     }
 }
Exemplo n.º 2
0
 private static double StartPower(InstanceMode mode, ShotConfig?shot)
 {
     if (mode.OneLife() || !PowerMechanicEnabled)
     {
         return(powerMax);
     }
     else if (shot != null)
     {
         return(M.Clamp(powerMin, powerMax, shot.defaultPower));
     }
     else
     {
         return(M.Clamp(powerMin, powerMax, powerDefault));
     }
 }
Exemplo n.º 3
0
 private static int StartLives(InstanceMode mode)
 {
     if (mode == InstanceMode.CAMPAIGN || mode == InstanceMode.TUTORIAL || mode == InstanceMode.STAGE_PRACTICE)
     {
         return(7);
     }
     else if (mode.OneLife())
     {
         return(1);
     }
     else if (mode == InstanceMode.NULL)
     {
         return(14);
     }
     else
     {
         return(1);
     }
 }