public static string GetMotiveLocalizedName(CommodityKind kind) { switch (kind) { case CommodityKind.Hunger: case CommodityKind.Energy: case CommodityKind.Hygiene: case CommodityKind.Fun: case CommodityKind.Social: case CommodityKind.Bladder: case CommodityKind.AlienBrainPower: return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + kind); case CommodityKind.DogDestruction: return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveDestructionDog"); case CommodityKind.CatScratch: return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveScratchCat"); case CommodityKind.HorseThirst: return Common.Localize("Species:Horse") + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveThirstHorse"); case CommodityKind.HorseExercise: return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveExerciseHorse"); case CommodityKind.VampireThirst: return OccultManager.GetSingularOccultName(OccultTypesAll.Vampire) + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveHungerVampire"); } string result; if (Common.Localize("Commodity:" + kind.ToString(), false, new object[0], out result)) { return result; } else { return kind.ToString(); } }
public static string GetMotiveLocalizedName(CommodityKind kind) { switch (kind) { case CommodityKind.Hunger: case CommodityKind.Energy: case CommodityKind.Hygiene: case CommodityKind.Fun: case CommodityKind.Social: case CommodityKind.Bladder: case CommodityKind.AlienBrainPower: return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + kind)); case CommodityKind.DogDestruction: return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveDestructionDog")); case CommodityKind.CatScratch: return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveScratchCat")); case CommodityKind.HorseThirst: return(Common.Localize("Species:Horse") + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveThirstHorse")); case CommodityKind.HorseExercise: return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveExerciseHorse")); case CommodityKind.VampireThirst: return(OccultManager.GetSingularOccultName(OccultTypesAll.Vampire) + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveHungerVampire")); } string result; if (Common.Localize("Commodity:" + kind.ToString(), false, new object[0], out result)) { return(result); } else { return(kind.ToString()); } }
public MotiveValue(CommodityKind name, Motive value) { if (!Common.Localize("CommodityKind:" + name, false, new object[0], out mName)) { mName = name.ToString(); } if (value != null) { mValue = (int)value.Value; mExists = true; } }
public static string FetchMotiveLocalization(CASAgeGenderFlags flag, CommodityKind motive) { string str = ""; switch (motive) { case CommodityKind.Hygiene: if (flag == CASAgeGenderFlags.Cat) str = "Scratch"; if (flag == CASAgeGenderFlags.Dog) str = "Destruction"; if (flag == CASAgeGenderFlags.Horse) str = "Exercise"; break; case CommodityKind.Fun: if (flag == CASAgeGenderFlags.Horse) str = "Thirst"; break; case CommodityKind.Temperature: return Common.Localize("TagData:Temperature"); default: break; } return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + str + (flag == CASAgeGenderFlags.Human ? motive.ToString() : flag.ToString())); }
public static string FetchMotiveLocalization(CASAgeGenderFlags flag, CommodityKind motive) { string str = ""; switch (motive) { case CommodityKind.Hygiene: if (flag == CASAgeGenderFlags.Cat) { str = "Scratch"; } if (flag == CASAgeGenderFlags.Dog) { str = "Destruction"; } if (flag == CASAgeGenderFlags.Horse) { str = "Exercise"; } break; case CommodityKind.Fun: if (flag == CASAgeGenderFlags.Horse) { str = "Thirst"; } break; default: break; } return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + str + (flag == CASAgeGenderFlags.Human || str == "B" ? motive.ToString() : flag.ToString()))); }
public CommodityOption(CommodityKind type) { mType = type; mName = mType.ToString(); }