Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
All treasure bag tooltips 'right click to open' will now translate pr…
Browse files Browse the repository at this point in the history
…operly
  • Loading branch information
Jofairden committed Sep 12, 2017
1 parent 9a0024e commit 9e5b9bc
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 76 deletions.
3 changes: 2 additions & 1 deletion Changelogs/v1.3.2.4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ Thanks to Eldrazi for many contributions for this patch.
- Implemented actual crit chance and knockback for alchemical weapons. Increases to alchemical crit is no longer just visual in the tooltip but actually takes effect (Knockback for alchemical weapons is implemented, but no items give it yet, leave your suggestions)
- Improved certain tooltips for alchemist class related items (please note I still probably missed many)
- Fixed certain alchemist class items not granting the right amount of increased damage or critical strike chance
- Glacier ice wall can now only spread to other ice or snow
- Glacier ice wall can now only spread to other ice or snow
- All treasure bag tooltips 'right click to open' will now translate properly
4 changes: 1 addition & 3 deletions Invasion/ParadoxTitanBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class ParadoxTitanBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
Expand All @@ -21,10 +20,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
5 changes: 1 addition & 4 deletions Items/AlchemasterTreasureBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class AlchemasterTreasureBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
Expand All @@ -21,10 +20,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down Expand Up @@ -60,6 +58,5 @@ public override void OpenBossBag(Player player)
player.QuickSpawnItem(mod.ItemType("GoldenStar"));
player.QuickSpawnItem(mod.ItemType("LongFuse"));
}

}
}
4 changes: 1 addition & 3 deletions Items/AncientDragonBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class AncientDragonBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
Expand All @@ -21,10 +20,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
6 changes: 1 addition & 5 deletions Items/AndasBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class AndasBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
Expand All @@ -21,10 +20,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down Expand Up @@ -60,8 +58,6 @@ public override void OpenBossBag(Player player)
player.QuickSpawnItem(mod.ItemType("AndasCore"));
player.QuickSpawnItem(3544, Main.rand.Next(10, 25));
player.QuickSpawnItem(mod.ItemType("InfernoSoul"), Main.rand.Next(8, 15));

}

}
}
4 changes: 0 additions & 4 deletions Items/BagofDust.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ public class BagofDust : ModItem
{
public override void SetDefaults()
{

item.width = 22;
item.height = 36;
item.value = 10000;
Expand All @@ -18,8 +17,5 @@ public override void SetStaticDefaults()
DisplayName.SetDefault("Bag of Dust");
Tooltip.SetDefault("Used for crafting bags with a variety of dust");
}



}
}
4 changes: 1 addition & 3 deletions Items/BrutalliskBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class BrutalliskBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
Expand All @@ -21,10 +20,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
2 changes: 1 addition & 1 deletion Items/CogLordBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


Expand Down
2 changes: 1 addition & 1 deletion Items/CyberKingBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


Expand Down
2 changes: 1 addition & 1 deletion Items/DarkEmperorBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


Expand Down
2 changes: 1 addition & 1 deletion Items/EvilCornBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


Expand Down
2 changes: 1 addition & 1 deletion Items/FrostKingBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


Expand Down
6 changes: 1 addition & 5 deletions Items/FungusBeetleBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public class FungusBeetleBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
item.height = 24;

item.rare = 9;
item.expert = true;
bossBagNPC = mod.NPCType("FungusBeetle");
Expand All @@ -21,10 +19,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand All @@ -40,6 +37,5 @@ public override void OpenBossBag(Player player)
player.QuickSpawnItem(mod.ItemType("GoldenGlowingRing"));
player.QuickSpawnItem(mod.ItemType("FungusElement"), Main.rand.Next(10, 32));
}

}
}
5 changes: 1 addition & 4 deletions Items/HeaterOfWorldsBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public class HeaterOfWorldsBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
item.height = 24;

item.rare = 9;
item.expert = true;
bossBagNPC = mod.NPCType("HeaterOfWorldsHead");
Expand All @@ -21,10 +19,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
5 changes: 1 addition & 4 deletions Items/MoneySack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@ public class MoneySack : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 32;
item.height = 32;

item.rare = 0;
}

public override void SetStaticDefaults()
{
DisplayName.SetDefault("Money Sack");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
5 changes: 1 addition & 4 deletions Items/PixieQueenBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public class PixieQueenBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
item.height = 24;

item.rare = 9;
item.expert = true;
bossBagNPC = mod.NPCType("PixieQueen");
Expand All @@ -21,10 +19,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
5 changes: 1 addition & 4 deletions Items/SpaceWhaleTreasureBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public class SpaceWhaleTreasureBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
item.height = 24;

item.rare = 9;
item.expert = true;
bossBagNPC = mod.NPCType("SpaceWhale");
Expand All @@ -21,10 +19,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
5 changes: 1 addition & 4 deletions Items/StormJellyfishBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public class StormJellyfishBag : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
item.height = 24;

item.rare = 9;
item.expert = true;
bossBagNPC = mod.NPCType("StormJellyfish");
Expand All @@ -21,10 +19,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
5 changes: 1 addition & 4 deletions Items/TrinityBag1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public class TrinityBag1 : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
item.height = 24;

item.rare = 9;
item.expert = true;
bossBagNPC = mod.NPCType("SoulofTruth");
Expand All @@ -21,10 +19,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
5 changes: 1 addition & 4 deletions Items/TrinityBag2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public class TrinityBag2 : ModItem
{
public override void SetDefaults()
{

item.maxStack = 999;
item.consumable = true;
item.width = 24;
item.height = 24;

item.rare = 9;
item.expert = true;
bossBagNPC = mod.NPCType("SoulofTrust");
Expand All @@ -21,10 +19,9 @@ public override void SetDefaults()
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Treasure Bag");
Tooltip.SetDefault("Right click to open");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}


public override bool CanRightClick()
{
return true;
Expand Down
Loading

0 comments on commit 9e5b9bc

Please sign in to comment.