From c0f3310376a986df5d678ff7552ab39dba8dea89 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Tue, 7 Apr 2015 21:14:30 -0400 Subject: [PATCH] Changed plasma spread to the original version. I don't know why it was changed, but the changed version caused full spread rather than partial spread with the triple shot, and it also caused the quaduple shot to be arguably worse than the triple shot. --- src/ship.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/ship.cpp b/src/ship.cpp index 964bbcb..da38f4e 100644 --- a/src/ship.cpp +++ b/src/ship.cpp @@ -55,18 +55,22 @@ void ship_fireBullet(object *ship, int weaponType) if (theWeapon->flags & WF_SPREAD && theWeapon->ammo[0] >= 3) { - bullet_add(theWeapon, ship, y * 1, -2); + bullet_add(theWeapon, ship, y * 2, -1); + bullet_add(theWeapon, ship, y * 4, 1); - if(theWeapon->ammo[0] != 4) + if (theWeapon->ammo[0] != 4) bullet_add(theWeapon, ship, y * 3, 0); - - if(theWeapon->ammo[0] != 3) + else { - bullet_add(theWeapon, ship, y * 2, -1); - bullet_add(theWeapon, ship, y * 4, 1); + bullet_add(theWeapon, ship, y * 2, 0); + bullet_add(theWeapon, ship, y * 4, 0); } - bullet_add(theWeapon, ship, y * 5, 2); + if (theWeapon->ammo[0] == 5) + { + bullet_add(theWeapon, ship, y * 1, -2); + bullet_add(theWeapon, ship, y * 5, 2); + } } else {