minor edits, correcting constructor names

This commit is contained in:
Joshua-Ashton01
2022-11-03 11:57:05 -06:00
parent 02bc289614
commit d8ed8be6c8
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ public class Dwarf implements Race{
private String[] languages; private String[] languages;
private String[] proficiencies; private String[] proficiencies;
public Dragonborn() { public Dwarf() {
this.languages = new String[] {"Common", "Dwarvish"}; this.languages = new String[] {"Common", "Dwarvish"};
this.skills = new String[] {}; this.skills = new String[] {};
+4 -1
View File
@@ -7,12 +7,15 @@ public class HalfElf implements Race{
private String[] skills; private String[] skills;
private String[] languages; private String[] languages;
private String[] proficiencies; private String[] proficiencies;
private int chosenASI;
//TODO HalfElf get's to increase 1 ASI of their choice to increase. //TODO HalfElf get's to increase 1 ASI of their choice to increase.
public HalfElf(String chosenLanguage, int choseASI) { public HalfElf(String chosenLanguage, int chosenASI) {
this.languages = new String[] {"Common", "Elvish", chosenLanguage }; this.languages = new String[] {"Common", "Elvish", chosenLanguage };
this.skills = new String[] {}; this.skills = new String[] {};
this.chosenASI = chosenASI;
} }
@Override @Override
+2 -2
View File
@@ -1,6 +1,6 @@
package dnd; package dnd;
public class Elf implements Race{ public class Halfling implements Race{
private String[] traits; private String[] traits;
private final int speed = 30; private final int speed = 30;
private final int maxAge = 750; private final int maxAge = 750;
@@ -8,7 +8,7 @@ public class Elf implements Race{
private String[] languages; private String[] languages;
private String[] proficiencies; private String[] proficiencies;
public Dragonborn() { public Halfling() {
this.languages = new String[] {"Common", "Elvish"}; this.languages = new String[] {"Common", "Elvish"};
this.skills = new String[] {}; this.skills = new String[] {};