Skip to content

Conversation

@connorparrott
Copy link
Contributor

No description provided.

int breakChance = (int) (Math.random() * 100);
if (isBroken) {
System.out.println("Your weapon is broken you can't use it");
isBroken = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use fixWeapon()?

public Warrior(String name, int weight, int height, String eyeColor, String hairColor) {
super(name);
addWeapon(new Sword(name + "'s sword", "Plain Old Sword"));
addWeapon(new Sword("Plain Old Sword", name + "'s weapon"));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to PR name

@connorparrott connorparrott changed the title Debugged a warriors sword to stay broken Balance and Debug Warrior Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants