mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Merge pull request #129 from Vexatos/master-origin
Localized butterfly names, tree names and fixed custom bee names, added custom tree names, fixed butterfly species mistakes and fixed spectacles not rendering properly
This commit is contained in:
commit
d777a08edd
23 files changed
+169
-110
No files matched your search
+1
-1
Submodule api updated: 6040691d7c...afbce9780f.
@@ -10,6 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.apiculture.genetics;
|
||||
|
||||
import forestry.core.utils.StringUtil;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import forestry.api.apiculture.IAlleleBeeEffect;
|
||||
@@ -46,7 +47,7 @@ public class AlleleEffectNone extends Allele implements IAlleleBeeEffect {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "None";
|
||||
return StringUtil.localize("apiculture.effect.none");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,6 +32,7 @@ import forestry.core.gui.GuiAlyzer;
|
||||
import forestry.core.utils.StringUtil;
|
||||
import forestry.core.utils.Vect;
|
||||
import forestry.plugins.PluginApiculture;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class GuiBeealyzer extends GuiAlyzer {
|
||||
|
||||
@@ -145,7 +146,10 @@ public class GuiBeealyzer extends GuiAlyzer {
|
||||
newLine();
|
||||
newLine();
|
||||
|
||||
drawSpeciesRow(StringUtil.localize("gui.species"), bee, EnumBeeChromosome.SPECIES);
|
||||
String customPrimaryBeeKey = "bees.custom.beealyzer." + bee.getGenome().getPrimary().getUnlocalizedName().replace("bees.species.", "");
|
||||
String customSecondaryBeeKey = "bees.custom.beealyzer." + bee.getGenome().getSecondary().getUnlocalizedName().replace("bees.species.", "");
|
||||
|
||||
drawSpeciesRow(StringUtil.localize("gui.species"), bee, EnumBeeChromosome.SPECIES, checkCustomName(customPrimaryBeeKey), checkCustomName(customSecondaryBeeKey));
|
||||
|
||||
drawRow(StringUtil.localize("gui.lifespan"), bee.getGenome().getActiveAllele(EnumBeeChromosome.LIFESPAN.ordinal()).getName(),
|
||||
bee.getGenome().getInactiveAllele(EnumBeeChromosome.LIFESPAN.ordinal()).getName(), bee,
|
||||
@@ -158,9 +162,9 @@ public class GuiBeealyzer extends GuiAlyzer {
|
||||
bee.getGenome().getInactiveAllele(EnumBeeChromosome.FLOWERING.ordinal()).getName(), bee,
|
||||
EnumBeeChromosome.FLOWERING);
|
||||
|
||||
drawRow(StringUtil.localize("gui.flowers"), StringUtil.localize(bee.getGenome().getFlowerProvider().getDescription()),
|
||||
StringUtil.localize(((IAlleleFlowers) bee.getGenome().getInactiveAllele(EnumBeeChromosome.FLOWER_PROVIDER.ordinal())).getProvider()
|
||||
.getDescription()), bee, EnumBeeChromosome.FLOWER_PROVIDER);
|
||||
drawRow(StringUtil.localize("gui.flowers"), bee.getGenome().getFlowerProvider().getDescription(),
|
||||
((IAlleleFlowers) bee.getGenome().getInactiveAllele(EnumBeeChromosome.FLOWER_PROVIDER.ordinal())).getProvider()
|
||||
.getDescription(), bee, EnumBeeChromosome.FLOWER_PROVIDER);
|
||||
|
||||
drawLine(StringUtil.localize("gui.fertility"), COLUMN_0);
|
||||
drawFertilityInfo(bee.getGenome().getFertility(), COLUMN_1, getColorCoding(bee.getGenome().getActiveAllele(EnumBeeChromosome.FERTILITY.ordinal())
|
||||
@@ -175,8 +179,8 @@ public class GuiBeealyzer extends GuiAlyzer {
|
||||
drawRow(StringUtil.localize("gui.area"), area.toString(), ((AlleleArea) bee.getGenome().getInactiveAllele(EnumBeeChromosome.TERRITORY.ordinal()))
|
||||
.getArea().toString(), bee, EnumBeeChromosome.TERRITORY);
|
||||
|
||||
drawRow(StringUtil.localize("gui.effect"), StringUtil.localize(bee.getGenome().getEffect().getName()),
|
||||
StringUtil.localize(((IAlleleBeeEffect) bee.getGenome().getInactiveAllele(EnumBeeChromosome.EFFECT.ordinal())).getName()), bee,
|
||||
drawRow(StringUtil.localize("gui.effect"), bee.getGenome().getEffect().getName(),
|
||||
((IAlleleBeeEffect) bee.getGenome().getInactiveAllele(EnumBeeChromosome.EFFECT.ordinal())).getName(), bee,
|
||||
EnumBeeChromosome.EFFECT);
|
||||
|
||||
newLine();
|
||||
|
||||
@@ -74,7 +74,7 @@ public class ItemBeeGE extends ItemGE {
|
||||
|
||||
IBee individual = new Bee(itemstack.getTagCompound());
|
||||
String customBeeKey = "bees.custom." + type.getName() + "." + individual.getGenome().getPrimary().getUnlocalizedName().replace("bees.species.","");
|
||||
if(StatCollector.canTranslate(customBeeKey)){
|
||||
if(StatCollector.canTranslate("for." + customBeeKey)){
|
||||
return StringUtil.localize(customBeeKey);
|
||||
}
|
||||
return StringUtil.localize("bees.grammar." + type.getName()).replaceAll("%SPECIES", individual.getDisplayName()).replaceAll("%TYPE", StringUtil.localize("bees.grammar." + type.getName() + ".type"));
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.arboriculture.genetics;
|
||||
|
||||
import forestry.core.utils.StringUtil;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -39,7 +40,7 @@ public class AlleleLeafEffectNone extends Allele implements IAlleleLeafEffect {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "None";
|
||||
return StringUtil.localize("arboriculture.effect.none");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,6 +12,7 @@ package forestry.arboriculture.genetics;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.init.Blocks;
|
||||
@@ -101,7 +102,7 @@ public class AlleleTreeSpecies extends AlleleSpecies implements IAlleleTreeSpeci
|
||||
|
||||
public AlleleTreeSpecies(String uid, boolean isDominant, String name, IClassification branch, String binomial, int primaryColor, int secondaryColor,
|
||||
Class<? extends WorldGenArboriculture> generator, ItemStack wood) {
|
||||
super(uid, isDominant, name, branch, binomial);
|
||||
super(uid, isDominant, "trees.species." + name, branch, binomial);
|
||||
|
||||
this.root = (ITreeRoot)AlleleManager.alleleRegistry.getSpeciesRoot("rootTrees");
|
||||
this.generatorClass = generator;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.arboriculture.genetics;
|
||||
|
||||
import forestry.core.utils.StringUtil;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
@@ -38,7 +39,7 @@ public class GrowthProvider implements IGrowthProvider {
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Light";
|
||||
return StringUtil.localize("gui.growth.normal");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,6 +12,7 @@ package forestry.arboriculture.genetics;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import forestry.core.utils.StringUtil;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import forestry.api.arboriculture.EnumGrowthConditions;
|
||||
@@ -41,7 +42,7 @@ public class GrowthProviderTropical extends GrowthProvider {
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Tropical";
|
||||
return StringUtil.localize("gui.growth.tropical");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,6 +16,7 @@ import java.util.Locale;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.common.EnumPlantType;
|
||||
|
||||
import forestry.api.arboriculture.EnumTreeChromosome;
|
||||
@@ -146,7 +147,10 @@ public class GuiTreealyzer extends GuiAlyzer {
|
||||
newLine();
|
||||
newLine();*/
|
||||
|
||||
drawSpeciesRow(StringUtil.localize("gui.species"), tree, EnumTreeChromosome.SPECIES);
|
||||
String customPrimaryTreeKey = "trees.custom.treealyzer." + tree.getGenome().getPrimary().getUnlocalizedName().replace("trees.species.", "");
|
||||
String customSecondaryTreeKey = "trees.custom.treealyzer." + tree.getGenome().getSecondary().getUnlocalizedName().replace("trees.species.", "");
|
||||
|
||||
drawSpeciesRow(StringUtil.localize("gui.species"), tree, EnumTreeChromosome.SPECIES, checkCustomName(customPrimaryTreeKey), checkCustomName(customSecondaryTreeKey));
|
||||
newLine();
|
||||
|
||||
drawLine(StringUtil.localize("gui.saplings"), COLUMN_0);
|
||||
@@ -196,8 +200,8 @@ public class GuiTreealyzer extends GuiAlyzer {
|
||||
|
||||
newLine();
|
||||
|
||||
drawRow(StringUtil.localize("gui.effect"), StringUtil.localize(tree.getGenome().getEffect().getName()),
|
||||
StringUtil.localize(((IAlleleEffect) tree.getGenome().getInactiveAllele(EnumTreeChromosome.EFFECT.ordinal())).getName()), tree,
|
||||
drawRow(StringUtil.localize("gui.effect"), tree.getGenome().getEffect().getName(),
|
||||
((IAlleleEffect) tree.getGenome().getInactiveAllele(EnumTreeChromosome.EFFECT.ordinal())).getName(), tree,
|
||||
EnumTreeChromosome.EFFECT);
|
||||
|
||||
newLine();
|
||||
@@ -264,9 +268,9 @@ public class GuiTreealyzer extends GuiAlyzer {
|
||||
newLine();
|
||||
|
||||
if (families0.length > i)
|
||||
drawLine(StringUtil.localize(families0[i].getName()), COLUMN_1, speciesDominance0);
|
||||
drawLine(families0[i].getName(), COLUMN_1, speciesDominance0);
|
||||
if (families1.length > i)
|
||||
drawLine(StringUtil.localize(families1[i].getName()), COLUMN_2, speciesDominance1);
|
||||
drawLine(families1[i].getName(), COLUMN_2, speciesDominance1);
|
||||
|
||||
}
|
||||
|
||||
@@ -296,9 +300,9 @@ public class GuiTreealyzer extends GuiAlyzer {
|
||||
IFruitFamily secondary = ((IAlleleFruit) tree.getGenome().getInactiveAllele(EnumTreeChromosome.FRUITS.ordinal())).getProvider().getFamily();
|
||||
|
||||
if (primary != null)
|
||||
drawLine(StringUtil.localize(primary.getName()), COLUMN_1, fruitDominance0);
|
||||
drawLine(primary.getName(), COLUMN_1, fruitDominance0);
|
||||
if (secondary != null)
|
||||
drawLine(StringUtil.localize(secondary.getName()), COLUMN_2, fruitDominance1);
|
||||
drawLine(secondary.getName(), COLUMN_2, fruitDominance1);
|
||||
|
||||
endPage();
|
||||
}
|
||||
|
||||
@@ -12,12 +12,14 @@ package forestry.arboriculture.items;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import forestry.core.utils.StringUtil;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -78,7 +80,11 @@ public class ItemGermlingGE extends ItemGE implements IVariableFermentable {
|
||||
if (!itemstack.hasTagCompound())
|
||||
return "Unknown";
|
||||
IIndividual individual = getIndividual(itemstack);
|
||||
return individual.getDisplayName() + " " + type.getName();
|
||||
String customTreeKey = "trees.custom." + type.getName() + "." + individual.getGenome().getPrimary().getUnlocalizedName().replace("trees.species.","");
|
||||
if(StatCollector.canTranslate("for." + customTreeKey)){
|
||||
return StringUtil.localize(customTreeKey);
|
||||
}
|
||||
return StringUtil.localize("trees.grammar." + type.getName()).replaceAll("%SPECIES", individual.getDisplayName()).replaceAll("%TYPE", StringUtil.localize("trees.grammar." + type.getName() + ".type"));
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
||||
@@ -187,7 +187,7 @@ public class BlockBase extends BlockForestry {
|
||||
ownerName = tile.getOwnerProfile().getName();
|
||||
|
||||
|
||||
player.addChatMessage(new ChatComponentTranslation("\u00A7c%s %s", new ChatComponentText(ownerName), new ChatComponentTranslation("chat.accesslocked")));
|
||||
player.addChatMessage(new ChatComponentTranslation("for.chat.accesslocked",ownerName));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public abstract class BlockStructure extends BlockForestry {
|
||||
if (tile.getOwnerProfile() != null)
|
||||
ownerName = tile.getOwnerProfile().getName();
|
||||
|
||||
player.addChatMessage(new ChatComponentTranslation("\u00A7c%s %s", new ChatComponentText(ownerName), new ChatComponentTranslation("chat.accesslocked")));
|
||||
player.addChatMessage(new ChatComponentTranslation("for.chat.accesslocked",ownerName));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
package forestry.core.genetics;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.IllegalFormatException;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import forestry.core.utils.StringUtil;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
@@ -23,6 +25,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTUtil;
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -84,10 +87,10 @@ public class ItemResearchNote extends ItemForestry {
|
||||
if(encoded == null)
|
||||
return tooltips;
|
||||
|
||||
tooltips.add("\u00A7aMutation discovered!");
|
||||
tooltips.add(String.format("\u00A7e'%s'\u00A77 and \u00A7e'%s'\u00A77.", encoded.getAllele0().getName(), encoded.getAllele1().getName()));
|
||||
tooltips.add(String.format("Chance for success is \u00A79%s\u00A77.", EnumMutateChance.rateChance(encoded.getBaseChance())));
|
||||
tooltips.add(String.format("New species is \u00A7d'%s'\u00A77.", (encoded.getTemplate()[root.getKaryotypeKey().ordinal()].getName())));
|
||||
tooltips.add(StringUtil.localize("researchNote.discovery.0"));
|
||||
tooltips.add(StringUtil.localize("researchNote.discovery.1").replace("%SPEC1",encoded.getAllele0().getName()).replace("%SPEC2", encoded.getAllele1().getName()));
|
||||
tooltips.add(StringUtil.localizeAndFormat("researchNote.discovery.2", StringUtil.localize("researchNote.chance." + EnumMutateChance.rateChance(encoded.getBaseChance()).toString().toLowerCase(Locale.ENGLISH))));
|
||||
tooltips.add(StringUtil.localizeAndFormat("researchNote.discovery.3", (encoded.getTemplate()[root.getKaryotypeKey().ordinal()].getName())));
|
||||
|
||||
if(encoded.getSpecialConditions() != null && encoded.getSpecialConditions().size() > 0) {
|
||||
for(String line : encoded.getSpecialConditions())
|
||||
@@ -101,8 +104,8 @@ public class ItemResearchNote extends ItemForestry {
|
||||
if(root == null)
|
||||
return tooltips;
|
||||
|
||||
tooltips.add("\u00A7aSpecies researched!");
|
||||
tooltips.add(String.format("\u00A7e'%s'\u00A77 (%s)", allele0.getName(), allele0.getBinomial()));
|
||||
tooltips.add("researchNote.discovered.0");
|
||||
tooltips.add(StringUtil.localizeAndFormat("researchNote.discovered.1", allele0.getName(), allele0.getBinomial()));
|
||||
}
|
||||
|
||||
return tooltips;
|
||||
@@ -123,7 +126,7 @@ public class ItemResearchNote extends ItemForestry {
|
||||
|
||||
IBreedingTracker tracker = encoded.getRoot().getBreedingTracker(world, player.getGameProfile());
|
||||
if(tracker.isDiscovered(encoded)) {
|
||||
player.addChatMessage(new ChatComponentTranslation("chat.cannotmemorizeagain"));
|
||||
player.addChatMessage(new ChatComponentTranslation("for.chat.cannotmemorizeagain"));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -131,7 +134,7 @@ public class ItemResearchNote extends ItemForestry {
|
||||
tracker.registerSpecies((IAlleleSpecies)encoded.getAllele1());
|
||||
tracker.registerSpecies((IAlleleSpecies)encoded.getTemplate()[root.getKaryotypeKey().ordinal()]);
|
||||
tracker.registerMutation(encoded);
|
||||
player.addChatMessage(new ChatComponentTranslation("chat.memorizednote"));
|
||||
player.addChatMessage(new ChatComponentTranslation("for.chat.memorizednote"));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -233,7 +236,7 @@ public class ItemResearchNote extends ItemForestry {
|
||||
@Override
|
||||
public String getItemStackDisplayName(ItemStack itemstack) {
|
||||
ResearchNote note = new ResearchNote(itemstack.getTagCompound());
|
||||
return StringUtil.localizeAndFormat(getUnlocalizedName(itemstack) + ".name", note.researcher.getName());
|
||||
return StringUtil.localizeAndFormatRaw(getUnlocalizedName(itemstack) + ".name", note.researcher.getName());
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
||||
@@ -20,6 +20,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import forestry.api.apiculture.EnumBeeChromosome;
|
||||
@@ -85,7 +86,7 @@ public abstract class GuiAlyzer extends GuiForestry<TileForestry> {
|
||||
getColorCoding(individual.getGenome().getInactiveAllele(chromosome.ordinal()).isDominant()));
|
||||
}
|
||||
|
||||
protected final void drawSpeciesRow(String text0, IIndividual individual, Enum<?> chromosome) {
|
||||
protected final void drawSpeciesRow(String text0, IIndividual individual, Enum<?> chromosome, String customPrimaryName, String customSecondaryName) {
|
||||
IAlleleSpecies primary = individual.getGenome().getPrimary();
|
||||
IAlleleSpecies secondary = individual.getGenome().getSecondary();
|
||||
|
||||
@@ -97,14 +98,32 @@ public abstract class GuiAlyzer extends GuiForestry<TileForestry> {
|
||||
drawItemStack(iconStacks.get(secondary.getUID()), adjustToFactor(guiLeft + column2 + columnwidth + 4), adjustToFactor(guiTop + getLineY()));
|
||||
RenderHelper.disableStandardItemLighting();
|
||||
|
||||
drawSplitLine(primary.getName(), column1, columnwidth, individual, chromosome, false);
|
||||
drawSplitLine(secondary.getName(), column2, columnwidth, individual, chromosome, true);
|
||||
String primaryName;
|
||||
String secondaryName;
|
||||
|
||||
primaryName = customPrimaryName == null ? primary.getName() : customPrimaryName;
|
||||
secondaryName = customSecondaryName == null ? secondary.getName() : customSecondaryName;
|
||||
|
||||
drawSplitLine(primaryName, column1, columnwidth, individual, chromosome, false);
|
||||
drawSplitLine(secondaryName, column2, columnwidth, individual, chromosome, true);
|
||||
|
||||
newLine();
|
||||
newLine();
|
||||
|
||||
}
|
||||
|
||||
protected final void drawSpeciesRow(String text0, IIndividual individual, Enum<?> chromosome){
|
||||
drawSpeciesRow(text0, individual, chromosome, null, null);
|
||||
}
|
||||
|
||||
protected final String checkCustomName(String key){
|
||||
if(StatCollector.canTranslate("for." + key)){
|
||||
return StringUtil.localize(key);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
protected final void drawAnalyticsPageClassification(IIndividual individual) {
|
||||
|
||||
startPage();
|
||||
|
||||
@@ -34,7 +34,8 @@ public class ItemArmorNaturalist extends ItemArmor implements IArmorNaturalist {
|
||||
setCreativeTab(CreativeTabForestry.tabForestry);
|
||||
}
|
||||
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {
|
||||
return Defaults.ID + ":" + Defaults.TEXTURE_NATURALIST_ARMOR_PRIMARY;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,19 @@ public class StringUtil {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Same as localizeAndFormat, only without the "for." prefix. Used for specific items.
|
||||
*/
|
||||
public static String localizeAndFormatRaw(String key, Object... args) {
|
||||
String text = StatCollector.translateToLocal(key).replace("\\n", "\n").replace("@", "%").replace("\\%", "@");
|
||||
|
||||
try {
|
||||
return String.format(text, args);
|
||||
} catch (IllegalFormatException ex) {
|
||||
return "Format error: " + text;
|
||||
}
|
||||
}
|
||||
|
||||
public static String cleanTags(String tag) {
|
||||
return tag.replaceAll("[Ff]orestry\\p{Punct}", "").replaceAll("\\.[Ff]or\\p{Punct}", ".").replaceFirst("^tile\\.", "").replaceFirst("^item\\.", "");
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ package forestry.lepidopterology.genetics;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.init.Items;
|
||||
@@ -51,7 +52,7 @@ public class AlleleButterflySpecies extends AlleleSpecies implements IAlleleButt
|
||||
private final Map<ItemStack, Float> caterpillarLoot = new HashMap<ItemStack, Float>();
|
||||
|
||||
public AlleleButterflySpecies(String uid, boolean isDominant, String name, IClassification branch, String binomial, int serumColour) {
|
||||
super(uid, isDominant, name, branch, binomial);
|
||||
super(uid, isDominant, "butterflies.species." + branch.getParent().getUID().substring((branch.getParent().getLevel().name().toLowerCase(Locale.ENGLISH)).length()+1) + "." + name, branch, binomial);
|
||||
this.root = (IButterflyRoot)AlleleManager.alleleRegistry.getSpeciesRoot("rootButterflies");
|
||||
this.serumColour = serumColour;
|
||||
texture = "forestry:" + Defaults.TEXTURE_PATH_ENTITIES + "/butterflies/" + uid + ".png";
|
||||
|
||||
@@ -14,6 +14,7 @@ import forestry.api.genetics.IEffectData;
|
||||
import forestry.api.lepidopterology.IAlleleButterflyEffect;
|
||||
import forestry.api.lepidopterology.IEntityButterfly;
|
||||
import forestry.core.genetics.Allele;
|
||||
import forestry.core.utils.StringUtil;
|
||||
|
||||
public class AlleleEffectNone extends Allele implements IAlleleButterflyEffect {
|
||||
|
||||
@@ -33,7 +34,7 @@ public class AlleleEffectNone extends Allele implements IAlleleButterflyEffect {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "None";
|
||||
return StringUtil.localize("lepidopterology.effect.none");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -159,12 +159,12 @@ public class GuiFlutterlyzer extends GuiAlyzer {
|
||||
|
||||
newLine();
|
||||
|
||||
drawRow(StringUtil.localize("gui.flowers"), StringUtil.localize(butterfly.getGenome().getFlowerProvider().getDescription()),
|
||||
StringUtil.localize(((IAlleleFlowers) butterfly.getGenome().getInactiveAllele(EnumButterflyChromosome.FLOWER_PROVIDER.ordinal())).getProvider()
|
||||
.getDescription()), butterfly, EnumButterflyChromosome.FLOWER_PROVIDER);
|
||||
drawRow(StringUtil.localize("gui.flowers"), butterfly.getGenome().getFlowerProvider().getDescription(),
|
||||
((IAlleleFlowers) butterfly.getGenome().getInactiveAllele(EnumButterflyChromosome.FLOWER_PROVIDER.ordinal())).getProvider()
|
||||
.getDescription(), butterfly, EnumButterflyChromosome.FLOWER_PROVIDER);
|
||||
|
||||
drawRow(StringUtil.localize("gui.effect"), StringUtil.localize(butterfly.getGenome().getEffect().getName()),
|
||||
StringUtil.localize(((IAlleleEffect) butterfly.getGenome().getInactiveAllele(EnumButterflyChromosome.EFFECT.ordinal())).getName()), butterfly,
|
||||
drawRow(StringUtil.localize("gui.effect"), butterfly.getGenome().getEffect().getName(),
|
||||
((IAlleleEffect) butterfly.getGenome().getInactiveAllele(EnumButterflyChromosome.EFFECT.ordinal())).getName(), butterfly,
|
||||
EnumButterflyChromosome.EFFECT);
|
||||
|
||||
newLine();
|
||||
|
||||
@@ -66,7 +66,7 @@ public class MachineMailbox extends TileBase implements IMailContainer, ISpecial
|
||||
if (PostManager.postRegistry.isLetter(held)) {
|
||||
IPostalState result = this.tryDispatchLetter(held, true);
|
||||
if (!result.isOk())
|
||||
player.addChatMessage(new ChatComponentTranslation("chat.mail." + result.getIdentifier()));
|
||||
player.addChatMessage(new ChatComponentTranslation("for.chat.mail." + result.getIdentifier()));
|
||||
else
|
||||
held.stackSize--;
|
||||
} else
|
||||
|
||||
@@ -190,7 +190,7 @@ public class ItemLetter extends ItemInventoried {
|
||||
entityplayer.openGui(ForestryAPI.instance, GuiId.LetterGUI.ordinal(), world, (int) entityplayer.posX, (int) entityplayer.posY,
|
||||
(int) entityplayer.posZ);
|
||||
} else {
|
||||
entityplayer.addChatMessage(new ChatComponentTranslation("chat.mail.wrongstacksize"));
|
||||
entityplayer.addChatMessage(new ChatComponentTranslation("for.chat.mail.wrongstacksize"));
|
||||
}
|
||||
|
||||
return itemstack;
|
||||
|
||||
@@ -637,26 +637,26 @@ public class PluginArboriculture extends NativePlugin implements IFuelHandler {
|
||||
IFruitFamily nux = new FruitFamily("nuts", "Nux");
|
||||
|
||||
// Deciduous
|
||||
Allele.treeOak = new AlleleTreeSpecies("treeOak", false, "Apple Oak", quercus, "robur",
|
||||
Allele.treeOak = new AlleleTreeSpecies("treeOak", false, "appleOak", quercus, "robur",
|
||||
proxy.getFoliageColorBasic(), WorldGenOak.class, new ItemStack(Blocks.log, 1, 0)).addFruitFamily(pomes)
|
||||
.setVanillaMap(0).setIsSecret();
|
||||
|
||||
Allele.treeDarkOak = new AlleleTreeSpecies("treeDarkOak", false, "Dark Oak", quercus, "velutina",
|
||||
Allele.treeDarkOak = new AlleleTreeSpecies("treeDarkOak", false, "darkOak", quercus, "velutina",
|
||||
proxy.getFoliageColorBasic(), WorldGenDarkOak.class, new ItemStack(Blocks.log2, 1, 1)).addFruitFamily(pomes)
|
||||
.setVanillaMap(5);
|
||||
|
||||
Allele.treeBirch = new AlleleTreeSpecies("treeBirch", false, "Silver Birch", betula,
|
||||
Allele.treeBirch = new AlleleTreeSpecies("treeBirch", false, "silverBirch", betula,
|
||||
"pendula", proxy.getFoliageColorBirch(), 0xb0c648, WorldGenBirch.class, new ItemStack(Blocks.log, 1, 2))
|
||||
.setVanillaMap(2).setIsSecret();
|
||||
Allele.treeLime = new AlleleTreeSpecies("treeLime", true, "Silver Lime", tilia,
|
||||
Allele.treeLime = new AlleleTreeSpecies("treeLime", true, "silverLime", tilia,
|
||||
"tomentosa", 0x5ea107, WorldGenLime.class, ForestryBlock.log1.getItemStack(1, 3)).addFruitFamily(nux)
|
||||
.addFruitFamily(prunes).addFruitFamily(pomes);
|
||||
|
||||
// Nucifera
|
||||
Allele.treeWalnut = new AlleleTreeSpecies("treeWalnut", true, "Common Walnut", juglans,
|
||||
Allele.treeWalnut = new AlleleTreeSpecies("treeWalnut", true, "commonWalnut", juglans,
|
||||
"regia", 0x798c55, 0xb0c648, WorldGenWalnut.class, ForestryBlock.log4.getItemStack(1, 1)).addFruitFamily(nux)
|
||||
.addFruitFamily(prunes).addFruitFamily(pomes).setGirth(2);
|
||||
Allele.treeChestnut = new AlleleTreeSpecies("treeChestnut", true, "Sweet Chestnut",
|
||||
Allele.treeChestnut = new AlleleTreeSpecies("treeChestnut", true, "sweetChestnut",
|
||||
castanea, "sativa", 0x5ea107, 0xb0c648, WorldGenChestnut.class, ForestryBlock.log2.getItemStack(1, 0)).addFruitFamily(nux)
|
||||
.addFruitFamily(prunes).addFruitFamily(pomes).setGirth(2);
|
||||
|
||||
@@ -664,49 +664,49 @@ public class PluginArboriculture extends NativePlugin implements IFuelHandler {
|
||||
// <CovertJaguar> fructifer, annifer, bifer, aurifer = bearing fruit,
|
||||
// bearing fruit year round, bearing fruit twice a year, bearing golden
|
||||
// fruit
|
||||
Allele.treeCherry = new AlleleTreeSpecies("treeCherry", true, "Hill Cherry", prunus,
|
||||
Allele.treeCherry = new AlleleTreeSpecies("treeCherry", true, "hillCherry", prunus,
|
||||
"serrulata", 0xe691da, 0xe63e59, WorldGenCherry.class, ForestryBlock.log4.getItemStack(1, 3)).addFruitFamily(prunes)
|
||||
.addFruitFamily(pomes);
|
||||
Allele.treeLemon = new AlleleTreeSpecies("treeLemon", true, "Lemon", citrus, "limon",
|
||||
Allele.treeLemon = new AlleleTreeSpecies("treeLemon", true, "lemon", citrus, "limon",
|
||||
0x88af54, 0xa3b850, WorldGenLemon.class, ForestryBlock.log6.getItemStack(1, 3)).addFruitFamily(pomes).addFruitFamily(
|
||||
prunes);
|
||||
Allele.treePlum = new AlleleTreeSpecies("treePlum", true, "Plum", prunus, "domestica",
|
||||
Allele.treePlum = new AlleleTreeSpecies("treePlum", true, "plum", prunus, "domestica",
|
||||
0x589246, 0xa3b850, WorldGenPlum.class, ForestryBlock.log6.getItemStack(1, 1)).addFruitFamily(pomes)
|
||||
.addFruitFamily(prunes);
|
||||
|
||||
// Maples
|
||||
Allele.treeMaple = new AlleleTreeSpecies("treeMaple", true, "Sugar Maple", acer,
|
||||
Allele.treeMaple = new AlleleTreeSpecies("treeMaple", true, "sugarMaple", acer,
|
||||
"saccharum", 0xd4f425, 0x619a3c, WorldGenMaple.class, ForestryBlock.log6.getItemStack(1, 2)).addFruitFamily(prunes)
|
||||
.addFruitFamily(pomes).setLeafIndices("maple");
|
||||
|
||||
Allele.treeSpruce = new AlleleTreeSpecies("treeSpruce", false, "Red Spruce", picea,
|
||||
Allele.treeSpruce = new AlleleTreeSpecies("treeSpruce", false, "redSpruce", picea,
|
||||
"abies", proxy.getFoliageColorPine(), 0x539d12, WorldGenSpruce.class, new ItemStack(Blocks.log, 1, 1))
|
||||
.setLeafIndices("conifers").setVanillaMap(1).setIsSecret();
|
||||
Allele.treeLarch = new AlleleTreeSpecies("treeLarch", true, "Mundane Larch", larix,
|
||||
Allele.treeLarch = new AlleleTreeSpecies("treeLarch", true, "mundaneLarch", larix,
|
||||
"decidua", 0x698f90, 0x569896, WorldGenLarch.class, ForestryBlock.log1.getItemStack(1, 0)).setLeafIndices("conifers");
|
||||
Allele.treePine = new AlleleTreeSpecies("treePine", true, "Bull Pine", pinus, "sabiniana",
|
||||
Allele.treePine = new AlleleTreeSpecies("treePine", true, "bullPine", pinus, "sabiniana",
|
||||
0xfeff8f, 0xffd98f, WorldGenPine.class, ForestryBlock.log6.getItemStack(1, 0)).setLeafIndices("conifers");
|
||||
|
||||
Allele.treeSequioa = new AlleleTreeSpecies("treeSequioa", false, "Coast Sequoia", sequoia,
|
||||
Allele.treeSequioa = new AlleleTreeSpecies("treeSequioa", false, "coastSequoia", sequoia,
|
||||
"sempervirens", 0x418e71, 0x569896, WorldGenSequoia.class, ForestryBlock.log2.getItemStack(1, 3)).setLeafIndices(
|
||||
"conifers").setGirth(3);
|
||||
Allele.treeGiganteum = new AlleleTreeSpecies("treeGigant", false, "Giant Sequoia",
|
||||
Allele.treeGiganteum = new AlleleTreeSpecies("treeGigant", false, "giantSequoia",
|
||||
sequoiadendron, "giganteum", 0x738434, WorldGenGiganteum.class, ForestryBlock.log2.getItemStack(1, 3)).setLeafIndices(
|
||||
"conifers").setGirth(4);
|
||||
|
||||
// Jungle
|
||||
Allele.treeJungle = new AlleleTreeSpecies("treeJungle", false, "Jungle", tropical,
|
||||
Allele.treeJungle = new AlleleTreeSpecies("treeJungle", false, "jungle", tropical,
|
||||
"tectona", proxy.getFoliageColorBasic(), 0x539d12, WorldGenJungle.class, new ItemStack(Blocks.log, 1, 3))
|
||||
.addFruitFamily(jungle).setLeafIndices("jungle").setVanillaMap(3).setIsSecret();
|
||||
Allele.treeTeak = new AlleleTreeSpecies("treeTeak", true, "Teak", tectona, "grandis",
|
||||
Allele.treeTeak = new AlleleTreeSpecies("treeTeak", true, "teak", tectona, "grandis",
|
||||
0xfeff8f, 0xffd98f, WorldGenTeak.class, ForestryBlock.log1.getItemStack(1, 3)).addFruitFamily(jungle).setLeafIndices(
|
||||
"jungle");
|
||||
Allele.treeKapok = new AlleleTreeSpecies("treeKapok", true, "Kapok", ceiba, "pentandra",
|
||||
Allele.treeKapok = new AlleleTreeSpecies("treeKapok", true, "kapok", ceiba, "pentandra",
|
||||
0x89987b, 0x89aa9e, WorldGenKapok.class, ForestryBlock.log3.getItemStack(1, 0)).addFruitFamily(jungle)
|
||||
.addFruitFamily(prunes).setLeafIndices("jungle");
|
||||
|
||||
// Ebony
|
||||
Allele.treeEbony = new AlleleTreeSpecies("treeEbony", true, "Myrtle Ebony", diospyros,
|
||||
Allele.treeEbony = new AlleleTreeSpecies("treeEbony", true, "myrtleEbony", diospyros,
|
||||
"pentamera", 0xa2d24a, 0xc4d24a, WorldGenEbony.class, ForestryBlock.log3.getItemStack(1, 1)).addFruitFamily(jungle)
|
||||
.addFruitFamily(prunes).setGirth(3).setLeafIndices("jungle");
|
||||
|
||||
@@ -722,7 +722,7 @@ public class PluginArboriculture extends NativePlugin implements IFuelHandler {
|
||||
// Coromandel Ebony or East Indian Ebony (Diospyros melanoxylon) -
|
||||
// " locally it is known as temburini or by its Hindi name tendu. In Orissa and Jharkhand it known as kendu."
|
||||
// Mahogany
|
||||
Allele.treeMahogany = new AlleleTreeSpecies("treeMahogony", true, "Yellow Meranti", shorea,
|
||||
Allele.treeMahogany = new AlleleTreeSpecies("treeMahogony", true, "yellowMeranti", shorea,
|
||||
"gibbosa", 0x8ab154, 0xa9b154, WorldGenMahogany.class, ForestryBlock.log3.getItemStack(1, 2)).addFruitFamily(jungle)
|
||||
.setGirth(2).setLeafIndices("jungle");
|
||||
|
||||
@@ -732,43 +732,43 @@ public class PluginArboriculture extends NativePlugin implements IFuelHandler {
|
||||
// Shorea smithiana (also called Light Red Meranti)
|
||||
// Shorea superba
|
||||
// Malva
|
||||
Allele.treeAcacia = new AlleleTreeSpecies("treeAcaciaVanilla", true, "Acacia", acacia,
|
||||
Allele.treeAcacia = new AlleleTreeSpecies("treeAcaciaVanilla", true, "acacia", acacia,
|
||||
"aneura", 0x616101, 0xb3b302, WorldGenAcaciaVanilla.class, new ItemStack(Blocks.log2, 1, 0)).addFruitFamily(jungle)
|
||||
.addFruitFamily(nux).setVanillaMap(4);
|
||||
|
||||
Allele.treeDesertAcacia = new AlleleTreeSpecies("treeAcacia", true, "Desert Acacia", acacia,
|
||||
Allele.treeDesertAcacia = new AlleleTreeSpecies("treeAcacia", true, "desertAcacia", acacia,
|
||||
"erioloba", 0x748C1C, 0xb3b302, WorldGenAcacia.class, ForestryBlock.log1.getItemStack(1, 2)).addFruitFamily(jungle)
|
||||
.addFruitFamily(nux);
|
||||
Allele.treeBalsa = new AlleleTreeSpecies("treeBalsa", true, "Balsa", ochroma, "pyramidale",
|
||||
Allele.treeBalsa = new AlleleTreeSpecies("treeBalsa", true, "balsa", ochroma, "pyramidale",
|
||||
0x59ac00, 0xfeff8f, WorldGenBalsa.class, ForestryBlock.log3.getItemStack(1, 3)).addFruitFamily(jungle).addFruitFamily(nux);
|
||||
Allele.treeWenge = new AlleleTreeSpecies("treeWenge", true, "Wenge", millettia,
|
||||
Allele.treeWenge = new AlleleTreeSpecies("treeWenge", true, "wenge", millettia,
|
||||
"laurentii", 0xada157, 0xad8a57, WorldGenWenge.class, ForestryBlock.log2.getItemStack(1, 1)).addFruitFamily(jungle)
|
||||
.addFruitFamily(nux).setGirth(2);
|
||||
Allele.treeBaobab = new AlleleTreeSpecies("treeBaobab", true, "Grandidier's Baobab",
|
||||
Allele.treeBaobab = new AlleleTreeSpecies("treeBaobab", true, "grandidierBaobab",
|
||||
adansonia, "digitata", 0xfeff8f, 0xffd98f, WorldGenBaobab.class, ForestryBlock.log2.getItemStack(1, 2))
|
||||
.addFruitFamily(jungle).addFruitFamily(nux).setGirth(3);
|
||||
Allele.treeMahoe = new AlleleTreeSpecies("treeMahoe", true, "Blue Mahoe", talipariti,
|
||||
Allele.treeMahoe = new AlleleTreeSpecies("treeMahoe", true, "blueMahoe", talipariti,
|
||||
"elatum", 0xa0ba1b, 0x79a175, WorldGenMahoe.class, ForestryBlock.log5.getItemStack(1, 0)).addFruitFamily(jungle)
|
||||
.addFruitFamily(pomes).addFruitFamily(prunes);
|
||||
|
||||
// Willows
|
||||
Allele.treeWillow = new AlleleTreeSpecies("treeWillow", true, "White Willow", salix,
|
||||
Allele.treeWillow = new AlleleTreeSpecies("treeWillow", true, "whiteWillow", salix,
|
||||
"alba", 0xa3b8a5, 0xa3b850, WorldGenWillow.class, ForestryBlock.log4.getItemStack(1, 0)).addFruitFamily(nux)
|
||||
.addFruitFamily(prunes).addFruitFamily(pomes).setLeafIndices("willow");
|
||||
|
||||
// Lauraceae
|
||||
Allele.treeSipiri = new AlleleTreeSpecies("treeSipiri", true, "Sipiri", chlorocardium,
|
||||
Allele.treeSipiri = new AlleleTreeSpecies("treeSipiri", true, "sipiri", chlorocardium,
|
||||
"rodiei", 0x678911, 0x79a175, WorldGenGreenheart.class, ForestryBlock.log3.getItemStack(1, 2)).addFruitFamily(jungle);
|
||||
|
||||
// Unclassified
|
||||
Allele.treePapaya = new AlleleTreeSpecies("treePapaya", true, "Papaya", carica, "papaya",
|
||||
Allele.treePapaya = new AlleleTreeSpecies("treePapaya", true, "papaya", carica, "papaya",
|
||||
0x6d9f58, 0x9ee67f, WorldGenPapaya.class, ForestryBlock.log5.getItemStack(1, 3)).addFruitFamily(jungle)
|
||||
.addFruitFamily(nux).setLeafIndices("palm");
|
||||
Allele.treeDate = new AlleleTreeSpecies("treeDate", true, "Date Palm", null, "dactylifera",
|
||||
Allele.treeDate = new AlleleTreeSpecies("treeDate", true, "datePalm", null, "dactylifera",
|
||||
0xcbcd79, 0xf0f38f, WorldGenDate.class, ForestryBlock.log4.getItemStack(1, 2)).addFruitFamily(jungle).addFruitFamily(nux)
|
||||
.setLeafIndices("palm");
|
||||
|
||||
Allele.treePoplar = new AlleleTreeSpecies("treePoplar", true, "White Poplar", populus,
|
||||
Allele.treePoplar = new AlleleTreeSpecies("treePoplar", true, "whitePoplar", populus,
|
||||
"alba", 0xa3b8a5, 0x539d12, WorldGenPoplar.class, ForestryBlock.log5.getItemStack(1, 1)).addFruitFamily(pomes)
|
||||
.addFruitFamily(prunes);
|
||||
|
||||
|
||||
@@ -189,13 +189,13 @@ public class PluginLepidopterology extends NativePlugin {
|
||||
IClassification opisthograptis = createButterflyBranch(geometridae, "Opisthograptis");
|
||||
IClassification chiasmia = createButterflyBranch(geometridae, "Chiasmia");
|
||||
|
||||
Allele.mothBrimstone = new AlleleButterflySpecies("mothBrimstone", true, "Brimstone", opisthograptis, "luteolata", 0xffea40).setNocturnal(true).setRarity(1.0f);
|
||||
Allele.mothLatticedHeath = new AlleleButterflySpecies("mothLatticedHeath", true, "Latticed Heath", chiasmia, "clathrata", 0xf2f0be).setNocturnal(true).setRarity(0.5f);
|
||||
Allele.mothBrimstone = new AlleleButterflySpecies("mothBrimstone", true, "brimstone", opisthograptis, "luteolata", 0xffea40).setNocturnal(true).setRarity(1.0f);
|
||||
Allele.mothLatticedHeath = new AlleleButterflySpecies("mothLatticedHeath", true, "latticedHeath", chiasmia, "clathrata", 0xf2f0be).setNocturnal(true).setRarity(0.5f);
|
||||
|
||||
/* SATURNIIDAE */
|
||||
IClassification attacus = createButterflyBranch(saturniidae, "Attacus");
|
||||
|
||||
Allele.mothAtlas = new AlleleButterflySpecies("mothAtlas", false, "Atlas", attacus, "atlas", 0xd96e3d).setNocturnal(true);
|
||||
Allele.mothAtlas = new AlleleButterflySpecies("mothAtlas", false, "atlas", attacus, "atlas", 0xd96e3d).setNocturnal(true);
|
||||
|
||||
/* PIERIDAE */
|
||||
IClassification pieris = createButterflyBranch(pieridae, "Pieris");
|
||||
@@ -205,31 +205,30 @@ public class PluginLepidopterology extends NativePlugin {
|
||||
IClassification pontia = createButterflyBranch(pieridae, "Pontia");
|
||||
IClassification celastrina = createButterflyBranch(pieridae, "Celastrina");
|
||||
|
||||
Allele.lepiCabbageWhite = new AlleleButterflySpecies("lepiCabbageWhite", true, "Cabbage White", pieris, "rapae", 0xccffee).setRarity(1.0f);
|
||||
Allele.lepiBrimstone = new AlleleButterflySpecies("lepiBrimstone", true, "Brimstone", gonepteryx, "rhamni", 0xf0ee38).setRarity(1.0f);
|
||||
Allele.lepiAurora = new AlleleButterflySpecies("lepiAurora", true, "Orange Tip", anthocharis, "cardamines", 0xe34f05).setRarity(0.5f);
|
||||
Allele.lepiPostillion = new AlleleButterflySpecies("lepiPostillion", true, "Postillion", colias, "croceus", 0xd77e04).setRarity(0.5f);
|
||||
Allele.lepiPalaenoSulphur = new AlleleButterflySpecies("lepiPalaenoSulphur", true, "Palaeno Sulphur", colias, "palaeno", 0xf8fba3).setRarity(0.4f);
|
||||
Allele.lepiReseda = new AlleleButterflySpecies("lepiReseda", true, "Reseda", pontia, "edusa", 0x747d48).setRarity(0.3f);
|
||||
Allele.lepiCabbageWhite = new AlleleButterflySpecies("lepiCabbageWhite", true, "cabbageWhite", pieris, "rapae", 0xccffee).setRarity(1.0f);
|
||||
Allele.lepiBrimstone = new AlleleButterflySpecies("lepiBrimstone", true, "brimstone", gonepteryx, "rhamni", 0xf0ee38).setRarity(1.0f);
|
||||
Allele.lepiAurora = new AlleleButterflySpecies("lepiAurora", true, "orangeTip", anthocharis, "cardamines", 0xe34f05).setRarity(0.5f);
|
||||
Allele.lepiPostillion = new AlleleButterflySpecies("lepiPostillion", true, "postillion", colias, "croceus", 0xd77e04).setRarity(0.5f);
|
||||
Allele.lepiPalaenoSulphur = new AlleleButterflySpecies("lepiPalaenoSulphur", true, "palaenoSulphur", colias, "palaeno", 0xf8fba3).setRarity(0.4f);
|
||||
Allele.lepiReseda = new AlleleButterflySpecies("lepiReseda", true, "reseda", pontia, "edusa", 0x747d48).setRarity(0.3f);
|
||||
|
||||
Allele.lepiSpringAzure = new AlleleButterflySpecies("lepiSpringAzure", true, "Spring Azure", celastrina, "argiolus", 0xb8cae2).setRarity(0.3f);
|
||||
Allele.lepiGozoraAzure = new AlleleButterflySpecies("lepiGozoraAzure", true, "Gozora Azure", celastrina, "gozora", 0x6870e7).setRarity(0.2f);
|
||||
Allele.lepiSpringAzure = new AlleleButterflySpecies("lepiSpringAzure", true, "springAzure", celastrina, "argiolus", 0xb8cae2).setRarity(0.3f);
|
||||
Allele.lepiGozoraAzure = new AlleleButterflySpecies("lepiGozoraAzure", true, "gozoraAzure", celastrina, "gozora", 0x6870e7).setRarity(0.2f);
|
||||
|
||||
/* PAPILIONIDAE */
|
||||
IClassification papilio = createButterflyBranch(papilionidae, "Papilio");
|
||||
IClassification protographium = createButterflyBranch(papilionidae, "Protographium");
|
||||
|
||||
Allele.lepiCitrusSwallow = new AlleleButterflySpecies("lepiCitrusSwallow", false, "Citrus Swallowtail", papilio, "demodocus", 0xeae389).setRarity(1.0f)
|
||||
Allele.lepiCitrusSwallow = new AlleleButterflySpecies("lepiCitrusSwallow", false, "swallowtailC", papilio, "demodocus", 0xeae389).setRarity(1.0f)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
Allele.lepiEmeraldPeacock = new AlleleButterflySpecies("lepiEmeraldPeacock", true, "Emerald Peacock", papilio, "palinurus", 0x7cfe80)
|
||||
Allele.lepiEmeraldPeacock = new AlleleButterflySpecies("lepiEmeraldPeacock", true, "emeraldPeacock", papilio, "palinurus", 0x7cfe80)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
Allele.lepiThoasSwallow = new AlleleButterflySpecies("lepiThoasSwallow", false, "Thoas Swallowtail", papilio, "thoas", 0xeac783).setRarity(0.2f)
|
||||
Allele.lepiThoasSwallow = new AlleleButterflySpecies("lepiThoasSwallow", false, "swallowtailT", papilio, "thoas", 0xeac783).setRarity(0.2f)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
Allele.lepiSpicebush = new AlleleButterflySpecies("lepiSpicebush", true, "Spicebush Swallowtail", papilio, "troilus", 0xeefeff).setRarity(0.5f);
|
||||
Allele.lepiBlackSwallow = new AlleleButterflySpecies("lepiBlackSwallow", true, "Black Swallowtail", papilio, "polyxenes", 0xeac783).setRarity(1.0f);
|
||||
Allele.lepiSpicebush = new AlleleButterflySpecies("lepiSpicebush", true, "swallowtailS", papilio, "troilus", 0xeefeff).setRarity(0.5f);
|
||||
Allele.lepiBlackSwallow = new AlleleButterflySpecies("lepiBlackSwallow", true, "swallowtailB", papilio, "polyxenes", 0xeac783).setRarity(1.0f);
|
||||
|
||||
Allele.lepiZebraSwallow = new AlleleButterflySpecies("lepiZebraSwallow", true, "Zebra Swallowtail", protographium, "marcellus", 0xeafeff).setRarity(0.5f);
|
||||
Allele.lepiDianaFrit = new AlleleButterflySpecies("lepiDianaFrit", true, "Diana Fritillary", protographium, "diana", 0xffac05).setRarity(0.6f);
|
||||
Allele.lepiZebraSwallow = new AlleleButterflySpecies("lepiZebraSwallow", true, "swallowtailZ", protographium, "marcellus", 0xeafeff).setRarity(0.5f);
|
||||
|
||||
/* NYMPHALIDAE */
|
||||
IClassification pararge = createButterflyBranch(nymphalidae, "Pararge");
|
||||
@@ -244,34 +243,37 @@ public class PluginLepidopterology extends NativePlugin {
|
||||
IClassification heliconius = createButterflyBranch(nymphalidae, "Heliconius");
|
||||
IClassification siproeta = createButterflyBranch(nymphalidae, "Siproeta");
|
||||
IClassification cethosia = createButterflyBranch(nymphalidae, "Cethosia");
|
||||
IClassification speyeria = createButterflyBranch(nymphalidae, "Speyeria");
|
||||
|
||||
Allele.lepiGlasswing = new AlleleButterflySpecies("lepiGlasswing", true, "Glasswing", greta, "oto", 0x583732)
|
||||
Allele.lepiGlasswing = new AlleleButterflySpecies("lepiGlasswing", true, "glasswing", greta, "oto", 0x583732)
|
||||
.setTemperature(EnumTemperature.WARM);
|
||||
|
||||
Allele.lepiSpeckledWood = new AlleleButterflySpecies("lepiSpeckledWood", true, "Speckled Wood", pararge, "aegeria", 0x947245).setRarity(1.0f);
|
||||
Allele.lepiMadeiranSpeckledWood = new AlleleButterflySpecies("lepiMSpeckledWood", true, "Madeiran Speckled Wood", pararge, "xiphia", 0x402919).setRarity(0.5f);
|
||||
Allele.lepiCanarySpeckledWood = new AlleleButterflySpecies("lepiCSpeckledWood", true, "Canary Speckled Wood", pararge, "xiphioides", 0x51372a).setRarity(0.5f);
|
||||
Allele.lepiSpeckledWood = new AlleleButterflySpecies("lepiSpeckledWood", true, "speckledWood", pararge, "aegeria", 0x947245).setRarity(1.0f);
|
||||
Allele.lepiMadeiranSpeckledWood = new AlleleButterflySpecies("lepiMSpeckledWood", true, "speckledWoodM", pararge, "xiphia", 0x402919).setRarity(0.5f);
|
||||
Allele.lepiCanarySpeckledWood = new AlleleButterflySpecies("lepiCSpeckledWood", true, "speckledWoodC", pararge, "xiphioides", 0x51372a).setRarity(0.5f);
|
||||
|
||||
Allele.lepiMenelausBlueMorpho = new AlleleButterflySpecies("lepiMBlueMorpho", true, "Menelaus Blue Morpho", morpho, "menelaus", 0x72e1fd).setRarity(0.5f)
|
||||
Allele.lepiMenelausBlueMorpho = new AlleleButterflySpecies("lepiMBlueMorpho", true, "blueMorphoM", morpho, "menelaus", 0x72e1fd).setRarity(0.5f)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
Allele.lepiPeleidesBlueMorpho = new AlleleButterflySpecies("lepiPBlueMorpho", true, "Peleides Blue Morpho", morpho, "peleides", 0x6ecce8).setRarity(0.25f)
|
||||
Allele.lepiPeleidesBlueMorpho = new AlleleButterflySpecies("lepiPBlueMorpho", true, "blueMorphoP", morpho, "peleides", 0x6ecce8).setRarity(0.25f)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
Allele.lepiRhetenorBlueMorpho = new AlleleButterflySpecies("lepiRBlueMorpho", true, "Rhetenor Blue Morpho", morpho, "rhetenor", 0x00bef8)
|
||||
Allele.lepiRhetenorBlueMorpho = new AlleleButterflySpecies("lepiRBlueMorpho", true, "blueMorphoR", morpho, "rhetenor", 0x00bef8)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
|
||||
Allele.lepiComma = new AlleleButterflySpecies("lepiComma", true, "Comma", polygonia, "c-album", 0xf89505).setRarity(0.3f);
|
||||
Allele.lepiBatesia = new AlleleButterflySpecies("lepiBatesia", true, "Painted Beauty", batesia, "hypochlora", 0xfe7763).setRarity(0.3f)
|
||||
Allele.lepiComma = new AlleleButterflySpecies("lepiComma", true, "comma", polygonia, "c-album", 0xf89505).setRarity(0.3f);
|
||||
Allele.lepiBatesia = new AlleleButterflySpecies("lepiBatesia", true, "paintedBeauty", batesia, "hypochlora", 0xfe7763).setRarity(0.3f)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
Allele.lepiBlueWing = new AlleleButterflySpecies("lepiBlueWing", true, "Blue Wing", myscelia, "ethusa", 0x3a93cc).setRarity(0.3f);
|
||||
Allele.lepiBlueWing = new AlleleButterflySpecies("lepiBlueWing", true, "blueWing", myscelia, "ethusa", 0x3a93cc).setRarity(0.3f);
|
||||
|
||||
Allele.lepiMonarch = new AlleleButterflySpecies("lepiMonarch", true, "Monarch", danaus, "plexippus", 0xffa722).setRarity(0.2f);
|
||||
Allele.lepiBlueDuke = new AlleleButterflySpecies("lepiBlueDuke", true, "Blue Duke", bassarona, "durga", 0x304240).setRarity(0.5f)
|
||||
Allele.lepiMonarch = new AlleleButterflySpecies("lepiMonarch", true, "monarch", danaus, "plexippus", 0xffa722).setRarity(0.2f);
|
||||
Allele.lepiBlueDuke = new AlleleButterflySpecies("lepiBlueDuke", true, "blueDuke", bassarona, "durga", 0x304240).setRarity(0.5f)
|
||||
.setTemperature(EnumTemperature.COLD);
|
||||
Allele.lepiGlassyTiger = new AlleleButterflySpecies("lepiGlassyTiger", true, "Glassy Tiger", parantica, "aglea", 0x5b3935).setRarity(0.3f);
|
||||
Allele.lepiPostman = new AlleleButterflySpecies("lepiPostman", true, "Postman", heliconius, "melpmene", 0xf7302d).setRarity(0.3f);
|
||||
Allele.lepiMalachite = new AlleleButterflySpecies("lepiMalachite", true, "Malachite", siproeta, "stelenes", 0xbdff53).setRarity(0.5f)
|
||||
Allele.lepiGlassyTiger = new AlleleButterflySpecies("lepiGlassyTiger", true, "glassyTiger", parantica, "aglea", 0x5b3935).setRarity(0.3f);
|
||||
Allele.lepiPostman = new AlleleButterflySpecies("lepiPostman", true, "postman", heliconius, "melpomene", 0xf7302d).setRarity(0.3f);
|
||||
Allele.lepiMalachite = new AlleleButterflySpecies("lepiMalachite", true, "malachite", siproeta, "stelenes", 0xbdff53).setRarity(0.5f)
|
||||
.setTemperature(EnumTemperature.WARM).setHumidity(EnumHumidity.DAMP);
|
||||
Allele.lepiLLacewing = new AlleleButterflySpecies("lepiLLacewing", true, "Leopard Lacewing", cethosia, "cyane", 0xfb8a06).setRarity(0.7f);
|
||||
Allele.lepiLLacewing = new AlleleButterflySpecies("lepiLLacewing", true, "leopardLacewing", cethosia, "cyane", 0xfb8a06).setRarity(0.7f);
|
||||
|
||||
Allele.lepiDianaFrit = new AlleleButterflySpecies("lepiDianaFrit", true, "dianaFritillary", speyeria, "diana", 0xffac05).setRarity(0.6f);
|
||||
|
||||
Allele.butterflyNone = new AlleleEffectNone("bfNone", false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user