Compare commits

...

9 Commits

Author SHA1 Message Date
Electroblob f4d7ba6030 Fix inability to upgrade non-elemental wands using tomes of arcana 2018-02-18 23:33:54 +00:00
Electroblob a4695bcce1 Fix curseforge issue #30, where the game would crash when casting mind control on a mob that already had the mind trick status effect 2018-02-18 23:32:54 +00:00
Electroblob 52d12c0c02 Fix curseforge issue #28, where keybinds would be reset on game launch 2018-02-18 23:31:42 +00:00
Electroblob 56861b1ff5 Add coordinate fix from 1.11.2 branch, see 2dd52ce 2018-02-18 23:29:47 +00:00
Electroblob d2129ba256 Update CREDITS.md
Undoes previous commit, was made on the wrong branch
2018-02-13 16:28:32 +00:00
Electroblob 00a6b34310 Update CREDITS.md 2018-02-13 16:26:17 +00:00
Electroblob a2f1463939 Update README.md 2018-02-11 18:27:57 +00:00
Electroblob a9dbf47c4a Fix sparkle particles not being animated (this was accidentally disabled when testing a new feature) 2018-02-10 18:23:25 +00:00
Electroblob 2c8435392e Update version number 2018-02-10 18:22:49 +00:00
13 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# Wizardry # Wizardry  [![Curseforge](http://cf.way2muchnoise.eu/full_electroblobs-wizardry_downloads.svg)](https://minecraft.curseforge.com/projects/electroblobs-wizardry) [![Curseforge](http://cf.way2muchnoise.eu/versions/For%20MC_electroblobs-wizardry_all.svg)](https://minecraft.curseforge.com/projects/electroblobs-wizardry)
![Image not found](https://media-elerium.cursecdn.com/attachments/203/387/banner7.png) ![Image not found](https://media-elerium.cursecdn.com/attachments/203/387/banner7.png)
+1 -1
View File
@@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the nessasary things for Forge to be setup. //Only edit below this line, the above code adds and enables the nessasary things for Forge to be setup.
version = " 2.1.0 - MC 1.10.2" version = " 2.1.2 - MC 1.10.2"
group= "electroblob.wizardry"// http://maven.apache.org/guides/mini/guide-naming-conventions.html group= "electroblob.wizardry"// http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Electroblob's Wizardry " archivesBaseName = "Electroblob's Wizardry "
@@ -46,7 +46,7 @@ public class Wizardry {
* Wizardry 2.1, but they are for different versions of Minecraft and have separate minor versioning. 1.x.x * Wizardry 2.1, but they are for different versions of Minecraft and have separate minor versioning. 1.x.x
* represents Minecraft 1.7.x versions, 2.x.x represents Minecraft 1.10.x versions, 3.x.x represents Minecraft * represents Minecraft 1.7.x versions, 2.x.x represents Minecraft 1.10.x versions, 3.x.x represents Minecraft
* 1.11.x versions, and so on. */ * 1.11.x versions, and so on. */
public static final String VERSION = "2.1.0"; public static final String VERSION = "2.1.2";
// IDEA: Improve the algorithm that finds a place to summon creatures to take walls into account. // IDEA: Improve the algorithm that finds a place to summon creatures to take walls into account.
// IDEA: Replace all uses of Math.cos and Math.sin with MathHelper versions // IDEA: Replace all uses of Math.cos and Math.sin with MathHelper versions
@@ -137,6 +137,8 @@ public class Wizardry {
// Moved to preInit, because apparently it has to be here now. // Moved to preInit, because apparently it has to be here now.
proxy.registerRenderers(); proxy.registerRenderers();
// It seems this also has to be here
proxy.registerKeyBindings();
} }
@@ -145,8 +147,6 @@ public class Wizardry {
settings.initConfigExtras(); settings.initConfigExtras();
proxy.registerKeyBindings();
// Event Handlers // Event Handlers
GameRegistry.registerWorldGenerator(generator, 0); GameRegistry.registerWorldGenerator(generator, 0);
MinecraftForge.EVENT_BUS.register(new WizardryKeyHandler()); MinecraftForge.EVENT_BUS.register(new WizardryKeyHandler());
@@ -154,8 +154,8 @@ public class ClientProxy extends CommonProxy {
public static MixedFontRenderer mixedFontRenderer; public static MixedFontRenderer mixedFontRenderer;
// Key Bindings // Key Bindings
public static final KeyBinding NEXT_SPELL = new KeyBinding("key.wizardry:next_spell", Keyboard.KEY_N, "key.categories.wizardry"); public static final KeyBinding NEXT_SPELL = new KeyBinding("key.wizardry.next_spell", Keyboard.KEY_N, "key.categories.wizardry");
public static final KeyBinding PREVIOUS_SPELL = new KeyBinding("key.wizardry:previous_spell", Keyboard.KEY_B, "key.categories.wizardry"); public static final KeyBinding PREVIOUS_SPELL = new KeyBinding("key.wizardry.previous_spell", Keyboard.KEY_B, "key.categories.wizardry");
// Armour Model // Armour Model
public static final ModelBiped WIZARD_ARMOUR_MODEL = new ModelWizardArmour(0.75f); public static final ModelBiped WIZARD_ARMOUR_MODEL = new ModelWizardArmour(0.75f);
@@ -81,8 +81,8 @@ public class ParticleSparkle extends ParticleCustomTexture {
// this.setRBGColorF(this.initialRed + (this.fadeRed - this.initialRed)*ageFraction, // this.setRBGColorF(this.initialRed + (this.fadeRed - this.initialRed)*ageFraction,
// this.initialGreen + (this.fadeGreen - this.initialGreen)*ageFraction, // this.initialGreen + (this.fadeGreen - this.initialGreen)*ageFraction,
// this.initialBlue + (this.fadeBlue - this.initialBlue)*ageFraction); // this.initialBlue + (this.fadeBlue - this.initialBlue)*ageFraction);
//
// this.setParticleTextureIndex((this.particleAge * 11)/this.particleMaxAge); this.setParticleTextureIndex((this.particleAge * 11)/this.particleMaxAge);
} }
/* /*
@@ -76,8 +76,8 @@ public class Clairvoyance extends Spell {
if(path != null && path.getFinalPathPoint() != null){ if(path != null && path.getFinalPathPoint() != null){
int x = path.getFinalPathPoint().xCoord; int x = path.getFinalPathPoint().xCoord;
int y = path.getFinalPathPoint().xCoord; int y = path.getFinalPathPoint().yCoord;
int z = path.getFinalPathPoint().xCoord; int z = path.getFinalPathPoint().zCoord;
if(x == destination.getX() && y == destination.getY() && z == destination.getZ()){ if(x == destination.getX() && y == destination.getY() && z == destination.getZ()){
@@ -188,6 +188,8 @@ public class MindControl extends Spell {
@SubscribeEvent @SubscribeEvent
public static void onLivingSetAttackTargetEvent(LivingSetAttackTargetEvent event){ public static void onLivingSetAttackTargetEvent(LivingSetAttackTargetEvent event){
if(event.getTarget() == null) return; // Prevents infinite loops with mind trick
if(event.getEntityLiving().isPotionActive(WizardryPotions.mind_control) && MindControl.canControl(event.getEntityLiving())){ if(event.getEntityLiving().isPotionActive(WizardryPotions.mind_control) && MindControl.canControl(event.getEntityLiving())){
NBTTagCompound entityNBT = event.getEntityLiving().getEntityData(); NBTTagCompound entityNBT = event.getEntityLiving().getEntityData();
@@ -197,7 +199,7 @@ public class MindControl extends Spell {
Entity caster = WizardryUtilities.getEntityByUUID(event.getEntity().worldObj, entityNBT.getUniqueId(MindControl.NBT_KEY)); Entity caster = WizardryUtilities.getEntityByUUID(event.getEntity().worldObj, entityNBT.getUniqueId(MindControl.NBT_KEY));
// If the target that the event tried to set is already a valid mind control target, nothing happens. // If the target that the event tried to set is already a valid mind control target, nothing happens.
if(event.getTarget() != null && WizardryUtilities.isValidTarget(caster, event.getTarget())) return; if(WizardryUtilities.isValidTarget(caster, event.getTarget())) return;
if(caster instanceof EntityLivingBase){ if(caster instanceof EntityLivingBase){
@@ -208,8 +210,7 @@ public class MindControl extends Spell {
} }
} }
// If the caster couldn't be found or no valid target was found, this just acts like mind trick. // If the caster couldn't be found or no valid target was found, this just acts like mind trick.
// If the target is null already, no need to set it to null, or infinite loops will occur. ((EntityLiving)event.getEntityLiving()).setAttackTarget(null);
if(event.getTarget() != null) ((EntityLiving)event.getEntityLiving()).setAttackTarget(null);
} }
} }
@@ -970,6 +970,7 @@ public final class WizardryUtilities {
*/ */
public static Item getWand(Tier tier, Element element){ public static Item getWand(Tier tier, Element element){
if(tier == null) throw new NullPointerException("The given tier cannot be null."); if(tier == null) throw new NullPointerException("The given tier cannot be null.");
if(element == null) element = Element.MAGIC;
return WizardryItems.WAND_MAP.get(ImmutablePair.of(tier, element)); return WizardryItems.WAND_MAP.get(ImmutablePair.of(tier, element));
} }
} }
@@ -616,8 +616,8 @@ enchantment.wizardry:freezing_weapon=Frost Imbuement
key.categories.wizardry=Wizardry key.categories.wizardry=Wizardry
key.wizardry:next_spell=Next Spell key.wizardry.next_spell=Next Spell
key.wizardry:previous_spell=Previous Spell key.wizardry.previous_spell=Previous Spell
death.attack.wizardry_magic=%1$s was killed by %2$s using magic death.attack.wizardry_magic=%1$s was killed by %2$s using magic
death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic
@@ -616,8 +616,8 @@ enchantment.wizardry:freezing_weapon=Frost Imbuement
key.categories.wizardry=Wizardry key.categories.wizardry=Wizardry
key.wizardry:next_spell=Next Spell key.wizardry.next_spell=Next Spell
key.wizardry:previous_spell=Previous Spell key.wizardry.previous_spell=Previous Spell
death.attack.wizardry_magic=%1$s was killed by %2$s using magic death.attack.wizardry_magic=%1$s was killed by %2$s using magic
death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic
@@ -615,8 +615,8 @@ enchantment.wizardry:freezing_weapon=Impregnacion de Fuego
key.categories.wizardry=Wizardry key.categories.wizardry=Wizardry
key.wizardry:next_spell=Hechizo siguiente key.wizardry.next_spell=Hechizo siguiente
key.wizardry:previous_spell=Hechizo anterior key.wizardry.previous_spell=Hechizo anterior
death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia
death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia
@@ -615,8 +615,8 @@ enchantment.wizardry:freezing_weapon=Impregnacion de Fuego
key.categories.wizardry=Wizardry key.categories.wizardry=Wizardry
key.wizardry:next_spell=Hechizo siguiente key.wizardry.next_spell=Hechizo siguiente
key.wizardry:previous_spell=Hechizo anterior key.wizardry.previous_spell=Hechizo anterior
death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia
death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia
+1 -1
View File
@@ -2,7 +2,7 @@
{ {
"modid" : "wizardry", "modid" : "wizardry",
"name" : "Electroblob's Wizardry", "name" : "Electroblob's Wizardry",
"version" : "2.1.0", "version" : "2.1.2",
"url" : "https://minecraft.curseforge.com/projects/electroblobs-wizardry", "url" : "https://minecraft.curseforge.com/projects/electroblobs-wizardry",
"credits" : "Made by Electroblob", "credits" : "Made by Electroblob",
"authors" : [ "authors" : [