public static GuardianMoodBase GetMoodBase(int ID) { if (!MoodTypeBaseList.ContainsKey(ID)) { GuardianMoodBase gmb = MoodBaseDB(ID); MoodTypeBaseList.Add(ID, gmb); return(gmb); } return(MoodTypeBaseList[ID]); }
private static GuardianMoodBase MoodBaseDB(int ID) { GuardianMoodBase mood; switch (ID) { default: mood = new GuardianMoodBase("Unknown", "It's unknown the effects of this.", 0, 0); break; case 0: mood = new GuardianMoodBase("Fullfilled", "You helped this person, and It's feeling happy.", 20, 0); break; case 1: mood = new GuardianMoodBase("Disappointed", "You have failed to complete this person request.", -10, -20); break; case 2: mood = new GuardianMoodBase("Frustrated", "You failed to complete this person request in time.", -20, -10); break; } return(mood); }