Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool CheckCustom(string formula)
- {
- if (formula == "high_prio")
- return true;
- else if (formula == "story_ch3_aya_hired")
- {
- foreach (data_girls.girls Girl in data_girls.girl)
- {
- if (Girl.Type == data_girls.girls._type.aya && Girl.status != data_girls._status.graduated)
- return true;
- }
- return false;
- }
- // GAME OVER: BANKRUPTCY
- else if (formula == "bankruptcy_high_rel")
- {
- if (Bankruptcy.Best_Relationship_Girl == null)
- return false;
- return Bankruptcy.Best_Relationship_Girl.GetRelationshipLevel(Relationships_Player._type.Friendship) >= 4;
- }
- else if (formula == "bankruptcy_med_rel")
- {
- if (Bankruptcy.Best_Relationship_Girl == null)
- return false;
- return Bankruptcy.Best_Relationship_Girl.GetRelationshipLevel(Relationships_Player._type.Friendship) >= 2;
- }
- // GAME OVER: SCANDAL
- else if (formula == "scandal_multiple_left")
- {
- return tasks.Story_Data.scandal_idols_left > 1;
- }
- // SUBSTORIES
- else if (formula == "took_loans_fujimoto")
- {
- foreach (loans._loan Loan in loans.Loans)
- {
- if (Loan.Type == loans._loan._type.fujimoto)
- return true;
- }
- return false;
- }
- else if (formula == "took_loans_bank")
- {
- foreach (loans._loan Loan in loans.Loans)
- {
- if (Loan.Type == loans._loan._type.bank)
- return true;
- }
- return false;
- }
- else if (formula == "5_perf_in_week")
- {
- if (Stats.CountActivities(Activity._type.performance, 10) >= 5)
- return true;
- return false;
- }
- else if (formula == "hoarse_spa")
- {
- if (Stats.CountActivities(Activity._type.spa_treatment, 4) >= 1)
- return true;
- return false;
- }
- else if (formula == "hoarse_no_perf")
- {
- if (Stats.CountActivities(Activity._type.performance, 3) == 0)
- return true;
- return false;
- }
- else if (formula == "has_breakroom")
- {
- var Rooms = agency.GetRooms();
- foreach(var Room in Rooms)
- {
- if (Room != null && Room.type == agency._type.recreation_room)
- return true;
- }
- return false;
- }
- else if (formula == "overworked_check")
- {
- if (Stats.CountActivities(Activity._type.performance, 5) == 0)
- return false;
- var girls = data_girls.GetActiveGirls();
- int count = 0;
- foreach(var girl in girls)
- {
- if (girl.GetPhysicalStamina() < 20)
- count++;
- }
- if (count >= 2)
- return true;
- return false;
- }
- // RANDOM EVENTS
- else if (formula == "single_in_dev")
- {
- foreach(var Single in singles.Singles)
- {
- if (Single.status == singles._single._status.normal || Single.status == singles._single._status.working)
- return true;
- }
- return false;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement