Added Coin of Deceit and bug fixes

Added rogue stealth to Obsidian armor tooltip
Fixed Spirit Generator bug
minor alcohol adjustment
fixed my rogue weapons not doing rogue damage
This commit is contained in:
termigator1359 committed 2019-10-02 14:54:48 -04:00
1 parent 347fdbb020
commit 564fac9214
9 files changed
+74 -6

No files matched your search

+3
View File
@@ -696,6 +696,7 @@ namespace CalamityMod
calamity.ItemType("FrigidflashBolt"),
calamity.ItemType("GreatbowofTurmoil"),
calamity.ItemType("HarvestStaff"),
calamity.ItemType("Hellborn"),
calamity.ItemType("HellBurst"),
calamity.ItemType("HellfireFlamberge"),
calamity.ItemType("Hellkite"),
@@ -714,6 +715,7 @@ namespace CalamityMod
calamity.ItemType("TearsofHeaven"),
calamity.ItemType("TerraFlameburster"),
calamity.ItemType("TheEmpyrean"),
calamity.ItemType("TheLastMourning"),
calamity.ItemType("TheWand"),
calamity.ItemType("VenusianTrident"),
calamity.ItemType("Vesuvius"),
@@ -774,6 +776,7 @@ namespace CalamityMod
calamity.ItemType("NeptunesBounty"),
calamity.ItemType("AquaticDissolution"),
calamity.ItemType("ArchAmaryllis"),
calamity.ItemType("ThornBlossom"),
calamity.ItemType("BiomeBlade"),
calamity.ItemType("TrueBiomeBlade"),
calamity.ItemType("OmegaBiomeBlade"),
+60
View File
@@ -0,0 +1,60 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.CalamityCustomThrowingDamage;
using CalamityMod.CalPlayer;
namespace CalamityMod.Items.Accessories
{
public class CoinofDeceit : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Coin of Deceit");
Tooltip.SetDefault("6% increased rogue crit chance");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 22;
item.value = Item.buyPrice(0, 2, 0, 0);
item.accessory = true;
item.rare = 1;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetCalamityPlayer();
player.GetCalamityPlayer().throwingCrit += 6;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.GoldBar, 4);
recipe.AddIngredient(ItemID.CopperBar, 8);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.GoldBar, 4);
recipe.AddIngredient(ItemID.TinBar, 8);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.PlatinumBar, 4);
recipe.AddIngredient(ItemID.CopperBar, 8);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.PlatinumBar, 4);
recipe.AddIngredient(ItemID.TinBar, 8);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

@@ -5,7 +5,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.CalamityCustomThrowingDamage
{
public class BloodsoakedCrasher : ModItem //This weapon has been coded by Achilles|Termi|Ben
public class BloodsoakedCrasher : CalamityDamageItem //This weapon has been coded by Achilles|Termi|Ben
{
public override void SetStaticDefaults()
{
@@ -11,7 +11,7 @@ using static CalamityMod.CalPlayer.CalamityPlayer;
namespace CalamityMod.Items.CalamityCustomThrowingDamage
{
public class ScourgeoftheSeas : ModItem
public class ScourgeoftheSeas : CalamityDamageItem
{
public override void SetStaticDefaults()
{
@@ -5,7 +5,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.CalamityCustomThrowingDamage
{
public class UtensilPoker : ModItem
public class UtensilPoker : CalamityDamageItem
{
public override void SetStaticDefaults()
{
+4 -1
View File
@@ -1644,7 +1644,10 @@ namespace CalamityMod.Items
player.lavaMax += 180;
player.setBonus = "+2 defense\n" +
"5% increased rogue damage and critical strike chance\n" +
"Grants immunity to fire blocks and temporary immunity to lava";
"Grants immunity to fire blocks and temporary immunity to lava\n" +
"Rogue stealth builds while not attacking and not moving, up to a max of 100\n" +
"Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
"The higher your rogue stealth the higher your rogue damage, crit, and movement speed";
}
}
#endregion
+3 -1
View File
@@ -2554,9 +2554,11 @@ namespace CalamityMod.NPCs
#region On Hit By Projectile
public override void OnHitByProjectile(NPC npc, Projectile projectile, int damage, float knockback, bool crit)
{
bool isSummon = projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type);
if (Main.player[projectile.owner].GetCalamityPlayer().sGenerator)
{
if (projectile.minion && npc.damage > 0)
if (isSummon && npc.damage > 0)
{
switch (Main.rand.Next(3))
{
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Tiles
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Weightless Candle");
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
AddMapEntry(new Color(238, 145, 105), name);
animationFrameHeight = 34;
}