pawn selection doesnt break when no job

pull/1/head
Valerie 2022-06-01 20:46:05 -04:00
parent a3845ef537
commit fafa88f772
3 changed files with 4 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -278,9 +278,11 @@ public class Pawn extends WorldObject implements ISelectable, IWorker {
@Override
public String details() {
IJob currentJob = jobboard.getJob(this);
String jobString = currentJob == null ? "No Job" : currentJob.getName();
return "" + name + "\n" +
"Held | " + getCarriedName() + "\n" +
"Job | " + jobboard.getJob(this).getName() + "\n" +
"Job | " + jobString + "\n" +
"";
}

View File

@ -52,7 +52,7 @@ public class Assets {
log = new Sprite(atlas, 48, 96, 16, 16);
lilAxe = new Sprite(atlas, 64, 88, 16, 16);
haulArrow = new Sprite(atlas, 80, 88, 16, 16);
stockpile = new Sprite(atlas, 40, 64, 16, 16);
stockpile = new Sprite(atlas, 40, 64, 4, 4);
Map<Character, Sprite> charset = new HashMap<Character, Sprite>();