Skip to content

Commit

Permalink
2 new potential moas + small stats
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXBlade committed Nov 10, 2024
1 parent 531c213 commit 35286c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/main/java/net/id/paradiselost/api/MoaAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ public record MoaBreedingContext(MoaGenes parentA, MoaGenes parentB, World world
public enum SpawnStatWeighting {
// Isn't this array of numbers nice? Could probably be defined in json instead.
SPEED(0.08F, 0.1F, 0.02F, 0.03F, 0F, 0.1F, 0F, -0.01F, 0, 8, 0f, 0.02f),
GLIDE(0.013F, 0.08F, 0.035F, 0.039F, -0.04F, 0.08F, 0F, -0.01F, 0, 6, 0f, 0.02f),
ENDURANCE(0.023F, 0.06F, 0.02F, 0.02F, -0.085F, 0.08F, -0.01F, -0.02F, 2, 8, 0f, 0.02f),
TANK(0.0F, 0.07F, 0.01F, 0.02F, -0.025F, 0.01F, -0.02F, -0.01F, 6, 6, 0.4f, 0.02f),
MEATY(0.03F, 0.07F, 0.01F, 0.02F, -0.025F, 0.05F, -0.02F, -0.01F, 0, 2, 1.1f, 0.6f),
GLIDE(0.013F, 0.08F, 0.035F, 0.039F, 0F, 0.08F, 0F, 0.005F, 0, 6, 0f, 0.02f),
ENDURANCE(0.023F, 0.06F, 0.02F, 0.02F, -0.02F, 0.08F, -0.01F, -0.01F, 2, 8, 0f, 0.02f),
TANK(0.0F, 0.07F, 0.01F, 0.02F, -0.025F, 0.11F, -0.02F, -0.01F, 4, 6, 0.4f, 0.02f),
MEATY(0.03F, 0.07F, 0.01F, 0.02F, -0.025F, 0.15F, -0.02F, -0.01F, 0, 2, 1.1f, 0.6f),
MYTHICAL_SPEED(0.31F, 0.17F, 0.082F, 0.0375F, 0F, 0.1F, 0F, -0.01F, 0, 8, 0.5f, 0.02f),
MYTHICAL_GLIDE(0.013F, 0.08F, 0.035F, 0.039F, -0.085F, 0.085F, 0F, -0.01F, 0, 6, 0.5f, 0.02f),
MYTHICAL_TANK(0.0F, 0.07F, 0.01F, 0.02F, -0.025F, 0.05F, -0.03F, -0.01F, 14, 6, 0.5f, 0.02f),
MYTHICAL_ALL(0.31F, 0.17F, 0.035F, 0.039F, -0.085F, 0.085F, -0.03F, -0.01F, 14, 6, 0.5f, 0.02f);
MYTHICAL_GLIDE(0.013F, 0.08F, 0.035F, 0.039F, 0F, 0.185F, 0F, -0.01F, 0, 6, 0.5f, 0.02f),
MYTHICAL_TANK(0.0F, 0.07F, 0.01F, 0.02F, -0.025F, 0.15F, -0.03F, -0.01F, 14, 6, 0.5f, 0.02f),
MYTHICAL_ALL(0.31F, 0.17F, 0.035F, 0.039F, -0.085F, 0.185F, -0.03F, -0.01F, 14, 6, 0.5f, 0.02f);

private final ImmutableMap<MoaAttributes, Weighting> data;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public static void init() {
registerBreeding(FOXTROT, 0.2F, TANGERINE, GOLDENROD);

registerSpawning(SCARLET, 2, WISTERIA_WOODS_KEY);
registerBreeding(SCARLET, 0.075F, STRAWBERRY_WISTAR, HIGHLANDS_BLUE);
registerBreeding(SCARLET, 15F, STRAWBERRY_WISTAR, HIGHLANDS_BLUE);

registerSpawning(REDHOOD, 5, HIGHLANDS_THICKET_KEY);
registerBreeding(REDHOOD, 0.1F, FOXTROT, HIGHLANDS_BLUE);
registerBreeding(REDHOOD, 10F, FOXTROT, HIGHLANDS_BLUE);

Predicate<MoaBreedingContext> moonstruckRequirements = ctx -> ctx.world().isNight() && ctx.world().getRandom().nextFloat() <= 0.25F;

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35286c5

Please sign in to comment.