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 void OpherBuyWeapon(AbilityType slot) { Sellable item = SeedController.OpherWeapon(slot); if (SaveController.Data.OpherSold.Contains(slot)) { Randomizer.Log($"OBW: not enough money or slot already sold "); return; } SaveController.Data.OpherSold.Add(slot); item.Grant(); return; }
public static void OnBuyOpherWeapon(AbilityType slot) { Pickup item = SeedController.OpherWeapon(slot); if (SaveController.Data.OpherSold.Contains(slot)) { Randomizer.Log($"OBW: not enough money or slot already sold"); return; } SaveController.Data.OpherSold.Add(slot); Randomizer.Log($"sold {item} from {slot} for ${SeedController.OpherWeapon(slot).CostWithMod(GetCostMod(slot))}", false); item.Grant(); return; }
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); }
public static int OpherWeaponCost(AbilityType ability) { return(SeedController.OpherWeapon(ability).DefaultCost()); }