Add missing ability icons
|
@ -61,7 +61,7 @@ public class EarthPonyKickAbility implements Ability<Pos> {
|
|||
@Override
|
||||
public Identifier getIcon(Pony player) {
|
||||
return getId().withPath(p -> "textures/gui/ability/" + p
|
||||
+ "_" + player.getObservedSpecies().getId().getPath()
|
||||
+ "_" + (player.getObservedSpecies().isHuman() ? Race.EARTH : player.getObservedSpecies()).getId().getPath()
|
||||
+ "_" + (getKickDirection(player) > 0 ? "forward" : "backward")
|
||||
+ ".png");
|
||||
}
|
||||
|
|
|
@ -70,8 +70,9 @@ public class EarthPonyStompAbility implements Ability<Hit> {
|
|||
@Override
|
||||
public Identifier getIcon(Pony player) {
|
||||
Identifier id = Abilities.REGISTRY.getId(this);
|
||||
Race race = player.getObservedSpecies();
|
||||
return new Identifier(id.getNamespace(), "textures/gui/ability/" + id.getPath()
|
||||
+ "_" + player.getObservedSpecies().getId().getPath()
|
||||
+ "_" + (race.isHuman() ? Race.EARTH : race).getId().getPath()
|
||||
+ ".png");
|
||||
}
|
||||
|
||||
|
|
|
@ -43,9 +43,10 @@ public class ToggleFlightAbility implements Ability<Hit> {
|
|||
@Override
|
||||
public Identifier getIcon(Pony player) {
|
||||
Identifier id = Abilities.REGISTRY.getId(this);
|
||||
Race race = player.getObservedSpecies();
|
||||
return new Identifier(id.getNamespace(), "textures/gui/ability/" + id.getPath()
|
||||
+ (player.getPhysics().isFlying() ? "_land" : "_takeoff")
|
||||
+ "_" + player.getObservedSpecies().getId().getPath()
|
||||
+ "_" + (race.isHuman() ? Race.EARTH : race).getId().getPath()
|
||||
+ ".png");
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5 KiB |
After Width: | Height: | Size: 5 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 8.3 KiB |