Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
/* Made by tools/pack.py: the game's own English words (its Locale strings). */
#include "kr.h"
#include "strings.h"
static const char *const notes[][2] = {
{"", ""},
{"New spell: Call Reinforcements", "Summon reinforcements to block and fight enemies. Press 2 to aim it, OK to cast."},
{"New spell: Rain of Fire", "Rains fire and brimstone from the skies. Press 1 to aim it, OK to cast."},
{"New enemy: Goblin", "Small evil humanoids with no outstanding abilities."},
{"New enemy: Orc", "Tough savages with light armor."},
{"Tip", "Enemies and Soldiers with armor receive less physical damage."},
{"Tip", "Adjust the rally point of soldiers to create better strategies."},
{"Level 2 towers", "Your towers can now be upgraded to level 2."},
{"Tip", "Support barracks with ranged towers to maximize enemy exposure."},
{"New enemy: Wulf", "Very fast vicious creatures that can dodge melee attacks. Can dodge melee attacks."},
{"New enemy: Shaman", "Tribal healers resistant to magic attacks. Can heal allies."},
{"Tip", "Enemies with magic resistance receive less damage from magic attacks."},
{"New enemy: Ogre", "Big, ugly and tough humanoids, they'll obliterate everything in their path."},
{"Level 3 towers", "Your towers can now be upgraded to level 3."},
{"New enemy: Bandit", "Swift & agile, they can dispatch their enemies very quickly. Can dodge melee attacks."},
{"New enemy: Brigand", "Armored outlaws that can withstand a lot of punishment."},
{"New enemy: Giant Spiders", "Quick, vicious enemies resistant to magic."},
{"New tower: Rangers Hideout", "Legendary masters of the bow, they can unleash a hail of arrows faster and further than any other force in the realm."},
{"New enemy: Worg", "Cunning fast beasts that can dodge melee attacks and resist magic attacks. Can dodge melee attacks."},
{"New enemy: Spider Matriarch", "Tough magic resistant beast that can spawn several spiderlings. Spawns spiderlings."},
{"New enemy: Marauder", "Hulking, well-trained armored outlaws, often seen leading brigands and bandits."},
{"New tower: Arcane Wizard", "Arcane wizards focus on altering reality; as well as shooting the deadliest magical ray known to man."},
{"Tip", "Magic damage is the best way to deal with armored enemies."},
{"New enemy: Dark Knight", "Full plated corrupted knights, almost impervious to damage."},
{"New enemy: Gargoyle", "Vile winged creatures that can fly past barracks and artillery. Flying."},
{"New enemy: Shadow Archer", "Deadly accurate archers that will shoot at nearby soldiers in their path. Shoots arrows."},
{"New tower: Musketeer Garrison", "Patient, careful, and deadly accurate long-range deadeye shooters, with advanced weaponry."},
{"New enemy: Troll", "Very tough warriors that can regenerate their wounds quickly. Regen."},
{"New enemy: Winter Wolf", "Cunning & deadly, these beasts can defeat all but the best warriors. Can dodge melee attacks."},
{"New tower: Barbarian Hall", "Barbarians are savage warriors that will quickly clear a battlefield, usually at the cost of their own lives."},
{"New enemy: Troll Champion", "Elite tribal warriors equipped with vicious throwing axes Regen, Throws armor piercing axes."},
{"New enemy: Yeti", "Large ape-man like creature that can obliterate scores of soldiers with one strike. Area attack."},
{"New enemy: Troll Chieftain", "The chieftain can enrage his brethren, improving their attack damage, armor rating, speed and health. Regen, Can enrage allies."},
{"New tower: Sorcerer Mage", "Sorcerers handle forces that are close to darkness, weaving spells that temporarily lower enemy armor and deal damage."},
{"New enemy: Dark Slayer", "Claimed by darkness; slayers are the bane of anyone standing in their way."},
{"New enemy: Rocket Rider", "Half man, half machine; the rocket riders follow their dark lord's will wherever they go. Flying, Turbo."},
{"New tower: Tesla x104", "Dwarven engineering at its finest, harnessing the power of a thousand thunderstorms. Who shall we aim it at?"},
{"New enemy: Demon Spawn", "Terrible infernal creatures that explode when they die, damaging nearby soldiers. Infernal combustion."},
{"New enemy: Demon Lord", "Demon lords lead fiendish armies into battle, protecting their minions with infernal shields. Shields other demons, Infernal combustion."},
{"New enemy: Demon Hound", "Vicious terrible creatures, they serve as hunting dogs for the demon lords. Infernal combustion."},
{"New enemy: Demon Imp", "Flying mischievious infernal creatures that are often seen in the company of gargoyles.. Flying."},
{"New enemy: Necromancer", "Master of the dark arts, the Necromancer summons undead minions to do their bidding. Summons undead, Ranged attack."},
};
static const uint8_t note_pics[][2] = {{0, 0}, {2, 2}, {2, 1}, {1, 0}, {1, 1}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {1, 2}, {1, 3}, {0, 0}, {1, 4}, {0, 0}, {1, 5}, {1, 6}, {1, 10}, {3, TW_RANGER}, {1, 8}, {1, 9}, {1, 7}, {3, TW_ARCANE}, {0, 0}, {1, 13}, {1, 14}, {1, 12}, {3, TW_MUSKETEER}, {1, 18}, {1, 17}, {3, TW_BARBARIAN}, {1, 20}, {1, 21}, {1, 19}, {3, TW_SORCERER}, {1, 23}, {1, 24}, {3, TW_TESLA}, {1, 28}, {1, 29}, {1, 27}, {1, 31}, {1, 30}};
int note_pic(int n, int *arg) {
if (n <= 0 || n >= (int)(sizeof note_pics / sizeof note_pics[0])) return 0;
*arg = note_pics[n][1];
return note_pics[n][0];
}
const char *note_title(int n) { return n > 0 && n < (int)(sizeof notes / sizeof notes[0]) ? notes[n][0] : 0; }
const char *note_text(int n) { return n > 0 && n < (int)(sizeof notes / sizeof notes[0]) && notes[n][1][0] ? notes[n][1] : 0; }
static const char *const enemy_desc_s[EN_COUNT] = {
"Small evil humanoids with no outstanding abilities.",
"Tough savages with light armor.",
"Very fast vicious creatures that can dodge melee attacks.",
"Tribal healers resistant to magic attacks.",
"Big, ugly and tough humanoids, they'll obliterate everything in their path.",
"Swift & agile, they can dispatch their enemies very quickly.",
"Armored outlaws that can withstand a lot of punishment.",
"Hulking, well-trained armored outlaws, often seen leading brigands and bandits.",
"Cunning fast beasts that can dodge melee attacks and resist magic attacks.",
"Tough magic resistant beast that can spawn several spiderlings.",
"Quick, vicious enemies resistant to magic.",
"Very weak spider hatchlings.",
"Deadly accurate archers that will shoot at nearby soldiers in their path.",
"Full plated corrupted knights, almost impervious to damage.",
"Vile winged creatures that can fly past barracks and artillery.",
"A mindless unstoppable machine of destruction. The Juggernaut obliterates any army that tries to stop him.",
"Mechanical dark magical construct.",
"Cunning & deadly, these beasts can defeat all but the best warriors.",
"Very tough warriors that can regenerate their wounds quickly.",
"The chieftain can enrage his brethren, improving their attack damage, armor rating, speed and health.",
"Elite tribal warriors equipped with vicious throwing axes",
"Large ape-man like creature that can obliterate scores of soldiers with one strike.",
"An abominable legendary creature from the coldest reaches of Stormspike.",
"Claimed by darkness; slayers are the bane of anyone standing in their way.",
"Half man, half machine; the rocket riders follow their dark lord's will wherever they go.",
"Mindless automatons that obey the orders of their evil masters.",
"Skeleton Knights are the reanimated bones of once great warriors.",
"Vicious terrible creatures, they serve as hunting dogs for the demon lords.",
"Terrible infernal creatures that explode when they die, damaging nearby soldiers.",
"Demon lords lead fiendish armies into battle, protecting their minions with infernal shields.",
"Master of the dark arts, the Necromancer summons undead minions to do their bidding.",
"Flying mischievious infernal creatures that are often seen in the company of gargoyles..",
"Made of rock and fire, magma elementals are beings of death and destruction.",
"The most evil being you will encounter. Watch out for his evil bad jokes!",
"",
"",
};
const char *enemy_desc(int t) { return t >= 0 && t < EN_COUNT ? enemy_desc_s[t] : ""; }
static const char *const titles[NLEVELS] = {"Southport", "The Outskirts", "Pagras", "Twin River Pass", "Silveroak Forest", "The Citadel", "Coldstep Mines", "Icewind Pass", "Stormcloud Temple", "The Wastes", "Forsaken Valley", "The Dark Tower"};
const char *level_title(int i) { return i >= 0 && i < NLEVELS ? titles[i] : ""; }
static const char *const stories[NLEVELS] = {
"Greetings, noble and heroic warrior! As a General of His Majesty's forces, King Denas requires your services. The inhabitants of the city of Southport have reported attacks by highwaymen and other roaming outlaws. You must take a battalion to Southport to bolster the city's defenses. Good luck, General!",
"Good job! Your diligent investigations have revealed that it was not mere brigands terrorizing Southport, but organized bands of goblins and orcs! Now, their forward troops are creeping towards the defenseless rural communities North of Southport. We must establish an efficient and swift defense!",
"While your men celebrate your victory over the goblinoid and orcish troops, a messenger bears bad news. The township of Pagras is under siege by an overwhelmingly superior force. This is clearly an attack on the Kingdom: war is upon us!",
"Enemy troops are marching from the East through the Stonecliff Mountains. This can only mean that Hammerhold has fallen, and our Kingdom's capital is in peril. Our scouts conclude that the best place to stop our enemy's advance is at the Twin Rivers pass.",
"With Twin Rivers Pass blocked, and after days of marching, we've finally reached the Silveroak Forest outpost... only to find its troop compliment decimated! The garrison's men have endured several attacks recently, and their scouts report an even greater enemy force approaching. Good thing elite ranger units are on the way to help us...",
"After several days of travel, we have arrived at our capital city of Linirea. The time has come to make a stand, and defend Linirea's southern walls. In addition to your highly experienced units, the King adds two units to your batallions. The arcane wizards will provide superior firepower, and the pious paladins will inspire the troops with their bravery.",
"Our capital is safe, thanks to you, General! Now, our good King has entrusted you with the mission of creating a safe passage through the mountains so that we may strike at Valardul, and defeat Vez'nan and his armies. The first step in your journey will be the Coldstep Mines, which were abandoned years ago, and are now home to the Ha'kraj troll tribes. To aid you in your mission, you will be joined by a brigade of His Majesty's Royal Musketeers.",
"There is no place colder in these mountains than Icewind Pass, but we must advance. Our men have been besieged by Ha'kraj trolls for days, and our scouts report enemy troop movements around us... and something else, something wilder. If we are to make a stand here, this is a good place to install some of our new Artillery emplacements, and to construct a Barbarian Mead Hall so we may entertain our more... colorful troops.",
"Arriving at the Stormcloud temple has been the best thing to happen to us in days! The Stormcloud Sorcerers will now be at your command, General, and they can open a portal straight to Valardul. However, we must provide them with a defense while they complete their spell. Something... abominable is aproaching, and the men are extremely nervous...",
"We have arrived at the dreadful realm of Valardul. This is a barren and forsaken land, where the wretched souls of the departed find no solace. Pray to the gods that this place does not take its toll on your men's spirits...",
"Threading through the Forsaken Valley will not be an easy task! We are near the end of our journey, and although our men are tired, they are filled with honorable purpose. But beware... this is a land riddled with Rock and Fire Titans... best not to upset them!",
"Our troops gather around the dread wizard Vez'nan's tower. It is time for a reckoning... time for the final fray. This is the ultimate battle for our kingdom's safety. Every step has brought us to this moment; and there is no turning back. Now it's time to show our mettle!",
};
const char *level_story(int i) { return i >= 0 && i < NLEVELS ? stories[i] : ""; }
static const char *const ups[30][2] = {
{"Salvage", "Marksmen towers return 90% of value when sold."},
{"Eagle Eye", "Increases Marksmen attack range."},
{"Piercing Shots", "Piercing shots ignore a portion of the enemy's physical armor."},
{"Far Shots", "Increases Marksmen attack range."},
{"Precision", "Marksmen attacks have a chance of dealing double damage."},
{"Toughness Training", "Barracks train soldiers with more health."},
{"Better Armor", "Barracks train soldiers with improved armor."},
{"Improved Deployment", "Increases rally point range and reduces soldier training time."},
{"Endurance Training", "Barracks train soldiers with even more health."},
{"Spiked Armor", "When attacked, soldier's spiked armor return a % of the damage received to the attacker (This upgrade also affects reinforcements)."},
{"Spell Reach", "Increases Wizard's attack range."},
{"Arcane Shatter", "Magic attacks destroy a portion of enemy physical armor on every hit."},
{"Hermetic Study", "Mage towers construction and upgrading costs are reduced by 10%."},
{"Empowered Magic", "Increases Wizard's attack damage."},
{"Slow Curse", "Magic attacks slow enemies by half their speed for a moment."},
{"Concentrated Fire", "Increases Artillery attack damage."},
{"Range Finder", "Increases Artillery attack range."},
{"Field Logistic", "Artillery construction and upgrading costs are reduced by 10%."},
{"Industrialization", "Artillery special abilities costs are reduced by 25%."},
{"Smart Targeting", "Artillery suffers no reduction of splash and chain lightning damage."},
{"Blazing Skies", "Adds 2 additional meteors and increases meteor damage."},
{"Scorched Earth", "Meteors set the ground on fire burning enemies over it for 5 seconds."},
{"The Fast & Furious", "Increases meteor damage, explosion radius by 25% and reduces cooldown by 10 seconds."},
{"Blazing Earth", "Doubles damage and duration of scorched earth, and reduces cooldown by 10 seconds."},
{"Cataclysm", "Increases meteor damage and rains additional meteors at random locations all over the battlefield."},
{"Well Fed", "Well fed farmers have additional health and deal a little more damage."},
{"Conscripts", "Conscripts have more health and are better equipped."},
{"Warriors", "Warriors have even more health and are excellently equipped."},
{"Legionnaires", "Legionnaires have the most health and wear the best equipment."},
{"Spear Throw", "Gives Legionnaires a spear throw attack that can target ground and flying enemies."},
};
const char *upgrade_name(int line, int n) { return ups[line * 5 + n][0]; }
const char *upgrade_desc(int line, int n) { return ups[line * 5 + n][1]; }
static const char *const tw[][2] = {
{"TOWER_LOCKED_NAME", "Locked!"},
{"TOWER_LOCKED_DESCRIPTION", "This item is locked."},
{"TOWER_BARRACKS_RALLY_POINT", "Rally Point"},
{"TOWER_BARRACKS_RALLY_POINT_DESCRIPTION", "Change the rally point where soldiers defend."},
{"TOWER_BARRACKS_NAME", "Barracks"},
{"TOWER_BARRACKS_DESCRIPTION", "Trains militia, tough soldiers that block and damage your enemies."},
{"TOWER_BARRACKS_UPGRADE_LEVEL2_NAME", "Footmen Barracks"},
{"TOWER_BARRACKS_UPGRADE_LEVEL2_DESCRIPTION", "Footmen are better trained and equipped than basic militia. They can become the backbone of a good army."},
{"TOWER_BARRACKS_UPGRADE_LEVEL3_NAME", "Knights Barracks"},
{"TOWER_BARRACKS_UPGRADE_LEVEL3_DESCRIPTION", "Knights are professional soldiers with heavy armor. Dedicated to his majesty, they will stop your enemies' advance."},
{"TOWER_BARBARIANS_NAME", "Barbarian Hall"},
{"TOWER_BARBARIANS_DESCRIPTION", "Barbarians are savage warriors that will quickly clear a battlefield, usually at the cost of their own lives."},
{"TOWER_BARBARIANS_SPECIAL", "Throwing Axes, More Axes, Hunting Nets"},
{"TOWER_BARBARIANS_BLOODLUST_NAME", "Bloodrage"},
{"TOWER_BARBARIANS_BLOODLUST_DESCRIPTION", "When injured, Barbarians enter bloodrage making them deal extra damage with every attack."},
{"TOWER_BARBARIANS_BLOODLUST_NOTE", "Don't make me angry. You wouldn't like me when I'm angry."},
{"TOWER_BARBARIANS_THROWING_AXES_NAME", "Throwing axes"},
{"TOWER_BARBARIANS_THROWING_AXES_DESCRIPTION", "Barbarians can throw great axes at ground and flying enemies in range."},
{"TOWER_BARBARIANS_THROWING_AXES_NOTE", "May our axes split our enemies in two!"},
{"TOWER_BARBARIANS_DOUBLE_AXE_NAME", "More Axes"},
{"TOWER_BARBARIANS_DOUBLE_AXE_DESCRIPTION", "Barbarians equip an additional axe to deliver additional damage."},
{"TOWER_BARBARIANS_DOUBLE_AXE_NOTE", "Double the Axes Double the fun!"},
{"TOWER_BARBARIANS_HUNTER_NETS_NAME", "Hunting Nets"},
{"TOWER_BARBARIANS_HUNTER_NETS_DESCRIPTION", "Hunters by nature, Barbarians can throw nets to slow flying enemies for a while."},
{"TOWER_BARBARIANS_HUNTER_NETS_NOTE", "Stay Put!"},
{"TOWER_PALADINS_NAME", "Holy Order"},
{"TOWER_PALADINS_DESCRIPTION", "Trains paladins, an order of holy warriors. They are paragons of divine protection and heavenly defense."},
{"TOWER_PALADINS_SPECIAL", "Healing Light, Holy Strike, Shield of Valor"},
{"TOWER_PALADINS_HEALING_NAME", "Healing Light"},
{"TOWER_PALADINS_HEALING_DESCRIPTION", "Paladins can heal their wounds with Holy Light whenever they are injured."},
{"TOWER_PALADINS_HEALING_NOTE", "There shall be light!"},
{"TOWER_PALADINS_HOLY_STRIKE_NAME", "Holy Strike"},
{"TOWER_PALADINS_HOLY_STRIKE_DESCRIPTION", "Every attack has a chance of becoming a Holy Strike, dealing holy area damage."},
{"TOWER_PALADINS_HOLY_STRIKE_NOTE", "By Holy fire be Purged!"},
{"TOWER_PALADINS_SHIELD_NAME", "Shield of Valor"},
{"TOWER_PALADINS_SHIELD_DESCRIPTION", "Enhances paladins protection, making them more resilient."},
{"TOWER_PALADINS_SHIELD_NOTE", "No retreat, No surrender!"},
{"TOWER_ARCHERS_NAME", "Archer Tower"},
{"TOWER_ARCHERS_DESCRIPTION", "Archers ready to strike at your enemies from a distance."},
{"TOWER_ARCHERS_UPGRADE_LEVEL2_NAME", "Marksmen Tower"},
{"TOWER_ARCHERS_UPGRADE_LEVEL2_DESCRIPTION", "Marksmen shoot broadhead arrows, dealing more damage. Their longbows have longer attack range."},
{"TOWER_ARCHERS_UPGRADE_LEVEL3_NAME", "Sharpshooter Tower"},
{"TOWER_ARCHERS_UPGRADE_LEVEL3_DESCRIPTION", "Once archers reach the sharpshooter level, their attack range and damage potential increases above any other archer's."},
{"TOWER_RANGERS_NAME", "Rangers Hideout"},
{"TOWER_RANGERS_DESCRIPTION", "Legendary masters of the bow, they can unleash a hail of arrows faster and further than any other force in the realm."},
{"TOWER_RANGERS_SPECIAL", "Poison Arrows, Wrath of the Forest"},
{"TOWER_RANGERS_POISON_NAME", "Poison Arrows"},
{"TOWER_RANGERS_POISON_DESCRIPTION", "Poisons enemies dealing damage over time."},
{"TOWER_RANGERS_POISON_NOTE", "It won't hurt... for long."},
{"TOWER_RANGERS_THORNS_NAME", "Wrath of the Forest"},
{"TOWER_RANGERS_THORNS_DESCRIPTION", "Summons thorns and vines that trap, hold, and incapacitate ground-based enemies within its range."},
{"TOWER_RANGERS_THORNS_NOTE", "It's a trap!"},
{"TOWER_MUSKETEERS_NAME", "Musketeer Garrison"},
{"TOWER_MUSKETEERS_DESCRIPTION", "Patient, careful, and deadly accurate long-range deadeye shooters, with advanced weaponry."},
{"TOWER_MUSKETEERS_SPECIAL", "Sniper Shot, Shrapnel Shot"},
{"TOWER_MUSKETEERS_SNIPER_NAME", "Sniper Shot"},
{"TOWER_MUSKETEERS_SNIPER_DESCRIPTION", "Long range shot with increasing chance of instantly killing an enemy or deal massive damage."},
{"TOWER_MUSKETEERS_SNIPER_NOTE", "One shot... One kill..."},
{"TOWER_MUSKETEERS_SHRAPNEL_NAME", "Shrapnel Shot"},
{"TOWER_MUSKETEERS_SHRAPNEL_DESCRIPTION", "Special explosive ammunition, that blasts an area with shrapnel, dealing damage to all ground-based enemies within range."},
{"TOWER_MUSKETEERS_SHRAPNEL_NOTE", "Eat grapeshot!"},
{"TOWER_ENGINEERS_NAME", "Dwarven Bombard"},
{"TOWER_ENGINEERS_DESCRIPTION", "Bombards ground enemies dealing area damage."},
{"TOWER_ENGINEERS_UPGRADE_LEVEL2_NAME", "Dwarven Artillery"},
{"TOWER_ENGINEERS_UPGRADE_LEVEL2_DESCRIPTION", "Enhanced dwarven ordnance, this artillery will blast an even larger area."},
{"TOWER_ENGINEERS_UPGRADE_LEVEL3_NAME", "Dwarven Howitzer"},
{"TOWER_ENGINEERS_UPGRADE_LEVEL3_DESCRIPTION", "They build them bigger and bigger, don't they? Your enemies stand no chance!"},
{"TOWER_BFG_NAME", "500mm Big Bertha"},
{"TOWER_BFG_DESCRIPTION", "The 500mm siege gun aka"},
{"TOWER_BFG_SPECIAL", "Dragonbreath Launcher, Cluster Launcher"},
{"TOWER_BFG_MISSILE_NAME", "Dragonbreath Launcher"},
{"TOWER_BFG_MISSILE_DESCRIPTION", "Launches seeking missiles with extended range that never miss. They even find another target if they lose the current one."},
{"TOWER_BFG_MISSILE_NOTE", "Guaranteed mayhem. Use with discretion."},
{"TOWER_BFG_CLUSTER_NAME", "Cluster Launcher Xtreme"},
{"TOWER_BFG_CLUSTER_DESCRIPTION", "Fires a special bomb that will explode in mid air dropping additional bomblets into a wide area."},
{"TOWER_BFG_CLUSTER_NOTE", "I love the smell of napalm in the morning..."},
{"TOWER_TESLA_NAME", "Tesla x104"},
{"TOWER_TESLA_DESCRIPTION", "Dwarven engineering at its finest, harnessing the power of a thousand thunderstorms. Who shall we aim it at?"},
{"TOWER_TESLA_SPECIAL", "Supercharged Bolt, Overcharge"},
{"TOWER_TESLA_CHARGED_BOLT_NAME", "Supercharged Bolt"},
{"TOWER_TESLA_CHARGED_BOLT_DESCRIPTION", "Supercharged Bolts will arc to additional targets."},
{"TOWER_TESLA_CHARGED_BOLT_NOTE", "You've been - thunderstruck!"},
{"TOWER_TESLA_OVERCHARGE_NAME", "Overcharge"},
{"TOWER_TESLA_OVERCHARGE_DESCRIPTION", "Overcharges the tower creating a static field that damages all enemies in proximity."},
{"TOWER_TESLA_OVERCHARGE_NOTE", "Ride the Lightning!"},
{"TOWER_MAGES_NAME", "Mages"},
{"TOWER_MAGES_DESCRIPTION", "Mages cast armor piercing bolts at your enemies, ignoring any physical protection."},
{"TOWER_MAGES_UPGRADE_LEVEL2_NAME", "Adept Tower"},
{"TOWER_MAGES_UPGRADE_LEVEL2_DESCRIPTION", "Adepts cast enhanced bolts, which can tear through armor, flesh and bone."},
{"TOWER_MAGES_UPGRADE_LEVEL3_NAME", "Wizard Tower"},
{"TOWER_MAGES_UPGRADE_LEVEL3_DESCRIPTION", "Wizards cast high-energy bolts, which rip apart the very essence of enemy troops."},
{"TOWER_ARCANE_NAME", "Arcane Wizard"},
{"TOWER_ARCANE_DESCRIPTION", "Arcane wizards focus on altering reality; as well as shooting the deadliest magical ray known to man."},
{"TOWER_ARCANE_SPECIAL", "Death Ray, Teleport"},
{"TOWER_ARCANE_TELEPORT_NAME", "Teleport"},
{"TOWER_ARCANE_TELEPORT_DESCRIPTION", "Teleports a group of enemies a random distance back down the path."},
{"TOWER_ARCANE_TELEPORT_NOTE", "Space is merely a perception, a concern for mortal men."},
{"TOWER_ARCANE_DESINTEGRATE_NAME", "Death Ray"},
{"TOWER_ARCANE_DESINTEGRATE_DESCRIPTION", "Enemy troops are disintegrated into fine dust. Complete effectivity guaranteed!"},
{"TOWER_ARCANE_DESINTEGRATE_NOTE", "Avada Kedavra!"},
{"TOWER_SORCERER_NAME", "Sorcerer Mage"},
{"TOWER_SORCERER_DESCRIPTION", "Sorcerers handle forces that are close to darkness, weaving spells that temporarily lower enemy armor and deal damage."},
{"TOWER_SORCERER_SPECIAL", "Summon Elemental, Polymorph"},
{"TOWER_SORCERER_POLIMORPH_NAME", "Polymorph"},
{"TOWER_SORCERER_POLIMORPH_DESCRIPTION", "Polymorphs enemies into harmless sheep. Sheep have no armor, no abilities and cannot be blocked."},
{"TOWER_SORCERER_POLIMORPH_NOTE", "Meeeeh!"},
{"TOWER_SORCERER_ELEMENTAL_NAME", "Summon Elemental"},
{"TOWER_SORCERER_ELEMENTAL_DESCRIPTION", "Summons a rock elemental, stout avatar of the land's power. It will fight those who approach his master."},
{"TOWER_SORCERER_ELEMENTAL_NOTE", "Rock is eternal."},
{"TOWER_SELL", "Sell Tower"},
{"TOWER_SELL_DESCRIPTION", "Sell this tower and get a"},
{"POWER_FIREBALL_NAME", "Rain of Fire"},
{"POWER_FIREBALL_DESCRIPTION", "Rains fire and brimstone from the skies."},
{"POWER_REINFORCEMENTS_NAME", "Call Reinforcements"},
{"POWER_REINFORCEMENTS_DESCRIPTION", "Summon reinforcements to block and fight enemies."},
{"POWER_LIGHTNING_NAME", "Lightning Bolt"},
{"POWER_LIGHTNING_DESCRIPTION", "Casts a bolt of lightning at one enemy."},
{"SPECIAL_ELF_REPAIR_NAME", "Repair"},
{"SPECIAL_ELF_REPAIR_DESCRIPTION", "This elven building was once a training hall of Sylvan elf warriors"},
{"SPECIAL_ELF_NAME", "Sylvan Elf"},
{"SPECIAL_ELF_NAME_DESCRIPTION", "Sylvan elves are masters of bow and blade. They will join your cause... for a price."},
{"SPECIAL_SASQUASH_REPAIR_NAME", "Mysterious Cave"},
{"SPECIAL_SASQUASH_REPAIR_DESCRIPTION", "This cave has been frozen solid ages ago..."},
{"SPECIAL_SASQUASH_NAME", "sasquatch"},
{"SPECIAL_SASQUASH_DESCRIPTION", "The legendary Sasquatch will help you for an offering in food, gold and sometimes women."},
{"SPECIAL_SUNRAY_NAME", "Sunray Tower"},
{"SPECIAL_SUNRAY_MAGE_NAME", "Sunray Sorcerer"},
{"SPECIAL_SUNRAY_MAGE_DESCRIPTION", "Harness the power of the sun. Call a sorcerer to charge the sunray tower."},
{"SPECIAL_SUNRAY_CROSSHAIR_NAME", "Fire the Sunray"},
{"SPECIAL_SUNRAY_CROSSHAIR_DESCRIPTION", "Fire the sunray at target enemy. Press SPACE to Cancel."},
};
const char *tower_text(const char *key) {
for (unsigned i = 0; i < sizeof tw / sizeof tw[0]; i++) {
const char *a = tw[i][0], *b = key;
while (*a && *a == *b) a++, b++;
if (!*a && !*b) return tw[i][1];
}
return "";
}
static const char *const tips[20] = {
"Enemies and Soldiers with armor receive less physical damage.",
"Support barracks with ranged towers to maximize enemy exposure.",
"Reinforcements are a great way to split enemy forces.",
"Artillery works best against high concentration of enemies.",
"Artillery damage is highest in the center of the explosion.",
"Use reinforcements constantly to slow and damage the enemy.",
"Always aim rain of fire a little ahead of your target.",
"With the Salvage upgrade you can sell archer towers with only a 10% of loss.",
"Magic damage is the best way to deal with armored enemies.",
"Flying enemies cannot be blocked by barracks, and won't be targeted by most artillery.",
"Enemies with magic resistance receive less damage from magic attacks.",
"Adjust the rally point of soldiers to create better strategies.",
"Sometimes it is better to build more towers instead of upgrading a few.",
"Poison damage ignores armor.",
"Upgrading a barracks instantly trains new soldiers.",
"Calling an early wave gives bonus cash and reduces spell cooldowns a bit.",
"Artillery explosions can damage flying enemies although they cannot target them directly.",
"Use barracks or reinforcements to isolate troublesome enemies.",
"Barbarians with the right upgrades are capable of dealing with flying enemies.",
"Earth elementals are very tough and deal area damage every time they strike.",
};
const char *tip(int i) { return tips[i % 20]; }