add C++, Typescript and more stuff

This commit is contained in:
2026-10-28 00:15:08 +01:00
parent e99e6386e8
commit ea0f475cae
108 changed files with 2488 additions and 980 deletions
+3 -2
View File
@@ -89,7 +89,7 @@ namespace KernelPanic.Combat
CardEffectKind.ConsultWiki => new ConsultWikiEffect(),
CardEffectKind.RandomCommonLanguageCard => new RandomCommonLanguageCardEffect(),
CardEffectKind.MinimalInstall => new MinimalInstallEffect(),
CardEffectKind.SizeofDamage => new SizeofDamageEffect(),
CardEffectKind.SizeofDamage => Language == Language.CPlusPlus ? new CppSizeofDamageEffect() : new SizeofDamageEffect(),
CardEffectKind.RepairCorruptedCards => new RepairCorruptedCardsEffect(Amount),
_ => throw new InvalidOperationException($"Unsupported authored effect {Kind}.")
};
@@ -174,7 +174,7 @@ namespace KernelPanic.Combat
/// Each built-in card ID is authored once here. Asset IDs and serialized effect overrides
/// stay unchanged; adding a card no longer requires parallel effect, targeting and rules switches.
/// </summary>
public static class CardCatalog
public static partial class CardCatalog
{
private const CardTargeting None = CardTargeting.None;
private const CardTargeting Single = CardTargeting.SingleEnemy;
@@ -322,6 +322,7 @@ namespace KernelPanic.Combat
Add("shop_java_system_gc", None, false, "uses 2 RAM. repair up to {amount:0} corrupted cards in your active deck. gain {shield:1} Shield. advances JIT warmup.", Fx(CardEffectKind.RepairCorruptedCards, 2), Shield(4));
Add("shop_java_jit_compile", Single, true, "uses 2 RAM. deal {amount:0}. Java cards cost 1 less this turn." + Jit, Fx(CardEffectKind.FirstToPackage, 8, language: Language.Java));
AddEvolvedCards(entries);
var byId = new Dictionary<string, CardCatalogEntry>(StringComparer.Ordinal);
foreach (CardCatalogEntry entry in entries) byId.Add(entry.Id, entry);
Entries = entries.AsReadOnly();