Skip to content

Commit

Permalink
Updated bullet critical hit chance.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmamickas committed Oct 22, 2021
1 parent 37d76cd commit c561e83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/com/hotmail/kalebmarc/textfighter/main/EnemyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static void setUpBeforeClass() throws Exception {
Weapon.BULLET_DAMAGE = 10;

Weapon.BULLET_CRITICAL_MULTIPLIER = 10;
Weapon.BULLET_CRITICAL_CHANCE = 1;
Weapon.BULLET_CRITICAL_CHANCE = 0.001;
}

@AfterClass
Expand Down
2 changes: 1 addition & 1 deletion src/com/hotmail/kalebmarc/textfighter/main/Weapon.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Weapon implements Comparable<Weapon> {
//Properties
public static int BULLET_DAMAGE;
public static int BULLET_CRITICAL_MULTIPLIER;
public static int BULLET_CRITICAL_CHANCE;
public static double BULLET_CRITICAL_CHANCE;
//Variables
public static Weapon starting;
private static Weapon current = null;
Expand Down
4 changes: 2 additions & 2 deletions src/com/hotmail/kalebmarc/textfighter/player/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private static void setConstants(String dif, boolean firstInit, boolean changeDi
//Price
Power.price = 25;
Weapon.BULLET_DAMAGE = 10;
Weapon.BULLET_CRITICAL_CHANCE = 1;
Weapon.BULLET_CRITICAL_CHANCE = 0.01;
Weapon.BULLET_CRITICAL_MULTIPLIER = 10;
FirstAid.price = 5;
Potion.spPrice = 10;
Expand Down Expand Up @@ -225,7 +225,7 @@ private static void setConstants(String dif, boolean firstInit, boolean changeDi
//PRICE
Power.price = 75;
Weapon.BULLET_DAMAGE = 5;
Weapon.BULLET_CRITICAL_CHANCE = 1;
Weapon.BULLET_CRITICAL_CHANCE = 0.01;
Weapon.BULLET_CRITICAL_MULTIPLIER = 10;
FirstAid.price = 15;
Potion.spPrice = 25;
Expand Down

0 comments on commit c561e83

Please sign in to comment.