1 - Added Marksman Rounds. These enable any gun to ricoshot with Midas Prime.
2 - Tyranny's End changed to work identically to AMR: it can use regular bullets.
This commit is contained in:
1 parent
2b659cc401
commit
25bf55d696
6 files changed
+50
-15
No files matched your search
@@ -0,0 +1,42 @@
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
public class MarksmanRound : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 99;
|
||||
DisplayName.SetDefault("Marksman Round");
|
||||
Tooltip.SetDefault("A carefully crafted round which can be ricocheted off of midair coins\nAny gun firing this weapon can perform Ricoshots with coins from Crackshot Colt or Midas Prime");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 12;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 12;
|
||||
Item.height = 26;
|
||||
Item.maxStack = 999;
|
||||
Item.consumable = true;
|
||||
Item.knockBack = 2.25f;
|
||||
Item.value = Item.sellPrice(copper: 10);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.shoot = ModContent.ProjectileType<MidasBlast>();
|
||||
Item.shootSpeed = 1f;
|
||||
Item.ammo = AmmoID.Bullet;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(999).
|
||||
AddIngredient(ItemID.GoldenBullet, 999).
|
||||
AddIngredient(ItemID.GoldCoin).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 251 B |
@@ -5,7 +5,6 @@ using CalamityMod.Sounds;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -57,14 +56,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Register();
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
|
||||
{
|
||||
if (type == ProjectileID.Bullet)
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<AMRShot>(), damage, knockback, player.whoAmI);
|
||||
else
|
||||
Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
|
||||
return false;
|
||||
type = ModContent.ProjectileType<AMRShot>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@ using CalamityMod.Sounds;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -17,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
DisplayName.SetDefault("Tyranny's End");
|
||||
Tooltip.SetDefault("Pierce the heart of even the most heavily-armored foe\n" +
|
||||
"Fires a .70 caliber sniper round that bypasses enemy defense and DR\n" +
|
||||
"Converts musket balls into .70 caliber sniper rounds that bypass enemy defense and DR\n" +
|
||||
"Rounds mark enemies for death and summon a swarm of additional bullets on crits");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
@@ -61,10 +60,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Register();
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
|
||||
{
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<PiercingBullet>(), damage, knockback, player.whoAmI, 0f, 0f);
|
||||
return false;
|
||||
if (type == ProjectileID.Bullet)
|
||||
type = ModContent.ProjectileType<PiercingBullet>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Systems;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -21,7 +20,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blast");
|
||||
DisplayName.SetDefault("Crack Shot");
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = TrailLenght;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
ProjectileID.Sets.DrawScreenCheckFluff[Projectile.type] = 4000;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blast");
|
||||
DisplayName.SetDefault("Marksman Shot");
|
||||
ProjectileID.Sets.DrawScreenCheckFluff[Projectile.type] = 4000;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user