From 6c50d8935314b62f93654b69438866040e1351cd Mon Sep 17 00:00:00 2001 From: MysteriousAges Date: Tue, 16 Jul 2013 23:08:57 -0700 Subject: [PATCH] Fixes for new version. --- magicbees_res/build.xml | 2 +- magicbees_res/changelog.txt | 6 +++ magicbees_res/mcmod.info | 2 +- .../mods/magicbees/research/research.xml | 19 +++----- magicbees_src/magicbees/bees/BeeMutation.java | 13 ++++-- .../magicbees/item/types/CombType.java | 46 +++++++++---------- magicbees_src/magicbees/main/MagicBees.java | 2 +- 7 files changed, 49 insertions(+), 41 deletions(-) diff --git a/magicbees_res/build.xml b/magicbees_res/build.xml index 3a12fdf..5cfaf0d 100644 --- a/magicbees_res/build.xml +++ b/magicbees_res/build.xml @@ -16,7 +16,7 @@ - + diff --git a/magicbees_res/changelog.txt b/magicbees_res/changelog.txt index 77f3cab..6f588d0 100644 --- a/magicbees_res/changelog.txt +++ b/magicbees_res/changelog.txt @@ -1,3 +1,9 @@ +Fixed backwards mutation logic. +Adjusting Thaumcraft research notes to reflect recent (Hah!) changes. + +2.0.2 +Fixed Escritoire/Mutation Notes for bees which require a Thaumcraft Node. +Fixing colour data for Temporal Combs. Adjusting the production rates on some nugget-producing bees. Withering bee species now requires arid rather than normal humidity, to conform with the rest of the Infernal line. Withering and Slow Effects should now correctly be reduced while wearing Apiarist's Armor or other protective gear. diff --git a/magicbees_res/mcmod.info b/magicbees_res/mcmod.info index ccf2407..6ba4e32 100644 --- a/magicbees_res/mcmod.info +++ b/magicbees_res/mcmod.info @@ -1,7 +1,7 @@ [ { "modid": "MagicBees", - "version": "@MODVERSION@", + "version": "@MODVERSION@ (build @BUILD_NUMBER@)", "name": "Magic Bees", "url": "http://bit.ly/XFDvLY", "description": "Magic themed bee expansion for Forestry. TC3, EE3, AM compatible!", diff --git a/magicbees_res/mods/magicbees/research/research.xml b/magicbees_res/mods/magicbees/research/research.xml index d31a4ad..5966495 100644 --- a/magicbees_res/mods/magicbees/research/research.xml +++ b/magicbees_res/mods/magicbees/research/research.xml @@ -22,7 +22,7 @@ The potential exists for further study. All that is required is some creative th Continuing from your curiousity into these flying creatures, an idea has ocurred to you how to encourage them to work faster, coaxed along by the judicious use of magic applied to some existing beekeeping equipment. The simple frames known to all beekeepers, while effective, are flimsy and prone to breakage. With the help of magic, you have devised an improved design to function longer by enchanting it with reinforcing magic. -These improved versions can last several times longer than the basic frames, so long as there is sufficient aura in the area to feed the spells woven into the construction of the frame. +These improved versions can last several times longer than the basic frames, thanks to your new enchantments. FRAMEMAGIC @@ -30,7 +30,7 @@ These improved versions can last several times longer than the basic frames, so Resilient Frame Making it better... Having come up with an idea for an improved Magical Frame, the next logical step would be to reinforce the design further, shielding it from all but the harshest wear and tear. The trade-off, of course, would be an increased consumption of aura during its operation. -You have successfully created a design for a more durable Apiary Frame, the Resilient Frame. Like the Magic Frame, it will increase the bees' working speed and consume aura to offset received wear and tear. Unlike the Magic Frame, its expected lifespan is much longer, but its aura use is slightly higher. +You have successfully created a design for a more durable Apiary Frame, the Resilient Frame. Like the Magic Frame, it will increase the bees' working speed and consume aura to offset received wear and tear. Unlike the Magic Frame, its expected lifespan is much longer. FRAMERESILIENT @@ -38,9 +38,7 @@ These improved versions can last several times longer than the basic frames, so Gentle Frame You won't even notice I'm here. Continuing from your curiosity into these flying creatures, an idea has occured to you how to encourage them to live slightly longer within the Apiaries. Perhaps if you could surround them with the essence of health, life, and the plants they love, you can realize this idea. -The Gentle Frame extends the life expectancy of a working queen by roughly a half, and encourages the workers to move at a slightly increased pace. The end result is that the bees live longer, and produce more while they are alive. - -Like the Magic Frame, the Gentle Frame also consumes small amounts of aura to maintain its enchantments, and has the negative side-effect of producing small amounts of flux in the surrounding aura now and again as the enchanted bees go about their work outside the hive. It's probably not enough to get too worried about, though. +The Gentle Frame extends the life expectancy of a working queen by roughly a half, and encourages the workers to move at a slightly increased pace. The end result is that the bees live longer, and produce more while they are alive. FRAMEGENTLE @@ -50,18 +48,15 @@ Like the Magic Frame, the Gentle Frame also consumes small amounts of aura to ma Additional bee research has yielded insight into their body structure, metabolism, and life cycle. It is possible that you could create a frame to enhance their body processes. The Metabolic Frame enhances the rate at which bees metabolize food, resulting in a higher work speed. However, this makes their genetic structure somewhat unstable and prone to mutations. While this can be frustrating for some apiarists, other, more prepared beekeepers have been known to use the Metabolic Frames in their apiaries to encourage mutations in bee species. -Like the Magic Frame, this frame consumes aura to maintain its enchantments, and has the negative side-effect of producing some flux in the surrounding aura now and again as the enchanted bees go about their work. The Metabolic Frame consumes significantly more aura, as its +It is rather less durable than the Magic Frame. FRAMEMETABOLIC -enchantments are much more complex, and is not quite as durable as the Magic Frame is known to be. Necrotic Frame Doom And Gloom, For Bees! After being stung by a bee, you concocted an idea to make them pay. Surely placing a frame infused with death and envenomed intents in a hive will teach them a lesson! -Your vengeance-fuelled research has paid off, resulting in the knowledge of the Necrotic Frame. This frame, when placed in an Apiary, will cause the bees to become sluggish, reducing their work speed, and severely unhealthy, greatly diminishing the current generation's lifespan. However, it is prudent to ensure the enchantments in the frame only affect the current generation. - -Like the Magic Frame, this frame consumes aura to maintain its enchantments. This is not your best work, however, and the frame's operation will produce significantly more flux in the surrounding area than your other frames. +Your vengeance-fuelled research has paid off, resulting in the knowledge of the Necrotic Frame. This frame, when placed in an Apiary, will cause the bees to become sluggish, reducing their work speed, and severely unhealthy, greatly diminishing the current generation's lifespan. However, it is prudent to ensure the enchantments in the frame only affect the current generation. FRAMENECROTIC @@ -71,7 +66,7 @@ Like the Magic Frame, this frame consumes aura to maintain its enchantments. Thi You have been seeking a way to significantly extend bee life. It should be possible by adding a frame enchanted with the essence of time to the hive. Keeping bees has been frustrating, as the insects' short lives requires you to manually intervene far too often. -A new variation of your frame design, this version involving some Time magic, should help extend their lives significantly. Like the Magic frame, this one too requires aura to run, and will produce flux now and again. +A new variation of your frame design, this version involving some Time magic, should help extend their lives significantly. FRAMETIME @@ -101,7 +96,7 @@ Because the thaumium present in its construction, it is possible to enchant the This improved grafter is more durable than the plain one your non-magical arborist acquaintances tend to use in their exploits. It should be possible to allow them to be enchanted with repairing magic to make them last indefinitely. Adding Thaumium to your grafter design has increased its durability significantly - up to two times longer than regular grafters. -It is also possible to enchant them with the Repair enchant, given sufficient experience. +It is also possible to enchant them with the Repair enchant, given sufficient experience. Using it rapidly may, however, give you a severe case of the munchies. THAUMIUMGRAFTER diff --git a/magicbees_src/magicbees/bees/BeeMutation.java b/magicbees_src/magicbees/bees/BeeMutation.java index d434458..4b23892 100644 --- a/magicbees_src/magicbees/bees/BeeMutation.java +++ b/magicbees_src/magicbees/bees/BeeMutation.java @@ -52,7 +52,11 @@ public class BeeMutation implements IBeeMutation for (String str : binnieMundane) { FMLLog.info("Registering %s", str); - new BeeMutation(species, Allele.getExtraSpecies(str), ForestryHelper.getTemplateForestryForSpecies("Common"), 15); + try { + new BeeMutation(species, Allele.getExtraSpecies(str), ForestryHelper.getTemplateForestryForSpecies("Common"), 15); + } catch (Exception e) { + FMLLog.info("Unable to register! This mutation will not be available."); + } } } new BeeMutation(species, Allele.getBaseSpecies("Common"), ForestryHelper.getTemplateForestryForSpecies("Cultivated"), 12); @@ -75,7 +79,7 @@ public class BeeMutation implements IBeeMutation .setBlockRequired(18); new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.WATERY, 14) .setBlockRequired(Block.waterStill); - new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.EARTHY, 14) + new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.EARTHY, 100)//14) .setBlockRequired(Block.brick); new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.FIREY, 14) .setBlockRequired(Block.lavaStill); @@ -334,7 +338,7 @@ public class BeeMutation implements IBeeMutation blockBelow = Block.blocksList[blockId]; ++i; } - while (blockBelow != null && !(blockBelow instanceof IBeeHousing)); + while (blockBelow != null && (blockBelow instanceof IBeeHousing)); if (this.requiredBlockOreDictEntry != null) { @@ -443,6 +447,7 @@ public class BeeMutation implements IBeeMutation moonPhaseStart.getLocalizedName())); } } + if (this.nodeRequired) { if (this.nodeType != null) @@ -455,6 +460,7 @@ public class BeeMutation implements IBeeMutation conditions.add(LocalizationManager.getLocalizedString("research.requiresNode")); } } + if (this.requiresBlock) { if (this.requiredBlockName != null) @@ -481,6 +487,7 @@ public class BeeMutation implements IBeeMutation new ItemStack(this.requiredBlockId, 1, this.requiredBlockMeta).getDisplayName())); } } + if (this.requiredBiomeType != null) { String biomeName = this.requiredBiomeType.name().substring(0, 1) + this.requiredBiomeType.name().substring(1).toLowerCase(); diff --git a/magicbees_src/magicbees/item/types/CombType.java b/magicbees_src/magicbees/item/types/CombType.java index 7a1c049..f713e1a 100644 --- a/magicbees_src/magicbees/item/types/CombType.java +++ b/magicbees_src/magicbees/item/types/CombType.java @@ -28,29 +28,29 @@ public enum CombType AM_POTENT("potent", false), ; - private static int[][] colours = + private static int[][] colours = new int[][] { {0xFF9859, 0xFFC58E}, - {0xcc3333, 0x1E160E}, - {0x9872FF, 0x2D2D2D}, - {0x3EE0D8, 0x3A3820}, - {0xE5425D, 0x323291}, - - {0xBCA664, 0x35332E}, - {0x7F7171, 0x876D53}, - {0xcda6cd, 0x545454}, - {0x0092e9, 0x618fff}, - {0x0, 0x0}, - - {0xB0B0BC, 0x414144}, - {0xffff7e, 0x606308}, - {0xff3C01, 0x5B0D10}, - {0x0090ff, 0x102F6B}, - {0x00a000, 0x043004}, - {0xAB12E2, 0x502868}, - - {0xCC8604, 0x41046F}, - {0xCCCC04, 0x41046F}, - }; + {0xcc3333, 0x1E160E}, + {0x9872FF, 0x2D2D2D}, + {0x3EE0D8, 0x3A3820}, + {0xE5425D, 0x323291}, + + {0xBCA664, 0x35332E}, + {0x7F7171, 0x876D53}, + {0xcda6cd, 0x545454}, + {0x0092e9, 0x618fff}, + {0x2F9381, 0x773C31}, + + {0xB0B0BC, 0x414144}, + {0xffff7e, 0x606308}, + {0xff3C01, 0x5B0D10}, + {0x0090ff, 0x102F6B}, + {0x00a000, 0x043004}, + {0xAB12E2, 0x502868}, + + {0xCC8604, 0x41046F}, + {0xCCCC04, 0x41046F}, + }; private CombType(String pName, boolean show) { @@ -68,7 +68,7 @@ public enum CombType } public int[] getColours() - { + { return colours[this.ordinal()]; } } \ No newline at end of file diff --git a/magicbees_src/magicbees/main/MagicBees.java b/magicbees_src/magicbees/main/MagicBees.java index b9f4ad9..dd153b2 100644 --- a/magicbees_src/magicbees/main/MagicBees.java +++ b/magicbees_src/magicbees/main/MagicBees.java @@ -25,7 +25,7 @@ import cpw.mods.fml.common.registry.GameRegistry; name="Magic Bees", useMetadata=true, acceptedMinecraftVersions=VersionInfo.MCVersion, - version=VersionInfo.Version + " (build " + VersionInfo.Build + ")", + version=VersionInfo.Version, dependencies=VersionInfo.Depends ) @NetworkMod(serverSideRequired=false, clientSideRequired=true)