Skip to content

Commit

Permalink
Prints a string representation of a cards status instead of a number
Browse files Browse the repository at this point in the history
  • Loading branch information
ApionXD committed Mar 28, 2021
1 parent 8708610 commit 14e7f26
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/cards/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ public void run()
}
else if (verbosity == 2)
{
System.out.println("Card: " + name + '\n' + "Shop: " + shop.getName() + '\n' + "Status: " + shop.getCurrentStatus(this) + '\n');
if (status == -1)
{
System.out.println("Card: " + name + '\n' + "Shop: " + shop.getName() + '\n' + "Status: " + "Encountered captcha" + '\n');
}
if (status == 0)
{
System.out.println("Card: " + name + '\n' + "Shop: " + shop.getName() + '\n' + "Status: " + "Out of stock" + '\n');
}
}
try
{
Expand Down

0 comments on commit 14e7f26

Please sign in to comment.