public static string GetShopNameReplacement(string orig) { if (RemoveStrings.Contains(orig)) { return(" "); } else if (OpherWeaponDetail.ContainsKey(orig)) { var weapon = OpherWeaponDetail[orig]; if (!OpherWeaponChatter.ContainsKey(weapon)) { OpherWeaponChatter[weapon] = Chatter[new Random().Next(Chatter.Count)]; } return(OpherWeaponChatter[weapon]); } else if (OpherWeaponNames.ContainsKey(orig)) { return(SeedController.OpherWeapon(OpherWeaponNames[orig]).ToString()); } else if (TwillenShardDetail.ContainsKey(orig)) { var shard = TwillenShardDetail[orig]; if (!TwillenShardChatter.ContainsKey(shard)) { TwillenShardChatter[shard] = Chatter[new Random().Next(Chatter.Count)]; } return(TwillenShardChatter[shard]); } else if (TwillenShardNames.ContainsKey(orig)) { return(SeedController.TwillenShard(TwillenShardNames[orig]).ToString()); } return(orig); }
public static string GetShopNameReplacement(string orig) { if (RemoveStrings.Contains(orig)) { return(" "); } else if (LupoReplacements.ContainsKey(orig)) { return(LupoReplacements[orig]); } else if (OpherWeaponDetail.ContainsKey(orig)) { var weapon = OpherWeaponDetail[orig]; if (!OpherWeaponChatter.ContainsKey(weapon)) { OpherWeaponChatter[weapon] = Chatter[new Random().Next(Chatter.Count)]; } return(OpherWeaponChatter[weapon]); } else if (OpherWeaponNames.ContainsKey(orig)) { return(SeedController.OpherWeapon(OpherWeaponNames[orig]).ToString()); } else if (TwillenShardDetail.ContainsKey(orig)) { var shard = TwillenShardDetail[orig]; if (!TwillenShardChatter.ContainsKey(shard)) { if (KSOverride(shard)) { TwillenShardChatter[shard] = $"Costs more each time you buy it\\nNever logically required"; } else { TwillenShardChatter[shard] = Chatter[new Random().Next(Chatter.Count)]; } } return(TwillenShardChatter[shard]); } else if (TwillenShardNames.ContainsKey(orig)) { var shard = TwillenShardNames[orig]; return(KSOverride(shard) ? "Black Market Keystone" : SeedController.TwillenShard(shard).ToString()); } return(orig); }