Rename LARGE -> BULKY and added a LANKY body type (used for Fleur)

This commit is contained in:
Sollace 2018-10-20 19:09:58 +02:00
parent 699136e809
commit f66f78693f
3 changed files with 38 additions and 3 deletions

View file

@ -782,7 +782,7 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P
case NORMAL: return 0.4F;
case FOAL:
case TALL:
case LARGE:
case BULKY:
default: return 0.25F;
}
}

View file

@ -5,7 +5,8 @@ import com.minelittlepony.transform.PonyTransformation;
public enum PonySize implements ITriggerPixelMapped<PonySize> {
TALL(0x534b76, 0.45f, 1.1F, PonyTransformation.TALL),
LARGE(0xce3254, 0.5f, 1, PonyTransformation.LARGE),
BULKY(0xce3254, 0.5f, 1, PonyTransformation.BULKY),
LANKY(0x3254ce, 0.45F, 0.85F, PonyTransformation.LANKY),
NORMAL(0, 0.4f, 0.8F, PonyTransformation.NORMAL),
YEARLING(0x53beff, 0.4F, 0.6F, PonyTransformation.YEARLING),
FOAL(0xffbe53, 0.25f, 0.6F, PonyTransformation.FOAL);

View file

@ -31,7 +31,41 @@ public enum PonyTransformation {
}
}
},
LARGE(0, 2.3F, 0.3F) {
LANKY(0, 2.3F, 0.3F) {
@Override
public void transform(IModel model, BodyPart part) {
if (model.isCrouching()) translate(0, -0.15F, 0);
if (model.isSleeping()) translate(0, -0.98F, 0.2F);
if (model.isRiding()) translate(0, 0, -0.2F);
switch (part) {
case NECK:
translate(0, -0.15F, -0.07F);
if (model.isCrouching()) translate(-0.03F, 0.16F, 0.07F);
break;
case HEAD:
translate(0, -0.17F, -0.04F);
if (model.isSleeping()) translate(0, 0, -0.1F);
if (model.isCrouching()) translate(0, 0.15F, 0);
break;
case BODY:
translate(0, -0.2F, -0.04F);
scale(0.9F, 1.2F, 0.9F);
break;
case TAIL:
translate(0, -0.2F, 0.08F);
break;
case LEGS:
translate(0, -0.18F, 0);
scale(0.9F, 1.12F, 0.9F);
break;
case BACK:
translateVec(riderOffset);
break;
}
}
},
BULKY(0, 2.3F, 0.3F) {
@Override
public void transform(IModel model, BodyPart part) {
if (model.isCrouching()) translate(0, -0.15F, 0);