Refactor alot of stuff
This commit is contained in:
@@ -58,7 +58,7 @@ namespace KernelPanic.Run
|
||||
string name = LanguageCatalog.Get(language).DisplayName;
|
||||
string objective = language switch
|
||||
{
|
||||
Language.CPlusPlus => "Learn C's evolved cards: stronger hits, full overkill spill and combos without segfault recoil.",
|
||||
Language.CPlusPlus => "Learn C's evolved cards: the same base damage, full overkill spill and combos without segfault recoil.",
|
||||
Language.TypeScript => "Learn to plan reliable attacks using JavaScript's evolved cards, with fixed damage and no failed typeof rolls.",
|
||||
Language.Python => "You'll learn to build a combo that attacks this turn and repeats on later turns. First, we'll draw the cards we need. Then we'll put them in order.",
|
||||
Language.Haskell => "You'll learn to make a stronger attack by playing your cards in the right order. We'll build a stack together, then work through why it resolves backward.",
|
||||
@@ -73,14 +73,14 @@ namespace KernelPanic.Run
|
||||
switch (language)
|
||||
{
|
||||
case Language.CPlusPlus:
|
||||
Read("evolution", "C without the segfault", "C++ keeps C's immediate attacks and elevated critical chance. Damage is stronger, all overkill spills, and playing C++ never causes segfault recoil.", "enemies");
|
||||
Read("evolution", "C without the segfault", "C++ keeps C's immediate attacks and elevated critical chance. Base damage matches C, all overkill spills, and playing C++ never causes segfault recoil.", "enemies");
|
||||
Play("burst", "lang_cpp_malloc", "Start with upgraded malloc", "Play malloc to begin your C++ chain. Your hand stays safe from segfault corruption.");
|
||||
Read("combo", "Follow with pointer", "Pointer deals 20 base damage after a C++ card instead of 12. Use printf to repair corruption from other sources. Full excess damage spills to the next living enemy.", "enemies");
|
||||
Read("combo", "Follow with pointer", "Pointer deals 15 base damage after a C++ card instead of 9. Use printf to repair corruption from other sources. Full excess damage spills to the next living enemy.", "enemies");
|
||||
break;
|
||||
case Language.TypeScript:
|
||||
Read("evolution", "Plan around fixed values", "TypeScript upgrades JavaScript's cards. Damage has a fixed value and no critical roll. Buffs and enemy defenses still apply.", "enemies");
|
||||
Play("fixed", "lang_ts_console_log", "Deal a reliable 9", "Play console.log(). Its base damage is always 9 instead of a random 3 to 9.");
|
||||
Read("guarantee", "No failed typeof", "Fetch deals 13 base damage. Typeof always deals 16 instead of risking a failed roll. Check enemy defenses, then choose your follow-up.", "enemies");
|
||||
Read("evolution", "Plan around fixed values", "TypeScript upgrades JavaScript's cards. Damage uses JavaScript's average base value, with halves rounded up, and cannot crit. Buffs and enemy defenses still apply.", "enemies");
|
||||
Play("fixed", "lang_ts_console_log", "Deal a reliable 6", "Play console.log(). Its base damage is always 6, the average of JavaScript's random 3 to 9.");
|
||||
Read("guarantee", "No failed typeof", "Fetch deals 9 base damage. Typeof always deals 11: its 75% chance of 14 averages to 10.5, rounded up. Check enemy defenses, then choose your follow-up.", "enemies");
|
||||
break;
|
||||
case Language.Go:
|
||||
Read("go-slots", "Start a worker for future turns", "Go has 3 active slots, separate from hand RAM. A deployed worker leaves your hand and starts attacking next round. Its card returns to the discard pile when it stops.", "GoroutineScheduler");
|
||||
|
||||
Reference in New Issue
Block a user