Skip to content

Commit

Permalink
4 new moa's and their spawning stats
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXBlade committed Nov 11, 2024
1 parent c9a738e commit 477f5e8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,46 +21,69 @@
* @author Jack Papel
*/
public class MoaRaces {
//Common-medium
public static final MoaRace HIGHLANDS_BLUE = register("highlands_blue", new MoaRace(DROP_MULTIPLIER, MEATY));
public static final MoaRace HIGHLANDS_CYAN = register("highlands_cyan", new MoaRace(GLIDING_DECAY, MEATY));
public static final MoaRace GOLDENROD = register("goldenrod", new MoaRace(GROUND_SPEED, ENDURANCE));
public static final MoaRace MINTGRASS = register("mintgrass", new MoaRace(GLIDING_SPEED, SPEED));
public static final MoaRace STRAWBERRY_WISTAR = register("strawberry_wistar", new MoaRace(GLIDING_DECAY, SPEED));
public static final MoaRace TANGERINE = register("tangerine", new MoaRace(JUMPING_STRENGTH, SPEED));

//Mildly rare
public static final MoaRace STRAWBERRY_WISTAR = register("strawberry_wistar", new MoaRace(GLIDING_SPEED, SPEED));
public static final MoaRace BLACKCURRANT_WISTAR = register("blackcurrant_wistar", new MoaRace(GLIDING_DECAY, GLIDE));
public static final MoaRace GREYHOUND = register("greyhound", new MoaRace(GROUND_SPEED, ENDURANCE));
public static final MoaRace FROSTGRASS = register("frostgrass", new MoaRace(JUMPING_STRENGTH, TANK));

//Rare
public static final MoaRace FOXTROT = register("foxtrot", new MoaRace(GLIDING_DECAY, GLIDE));
public static final MoaRace SCARLET = register("scarlet", new MoaRace(GLIDING_SPEED, ENDURANCE));
public static final MoaRace SCARLET = register("scarlet", new MoaRace(GROUND_SPEED, SPEED));
public static final MoaRace REDHOOD = register("redhood", new MoaRace(MAX_HEALTH, TANK));

//Mythical
public static final MoaRace MOONSTRUCK = register("moonstruck", new MoaRace(GLIDING_SPEED, GLIDE, true, true, ParticleTypes.GLOW));

//Breeding exclusive ones perhaps?
public static final MoaRace GREENSEED = register("greenseed", new MoaRace(JUMPING_STRENGTH, ENDURANCE));

private static MoaRace register(String name, MoaRace race) {
return MoaAPI.register(ParadiseLost.locate(name), race);
}

// Register breeding and spawning.
public static void init() {
registerSpawning(HIGHLANDS_BLUE, 50, HIGHLANDS_PLAINS_KEY);
registerSpawning(HIGHLANDS_BLUE, 50, HIGHLANDS_FOREST_KEY);
registerSpawning(HIGHLANDS_BLUE, 45, HIGHLANDS_FOREST_KEY);

registerSpawning(GOLDENROD, 10, HIGHLANDS_PLAINS_KEY);
registerSpawning(HIGHLANDS_CYAN, 30, HIGHLANDS_PLAINS_KEY); //New, variation for the normal blue one

registerSpawning(GOLDENROD, 10, HIGHLANDS_SHIELD_KEY);
registerSpawning(GOLDENROD, 25, HIGHLANDS_FOREST_KEY);
registerSpawning(GOLDENROD, 49, WISTERIA_WOODS_KEY);
registerSpawning(GOLDENROD, 45, WISTERIA_WOODS_KEY);

registerSpawning(MINTGRASS, 40, HIGHLANDS_PLAINS_KEY);
registerSpawning(MINTGRASS, 35, HIGHLANDS_PLAINS_KEY);
registerSpawning(MINTGRASS, 45, HIGHLANDS_THICKET_KEY);

registerSpawning(STRAWBERRY_WISTAR, 49, WISTERIA_WOODS_KEY);
registerSpawning(STRAWBERRY_WISTAR, 45, WISTERIA_WOODS_KEY);
registerSpawning(BLACKCURRANT_WISTAR, 29, WISTERIA_WOODS_KEY); //New, spawns here because fits nice with biome colors

registerSpawning(GREYHOUND, 15, HIGHLANDS_PLAINS_KEY); //New, spawns on plains because it runs fast

registerSpawning(FROSTGRASS, 10, AUTUMNAL_TUNDRA_KEY); //New, Tundra boye

registerSpawning(TANGERINE, 15, HIGHLANDS_FOREST_KEY);
registerSpawning(TANGERINE, 50, HIGHLANDS_THICKET_KEY);
registerSpawning(TANGERINE, 45, HIGHLANDS_THICKET_KEY);
registerBreeding(TANGERINE, 0.5F, GOLDENROD, STRAWBERRY_WISTAR);

registerSpawning(FOXTROT, 5, HIGHLANDS_THICKET_KEY);
registerSpawning(FOXTROT, 4, HIGHLANDS_SHIELD_KEY);
registerBreeding(FOXTROT, 0.2F, TANGERINE, GOLDENROD);

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

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

registerBreeding(GREENSEED, 0.1F, SCARLET, MINTGRASS); //New

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

Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/assets/paradise_lost/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@
"moa.race.paradise_lost.scarlet": "Scarlet",
"moa.race.paradise_lost.strawberry_wistar": "Strawberry Wistar",
"moa.race.paradise_lost.tangerine": "Tangerine",
"moa.race.paradise_lost.blackcurrant_wistar": "Blackcurrant Wistar",
"moa.race.paradise_lost.greyhound": "Greyhound",
"moa.race.paradise_lost.frostgrass": "Frostgrass",
"moa.race.paradise_lost.highlands_cyan": "Common Cyan",
"moa.race.paradise_lost.greenseed": "Greenseed",

"moa.attribute.ground_speed": "Running Speed",
"moa.attribute.gliding_speed": "Flying Speed",
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.
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 477f5e8

Please sign in to comment.