mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 15:37:59 +01:00
Rename LARGE -> BULKY and added a LANKY body type (used for Fleur)
This commit is contained in:
parent
699136e809
commit
f66f78693f
3 changed files with 38 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue