summaryrefslogtreecommitdiffstats
path: root/src/Battle.java
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-11-19 09:12:42 +0100
committerNao Pross <naopross@thearcway.org>2018-11-19 09:12:42 +0100
commit9dca8d0f3610e2cd1079f9705f1da31ff19aba93 (patch)
treef3e421cf2e8e676bbeec2fb111cd5930b4cb3031 /src/Battle.java
parentUpdate makefile (diff)
downloadSubconscious-java-9dca8d0f3610e2cd1079f9705f1da31ff19aba93.tar.gz
Subconscious-java-9dca8d0f3610e2cd1079f9705f1da31ff19aba93.zip
Add Actor.SkillSet, remove useless members in various strucutres
Diffstat (limited to 'src/Battle.java')
-rw-r--r--src/Battle.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Battle.java b/src/Battle.java
index 6f614eb..cde2734 100644
--- a/src/Battle.java
+++ b/src/Battle.java
@@ -133,7 +133,7 @@ public class Battle extends MapScene {
g.fillRect(20*this.guiSize, 22*this.guiSize, 70*this.guiSize*this.lastActor.getHP()/10, 10*this.guiSize);
g.setColor(Palette.BLACK);
- g.drawString("Agility: " + Integer.toString(this.lastActor.getAgility()),
+ g.drawString("Agility: " + Integer.toString(this.lastActor.getSkills().agility),
5*this.guiSize, 45*this.guiSize);
} else if (this.actorClicked) {
g.setColor(Palette.WHITE_T);
@@ -269,7 +269,7 @@ public class Battle extends MapScene {
this.map.clearSelected();
ArrayList<Tile> path = this.map.getPath(this.selectedActor, x, y);
Collections.reverse(path);
- for (int i=0; i<this.selectedActor.getAgility(); i++) {
+ for (int i=0; i<this.selectedActor.getSkills().agility; i++) {
path.get(i).setSelected(true);
if (i == path.size()-1) {
break;