Skip to content

Commit

Permalink
v0.1.1.2: bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimsonTek committed Dec 16, 2019
1 parent 08dc507 commit b352e8d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 59 deletions.
2 changes: 2 additions & 0 deletions Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ public class Config
public static float RainMultiplier { get; } = 1.25f;
// the multiplier of water type moves during rain, blood type moves during blood moons, etc
// don't go less than 1.0f;

public static bool DevMode { get; } = false;
}
}
2 changes: 1 addition & 1 deletion Dictionaries/Armors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public class Armors

{ItemID.NinjaShirt, new Tuple<Element, Element>(Element.dark, Element.fighting) },
{ItemID.FossilShirt, new Tuple<Element, Element>(Element.bone, Element.ground) },
{ItemID.ObsidianChest, new Tuple<Element, Element>(Element.fire, Element.water) },
{ItemID.ObsidianShirt, new Tuple<Element, Element>(Element.fire, Element.water) },
{ItemID.BeeBreastplate, new Tuple<Element, Element>(Element.bug, Element.flying) },
{ItemID.JungleShirt, new Tuple<Element, Element>(Element.grass, Element.none) },
{ItemID.AncientCobaltBreastplate, new Tuple<Element, Element>(Element.steel, Element.none) },
Expand Down
2 changes: 1 addition & 1 deletion Dictionaries/Enemies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ public class Enemies
{NPCID.SandsharkCorrupt, new Tuple<Element, Element, Element, Element>(Element.dragon, Element.dark, Element.none, Element.dark) },
{NPCID.SandsharkCrimson, new Tuple<Element, Element, Element, Element>(Element.dragon, Element.blood, Element.none, Element.blood) },
{NPCID.SandsharkHallow, new Tuple<Element, Element, Element, Element>(Element.dragon, Element.fairy, Element.none, Element.fairy) },
{NPCID.Tumbleweed, new Tuple<Element, Element, Element, Element>(Element.grass, Element.grass, Element.none, Element.grass) },
{NPCID.Tumbleweed, new Tuple<Element, Element, Element, Element>(Element.grass, Element.none, Element.none, Element.grass) },

{NPCID.DD2EterniaCrystal, new Tuple<Element, Element, Element, Element>(Element.normal, Element.none, Element.none, Element.normal) },
{NPCID.DD2LanePortal, new Tuple<Element, Element, Element, Element>(Element.dark, Element.none, Element.none, Element.dark) },
Expand Down
23 changes: 0 additions & 23 deletions Items/Guide.cs

This file was deleted.

22 changes: 0 additions & 22 deletions Items/Numbers.cs

This file was deleted.

25 changes: 14 additions & 11 deletions TerraTyping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,19 @@ private void Initialize(Mod mod, ref Dictionary<string, Tuple<Element, Element,
}
}

//public override void PostUpdateEverything()
//{
// if (Main.ActivePlayersCount > 0 && errors.Count > 0)
// {
// for (int index = 0; index < errors.Count; index++)
// {
// Main.NewText("[TerraTyping] " + errors[index], 255, 0, 0, true);
// errors.RemoveAt(index);
// }
// }
//}
public override void PostUpdateEverything()
{
if (Main.ActivePlayersCount > 0 && errors.Count > 0)
{
for (int index = 0; index < errors.Count; index++)
{
if (Config.DevMode)
{
Main.NewText("[TerraTyping] " + errors[index], 255, 0, 0, true);
}
errors.RemoveAt(index);
}
}
}
}
}
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = CrimsonTek
version = 0.1.1.1
version = 0.1.1.2
displayName = TerraTyping
homepage = https://discord.gg/RvPGKwz
buildIgnore= *.sln, *csproj, *.user, obj\*, bin\*, .vs\*
3 changes: 3 additions & 0 deletions description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Mod Homepage: https://discord.gg/RvPGKwz

Version History:

v0.1.1.2
- Made Angry Tumblers mono grass, and made fixed obsidian armor not having the right type.

v0.1.1.1
- Made water super effective against fire.

Expand Down

0 comments on commit b352e8d

Please sign in to comment.