Advertisement
Guest User

Untitled

a guest
Mar 20th, 2021
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.60 KB | None | 0 0
  1.     public static bool CheckCustom(string formula)
  2.     {
  3.         if (formula == "high_prio")
  4.             return true;
  5.  
  6.         else if (formula == "story_ch3_aya_hired")
  7.         {
  8.             foreach (data_girls.girls Girl in data_girls.girl)
  9.             {
  10.                 if (Girl.Type == data_girls.girls._type.aya && Girl.status != data_girls._status.graduated)
  11.                     return true;
  12.             }
  13.  
  14.             return false;
  15.         }
  16.  
  17.         // GAME OVER: BANKRUPTCY
  18.  
  19.         else if (formula == "bankruptcy_high_rel")
  20.         {
  21.             if (Bankruptcy.Best_Relationship_Girl == null)
  22.                 return false;
  23.  
  24.             return Bankruptcy.Best_Relationship_Girl.GetRelationshipLevel(Relationships_Player._type.Friendship) >= 4;
  25.         }
  26.  
  27.         else if (formula == "bankruptcy_med_rel")
  28.         {
  29.             if (Bankruptcy.Best_Relationship_Girl == null)
  30.                 return false;
  31.  
  32.             return Bankruptcy.Best_Relationship_Girl.GetRelationshipLevel(Relationships_Player._type.Friendship) >= 2;
  33.         }
  34.  
  35.         // GAME OVER: SCANDAL
  36.  
  37.         else if (formula == "scandal_multiple_left")
  38.         {
  39.             return tasks.Story_Data.scandal_idols_left > 1;
  40.         }
  41.  
  42.         // SUBSTORIES
  43.  
  44.         else if (formula == "took_loans_fujimoto")
  45.         {
  46.             foreach (loans._loan Loan in loans.Loans)
  47.             {
  48.                 if (Loan.Type == loans._loan._type.fujimoto)
  49.                     return true;
  50.             }
  51.  
  52.             return false;
  53.         }
  54.  
  55.         else if (formula == "took_loans_bank")
  56.         {
  57.             foreach (loans._loan Loan in loans.Loans)
  58.             {
  59.                 if (Loan.Type == loans._loan._type.bank)
  60.                     return true;
  61.             }
  62.  
  63.             return false;
  64.         }
  65.  
  66.         else if (formula == "5_perf_in_week")
  67.         {
  68.             if (Stats.CountActivities(Activity._type.performance, 10) >= 5)
  69.                 return true;
  70.  
  71.             return false;
  72.         }
  73.  
  74.         else if (formula == "hoarse_spa")
  75.         {
  76.             if (Stats.CountActivities(Activity._type.spa_treatment, 4) >= 1)
  77.                 return true;
  78.  
  79.             return false;
  80.         }
  81.  
  82.         else if (formula == "hoarse_no_perf")
  83.         {
  84.             if (Stats.CountActivities(Activity._type.performance, 3) == 0)
  85.                 return true;
  86.  
  87.             return false;
  88.         }
  89.  
  90.         else if (formula == "has_breakroom")
  91.         {
  92.             var Rooms = agency.GetRooms();
  93.  
  94.             foreach(var Room in Rooms)
  95.             {
  96.                 if (Room != null && Room.type == agency._type.recreation_room)
  97.                     return true;
  98.             }
  99.  
  100.             return false;
  101.         }
  102.  
  103.         else if (formula == "overworked_check")
  104.         {
  105.             if (Stats.CountActivities(Activity._type.performance, 5) == 0)
  106.                 return false;
  107.  
  108.             var girls = data_girls.GetActiveGirls();
  109.  
  110.             int count = 0;
  111.  
  112.             foreach(var girl in girls)
  113.             {
  114.                 if (girl.GetPhysicalStamina() < 20)
  115.                     count++;
  116.             }
  117.  
  118.             if (count >= 2)
  119.                 return true;
  120.  
  121.             return false;
  122.         }
  123.  
  124.         // RANDOM EVENTS
  125.  
  126.         else if (formula == "single_in_dev")
  127.         {
  128.             foreach(var Single in singles.Singles)
  129.             {
  130.                 if (Single.status == singles._single._status.normal || Single.status == singles._single._status.working)
  131.                     return true;
  132.             }
  133.  
  134.             return false;
  135.         }
  136.  
  137.         return false;
  138.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement