mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-30 07:57:59 +01:00
Adjust yearling dimensions to be big headed :3
This commit is contained in:
parent
79f7de8f51
commit
57206213c5
2 changed files with 30 additions and 1 deletions
|
@ -7,7 +7,7 @@ public enum PonySize implements ITriggerPixelMapped<PonySize> {
|
|||
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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue