diff --git a/src/main/java/com/minelittlepony/pony/data/PonySize.java b/src/main/java/com/minelittlepony/pony/data/PonySize.java index defb77f6..7366cee2 100644 --- a/src/main/java/com/minelittlepony/pony/data/PonySize.java +++ b/src/main/java/com/minelittlepony/pony/data/PonySize.java @@ -7,7 +7,7 @@ public enum PonySize implements ITriggerPixelMapped { TALL(0x534b76, 0.45f, 1.1F, PonyTransformation.TALL), LARGE(0xce3254, 0.5f, 1, PonyTransformation.LARGE), NORMAL(0, 0.4f, 0.8F, PonyTransformation.NORMAL), - YEARLING(0x53beff, 0.4F, 0.7F, PonyTransformation.TALL), + YEARLING(0x53beff, 0.4F, 0.6F, PonyTransformation.YEARLING), FOAL(0xffbe53, 0.25f, 0.6F, PonyTransformation.FOAL); private int triggerValue; diff --git a/src/main/java/com/minelittlepony/transform/PonyTransformation.java b/src/main/java/com/minelittlepony/transform/PonyTransformation.java index ed370dfa..a6434469 100644 --- a/src/main/java/com/minelittlepony/transform/PonyTransformation.java +++ b/src/main/java/com/minelittlepony/transform/PonyTransformation.java @@ -107,6 +107,35 @@ public enum PonyTransformation { break; } } + }, + YEARLING { + @Override + public void transform(IModel model, BodyPart part) { + if (model.isCrouching()) translate(0, -0.15F, 0); + if (model.isSleeping()) translate(0, -0.5F, 0.25F); + + switch (part) { + case NECK: + translate(0, -0.09F, -0.01F); + scale(1, 1.1F, 1); + if (model.isCrouching()) translate(-0.02F, -0.02F, 0.1F); + break; + case HEAD: + translate(0, -0.15F, 0.01F); + if (model.isCrouching()) translate(0, 0.04F, 0); + scale(1.15F, 1.15F, 1.15F); + break; + case BODY: + case TAIL: + translate(0, -0.1F, 0); + break; + case LEGS: + translate(0, -0.25F, 0.03F); + scale(1, 1.18F, 1); + if (model.isGoingFast()) translate(0, 0.05F, 0); + break; + } + } }; public abstract void transform(IModel model, BodyPart part);