diff options
author | Nico Spiske <64710705+Nilau1998@users.noreply.github.com> | 2024-09-01 14:38:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-01 14:38:40 +0200 |
commit | 148ff2956dad2377e6043173ad8b33d6acbc6ac6 (patch) | |
tree | 409cd58d3b847a0450efd8af7239b1860750e6c5 /src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java | |
parent | 784fc5aaca22995a9652ca228484c1833c962db0 (diff) | |
download | GT5-Unofficial-148ff2956dad2377e6043173ad8b33d6acbc6ac6.tar.gz GT5-Unofficial-148ff2956dad2377e6043173ad8b33d6acbc6ac6.tar.bz2 GT5-Unofficial-148ff2956dad2377e6043173ad8b33d6acbc6ac6.zip |
Add bee in courtesy to DaddyDiddy (#2507)
* [major] new effect, comb, flower, mutation condition
* [minor] imports
* Update GT_BeeDefinition.java
* [minor] fancier processing
* [patch] bs
* Update ItemComb.java
* Update SifterRecipes.java
* [minor] nuked machine booster effect
* Added back the effect but now with tick throttling. Right now it is set so the effect only gets triggered every 30 seconds.
* SA & BS
* [minor] add dynamic authority
* rename comb type and bee
reduce speed to super speed
* update bs + sa
* changed to fastest because super speed was 2x blinding (wired naming)
---------
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java')
-rw-r--r-- | src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java b/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java index ec73782238..87292ced62 100644 --- a/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java +++ b/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java @@ -103,6 +103,7 @@ import gregtech.common.bees.GT_Bee_Mutation; import gregtech.common.items.CombType; import gregtech.common.items.DropType; import gregtech.common.items.PropolisType; +import gregtech.loaders.misc.bees.GT_Flowers; /** * Bride Class for Lambdas @@ -1661,6 +1662,26 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource(GameRegistry.findBlock(ExtraCells2.ID, "walrus"), 0); } }), + MACHINIST(GT_BranchDefinition.ORGANIC, "Machinist", true, new Color(85, 37, 130), new Color(253, 185, 39), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.MACHINIST), 0.2f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.FASTEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_1); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); + AlleleHelper.instance.set(template, NOCTURNAL, true); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, GT_Flowers.FLAMING); + AlleleHelper.instance.set(template, FERTILITY, Fertility.MAXIMUM); + AlleleHelper.instance.set(template, EFFECT, getEffect(GREGTECH, "MachineBoost")); + }, dis -> { + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(FORESTRY, "Industrious"), getSpecies(FORESTRY, "Imperial"), 1); + tMutation.addMutationCondition(new GT_Bees.ActiveGTMachineMutationCondition()); + }), // Space Bees SPACE(GT_BranchDefinition.SPACE, "Space", true, new Color(0x003366), new Color(0xC0C0C0), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.02f); @@ -2655,16 +2676,20 @@ public enum GT_BeeDefinition implements IBeeDefinition { String species = WordUtils.capitalize(lowercaseName); String uid = "gregtech.bee.species" + species; - String description = "for.description." + species; + String description = "for.description." + lowercaseName; String name = "for.bees.species." + lowercaseName; GT_LanguageManager.addStringLocalization("for.bees.species." + lowercaseName, species); + String authority = GT_LanguageManager.getTranslation("for.bees.authority." + lowercaseName); + if (authority.equals("for.bees.authority." + lowercaseName)) { + authority = "GTNH"; + } this.branch = branch; this.species = new GT_AlleleBeeSpecies( uid, dominant, name, - "GTNH", + authority, description, branch.getBranch(), binomial, |