From 36e87e04dfc2b47157d50ac2c1f01ad157bed51a Mon Sep 17 00:00:00 2001 From: Emma Date: Sat, 23 Oct 2021 22:35:46 -0700 Subject: [PATCH] Updated documentation to detail critical hit functionality in weapon info. --- src/com/hotmail/kalebmarc/textfighter/main/Weapon.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/hotmail/kalebmarc/textfighter/main/Weapon.java b/src/com/hotmail/kalebmarc/textfighter/main/Weapon.java index c576c945..36244b4d 100644 --- a/src/com/hotmail/kalebmarc/textfighter/main/Weapon.java +++ b/src/com/hotmail/kalebmarc/textfighter/main/Weapon.java @@ -311,6 +311,10 @@ public void viewAbout() { Ui.println("Damage: " + this.getDamage()); Ui.println("Chance of critical hit: " + this.critChanceMultiplier + "%"); Ui.println("Critical hit damage multiplier: " + this.critDamMultiplierMin + "-" + this.critDamMultiplierMax + "x"); + if (!this.melee) { + Ui.println("Chance of critical hit, bullet: " + Weapon.BULLET_CRITICAL_CHANCE + "%"); + Ui.println("Bullet Critical of critical hit, bullet: " + Weapon.BULLET_CRITICAL_MULTIPLIER + "x"); + } for (int i = 0; i < BORDER_LENGTH; i++) Ui.print("-");//Make line Ui.pause(); Ui.cls();