mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-14 01:14:21 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29d8fed2a3 | ||
|
|
9b05c7e7d2 | ||
|
|
a2d9c9f791 | ||
|
|
c6a72a489c |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
|
||||
@@ -82,7 +82,7 @@ public enum EnumHoneyDrop implements IItemEnum {
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
return liquidName == null || FluidRegistry.isFluidRegistered(liquidName);
|
||||
return liquidName == null || liquidName.isEmpty() || FluidRegistry.isFluidRegistered(liquidName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -34,14 +34,14 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
OreDictionary.registerOre("gemEmerald", Items.emerald);
|
||||
OreDictionary.registerOre("gemLapis", new ItemStack(Items.dye, 1, 4));
|
||||
|
||||
EnumHoneyComb.BARREN.addProduct(beeswax, 1.00f);
|
||||
EnumHoneyComb.BARREN.tryAddProduct(beeswax, 1.00f);
|
||||
EnumHoneyComb.BARREN.addProduct(honeyDrop, 0.50f);
|
||||
|
||||
EnumHoneyComb.ROTTEN.addProduct(beeswax, 0.20f);
|
||||
EnumHoneyComb.ROTTEN.tryAddProduct(beeswax, 0.20f);
|
||||
EnumHoneyComb.ROTTEN.addProduct(honeyDrop, 0.20f);
|
||||
EnumHoneyComb.ROTTEN.addProduct(new ItemStack(Items.rotten_flesh, 1, 0), 0.80f);
|
||||
|
||||
EnumHoneyComb.BONE.addProduct(beeswax, 0.20f);
|
||||
EnumHoneyComb.BONE.tryAddProduct(beeswax, 0.20f);
|
||||
EnumHoneyComb.BONE.addProduct(honeyDrop, 0.20f);
|
||||
EnumHoneyComb.BONE.addProduct(new ItemStack(Items.dye, 1, 15), 0.80f);
|
||||
|
||||
@@ -55,7 +55,7 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
EnumHoneyComb.WATER.tryAddProduct(EnumPropolis.WATER, 1.00f);
|
||||
EnumHoneyComb.WATER.addProduct(honeyDrop, 0.90f);
|
||||
|
||||
EnumHoneyComb.STONE.addProduct(beeswax, 0.50f);
|
||||
EnumHoneyComb.STONE.tryAddProduct(beeswax, 0.50f);
|
||||
EnumHoneyComb.STONE.addProduct(honeyDrop, 0.25f);
|
||||
|
||||
EnumHoneyComb.MILK.tryAddProduct(EnumHoneyDrop.MILK, 1.00f);
|
||||
@@ -84,7 +84,7 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
EnumHoneyComb.LATEX.active = false;
|
||||
}
|
||||
|
||||
EnumHoneyComb.REDSTONE.addProduct(beeswax, 0.80f);
|
||||
EnumHoneyComb.REDSTONE.tryAddProduct(beeswax, 0.80f);
|
||||
EnumHoneyComb.REDSTONE.addProduct(new ItemStack(Items.redstone, 1, 0), 1.00f);
|
||||
EnumHoneyComb.REDSTONE.addProduct(honeyDrop, 0.50f);
|
||||
|
||||
@@ -119,14 +119,14 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
EnumHoneyComb.URANIUM.tryAddProduct(OreDictionary.getOres("crushedUranium").get(0), 0.50f);
|
||||
}
|
||||
|
||||
EnumHoneyComb.CLAY.addProduct(beeswax, 0.25f);
|
||||
EnumHoneyComb.CLAY.tryAddProduct(beeswax, 0.25f);
|
||||
EnumHoneyComb.CLAY.addProduct(honeyDrop, 0.80f);
|
||||
EnumHoneyComb.CLAY.addProduct(new ItemStack(Items.clay_ball), 0.80f);
|
||||
|
||||
EnumHoneyComb.OLD.addProduct(beeswax, 1.00f);
|
||||
EnumHoneyComb.OLD.tryAddProduct(beeswax, 1.00f);
|
||||
EnumHoneyComb.OLD.addProduct(honeyDrop, 0.90f);
|
||||
|
||||
EnumHoneyComb.FUNGAL.addProduct(beeswax, 0.90f);
|
||||
EnumHoneyComb.FUNGAL.tryAddProduct(beeswax, 0.90f);
|
||||
EnumHoneyComb.FUNGAL.addProduct(new ItemStack(Blocks.brown_mushroom_block, 1, 0), 1.00f);
|
||||
EnumHoneyComb.FUNGAL.addProduct(new ItemStack(Blocks.red_mushroom_block, 1, 0), 0.75f);
|
||||
|
||||
@@ -139,11 +139,11 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
EnumHoneyComb.VENOMOUS.addProduct(beeswax, 0.80f);
|
||||
EnumHoneyComb.VENOMOUS.tryAddProduct(EnumHoneyDrop.POISON, 0.80f);
|
||||
|
||||
EnumHoneyComb.SLIME.addProduct(beeswax, 1.00f);
|
||||
EnumHoneyComb.SLIME.tryAddProduct(beeswax, 1.00f);
|
||||
EnumHoneyComb.SLIME.addProduct(honeyDrop, 0.75f);
|
||||
EnumHoneyComb.SLIME.addProduct(new ItemStack(Items.slime_ball, 1, 0), 0.75f);
|
||||
|
||||
EnumHoneyComb.BLAZE.addProduct(beeswax, 0.75f);
|
||||
EnumHoneyComb.BLAZE.tryAddProduct(beeswax, 0.75f);
|
||||
EnumHoneyComb.BLAZE.addProduct(new ItemStack(Items.blaze_powder, 1, 0), 1.00f);
|
||||
|
||||
EnumHoneyComb.COFFEE.addProduct(beeswax, 0.90f);
|
||||
@@ -178,7 +178,7 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
EnumHoneyComb.PLATINUM.tryAddProduct(ExtraBeeItems.PlatinumDust, 1.00f);
|
||||
|
||||
EnumHoneyComb.LAPIS.copyProducts(EnumHoneyComb.STONE);
|
||||
EnumHoneyComb.LAPIS.addProduct(new ItemStack(Items.dye, 6, 4), 1.00f);
|
||||
EnumHoneyComb.LAPIS.tryAddProduct(new ItemStack(Items.dye, 6, 4), 1.00f);
|
||||
|
||||
EnumHoneyComb.EMERALD.copyProducts(EnumHoneyComb.STONE);
|
||||
EnumHoneyComb.EMERALD.tryAddProduct(ExtraBeeItems.EmeraldShard, 1.00f);
|
||||
@@ -195,7 +195,7 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
EnumHoneyComb.RED.addProduct(honeyDrop, 0.80f);
|
||||
EnumHoneyComb.RED.addProduct(beeswax, 0.80f);
|
||||
|
||||
EnumHoneyComb.GLOWSTONE.addProduct(honeyDrop, 0.25f);
|
||||
EnumHoneyComb.GLOWSTONE.tryAddProduct(honeyDrop, 0.25f);
|
||||
EnumHoneyComb.GLOWSTONE.addProduct(new ItemStack(Items.glowstone_dust), 1.00f);
|
||||
|
||||
EnumHoneyComb.SALTPETER.addProduct(honeyDrop, 0.25f);
|
||||
@@ -254,7 +254,7 @@ public class ItemHoneyComb extends ItemProduct {
|
||||
case 15 -> ExtraBeeItems.WhiteDye.get(1);
|
||||
default -> new ItemStack(Items.dye, 1, k);
|
||||
};
|
||||
type.addProduct(drop.get(1), 1.00f);
|
||||
type.tryAddProduct(drop.get(1), 1.00f);
|
||||
drop.addRemenant(dye);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,13 @@ public class Inoculator {
|
||||
NBTTagList chromosomes = genomeNBT.getTagList("Chromosomes", 10);
|
||||
NBTTagCompound chromosomeNBT = chromosomes.getCompoundTagAt(chromosomeID);
|
||||
chromosomeNBT.setString("UID" + chromoN, gene.getAllele().getUID());
|
||||
if (gene.getChromosome() == EnumBeeChromosome.LIFESPAN && gene.getSpeciesRoot() instanceof IBeeRoot beeRoot) {
|
||||
int lifespan = beeRoot.getMember(target).getGenome().getLifespan();
|
||||
beeNBT.setInteger(
|
||||
"Health",
|
||||
Math.max(0, beeNBT.getInteger("Health") + lifespan - beeNBT.getInteger("MaxH")));
|
||||
beeNBT.setInteger("MaxH", lifespan);
|
||||
}
|
||||
target.setTagCompound(beeNBT);
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,13 @@ public class Splicer {
|
||||
NBTTagList chromosomes = genomeNBT.getTagList("Chromosomes", 10);
|
||||
NBTTagCompound chromosomeNBT = chromosomes.getCompoundTagAt(chromosomeID);
|
||||
chromosomeNBT.setString("UID" + chromoN, gene.getAllele().getUID());
|
||||
if (gene.getChromosome() == EnumBeeChromosome.LIFESPAN && gene.getSpeciesRoot() instanceof IBeeRoot beeRoot) {
|
||||
int lifespan = beeRoot.getMember(target).getGenome().getLifespan();
|
||||
beeNBT.setInteger(
|
||||
"Health",
|
||||
Math.max(0, beeNBT.getInteger("Health") + lifespan - beeNBT.getInteger("MaxH")));
|
||||
beeNBT.setInteger("MaxH", lifespan);
|
||||
}
|
||||
target.setTagCompound(beeNBT);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fluid.binnie.dna.raw=Liquid DNA
|
||||
fluid.binnie.dna.raw=Raw DNA
|
||||
fluid.binnie.bacteria=Bacteria
|
||||
fluid.binnie.growthMedium=Growth Medium
|
||||
fluid.binnie.bacteriaPoly=Polymerizing Bacteria
|
||||
|
||||
Reference in new issue
Block a user