//random chance for player to gain happiness void HappinessIncreaseTest(string animal, string problemType) { chanceOfHappyIncrease = Random.Range(0, 4); if (chanceOfHappyIncrease == 1 || chanceOfHappyIncrease == 3) { if (problemType == "Keeper") { string happyType = "maintenance"; //increase happiness by 5 based on animal MaintenanceHappinessControl(animal, 5); notiDisplay.NewNotification(animal, happyType, "+"); } else { string happyType = "amusement"; // increase happiness by 5 based on animal SocialHappinessControl(animal, 5); notiDisplay.NewNotification(animal, happyType, "+"); } } else { return; } }
void CheckProblemSolver() { foreach (string problem in DisplayedPhaseTwoProblemsList) { int index = DisplayedPhaseTwoProblemsList.IndexOf(problem); if (!CompletedPhaseTwoProblemsList.Contains(problem)) { if (index >= 0 && index <= 3)//ZooKeeper Problems start { phase2Solver.Phase2KeeperProblemExpired("penguin"); notiDisplay.NewNotification("penguin", "maintenance", "-"); } else if (index >= 8 && index <= 11) { phase2Solver.Phase2KeeperProblemExpired("panda"); notiDisplay.NewNotification("panda", "maintenance", "-"); } else if (index >= 16 && index <= 19) { phase2Solver.Phase2KeeperProblemExpired("gorilla"); notiDisplay.NewNotification("gorilla", "maintenance", "-"); } else if (index >= 24 && index <= 27) { phase2Solver.Phase2KeeperProblemExpired("zebra"); notiDisplay.NewNotification("zebra", "maintenance", "-"); } else if (index >= 32 && index <= 35) { phase2Solver.Phase2KeeperProblemExpired("kangaroo"); notiDisplay.NewNotification("kangaroo", "maintenance", "-"); } else if (index >= 4 && index <= 7)//Vet problems start { phase2Solver.Phase2VetProblemsExpired("penguin"); notiDisplay.NewNotification("penguin", "amusement", "-"); } else if (index >= 12 && index <= 15) { phase2Solver.Phase2VetProblemsExpired("panda"); notiDisplay.NewNotification("panda", "amusement", "-"); } else if (index >= 20 && index <= 23) { phase2Solver.Phase2VetProblemsExpired("gorilla"); notiDisplay.NewNotification("gorilla", "amusement", "-"); } else if (index >= 28 && index <= 31) { phase2Solver.Phase2VetProblemsExpired("zebra"); notiDisplay.NewNotification("zebra", "amusement", "-"); } else if (index >= 36 && index <= 39) { phase2Solver.Phase2VetProblemsExpired("kangaroo"); notiDisplay.NewNotification("kangaroo", "amusement", "-"); } } } }