From 224b3ea8b1cb1f28d7fadbf3737f10bfa6aceb21 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Sat, 28 Feb 2015 19:06:11 -0500 Subject: [PATCH] Increased max missiles for double homing to 15. It's incredibly silly for it to be 10; what's the advantage of the double homing missile launcher over the regular homing missile launcher otherwise? It's just much slower and less versatile. Now it should be slightly better, because you can effectively shoot 30 missiles total, instead of just 20. (Micro homing missiles are different; the advantage of having several weak missiles instead of a smaller numer of strong missiles is actually quite significant.) --- src/shop.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shop.cpp b/src/shop.cpp index 3220d82..cd52418 100644 --- a/src/shop.cpp +++ b/src/shop.cpp @@ -344,7 +344,7 @@ void initShop() shopItems[15].price = 10000; strcpy(shopItems[15].name, "Dual Homing Missile Launcher"); - strcpy(shopItems[15].description, "Fires two homing missiles (max 10 missiles)"); + strcpy(shopItems[15].description, "Fires two homing missiles (max 15 missiles)"); shopItems[15].image = 24; shopItems[16].price = 15000; @@ -466,7 +466,7 @@ static void buy(int i) {shopSelectedItem = -7; return;} if ((player.weaponType[1] == W_HOMING_MISSILE) && (currentGame.maxRocketAmmo >= 20)) {shopSelectedItem = -9; return;} - if ((player.weaponType[1] == W_DOUBLE_HOMING_MISSILES) && (currentGame.maxRocketAmmo >= 10)) + if ((player.weaponType[1] == W_DOUBLE_HOMING_MISSILES) && (currentGame.maxRocketAmmo >= 15)) {shopSelectedItem = -9; return;} if ((player.weaponType[1] == W_MICRO_HOMING_MISSILES) && (currentGame.maxRocketAmmo >= 10)) {shopSelectedItem = -9; return;} @@ -516,8 +516,8 @@ static void buy(int i) if (player.weaponType[1] == W_DOUBLE_HOMING_MISSILES) {shopSelectedItem = -8; return;} player.weaponType[1] = W_DOUBLE_HOMING_MISSILES; - limitChar(¤tGame.maxRocketAmmo, 5, 10); - limitChar(&player.ammo[1], 0, 10); + limitChar(¤tGame.maxRocketAmmo, 5, 15); + limitChar(&player.ammo[1], 0, 15); shopSelectedItem = -1; break; case 16: