package com.hotmail.kalebmarc.textfighter.item;

import com.hotmail.kalebmarc.textfighter.main.Action;
import com.hotmail.kalebmarc.textfighter.main.Ui;
import com.hotmail.kalebmarc.textfighter.main.Weapon;
import com.hotmail.kalebmarc.textfighter.player.Coins;
import com.hotmail.kalebmarc.textfighter.player.Potion;

public class Chest {
	private Chest(){}
	public static void view(){
		
		Action.cls();
		Ui.println("------------------------------");
		Ui.println("          Item Chest          ");
		Ui.println();
		Ui.println("First-Aid kits: " + FirstAid.get());
		Ui.println("Insta-Healths: " + InstaHealth.get());
                Ui.println("Potions: " + (Potion.get("survival") + Potion.get("recovery")));
		Ui.println("Coins: " + Coins.get());
		Ui.println("POWERS: " + Power.get());
		for(int i = 0; i < Weapon.arrayWeapon.size(); i++){
            Ui.print(Weapon.arrayWeapon.get(i).getName() + ": " + Weapon.arrayWeapon.get(i).owns());
			Ui.println(" (Ammo: " + Weapon.arrayWeapon.get(i).getAmmo() + ")");
        }
		for(int i = 1; i < Armour.getArmours().size(); i++){
			Ui.println(Armour.getArmours().get(i).toString() + ": " + Armour.getArmours().get(i).isOwns());
		}
		Ui.println();
		Ui.println("------------------------------");
		Action.pause();
		
	}
}
@@ -841,36 +841,22 @@
 ; i++)%7B%0A
-            Ui.print
+%09%09%09if 
 (Weapon.
@@ -878,27 +878,38 @@
 (i).
-getName() + %22: %22 + 
+owns()) %7B%0A%09        %09%09Ui.print(
 Weap
@@ -934,20 +934,23 @@
 (i).
-owns
+getName
 ());%0A%09%09%09
 Ui.p
@@ -941,24 +941,25 @@
 Name());%0A%09%09%09
+%09
 Ui.println(%22
@@ -1014,24 +1014,29 @@
 + %22)%22);%0A
+%09%09%09%7D%0A
         
 %7D%0A%09%09for(
@@ -1027,16 +1027,17 @@
         
+%09
 %7D%0A%09%09for(
@@ -1088,26 +1088,19 @@
 ++)%7B%0A%09%09%09
-Ui.println
+if 
 (Armour.
@@ -1123,28 +1123,35 @@
 (i).
-toString() + %22: %22 + 
+isOwns()) %7B%0A%09%09%09%09Ui.println(
 Armo
@@ -1177,18 +1177,25 @@
 (i).
-isOwns());
+toString());%0A%09%09%09%7D
 %0A%09%09%7D
@@ -1284,8 +1284,9 @@
 %0A%09%09%0A%09%7D%0A%7D
+%0A

Make weapon chest show only the weapons the player has #14