Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
afec972b81
7 files changed
+58
-12
No files matched your search
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<EutrophicSand>(1).
|
||||
AddIngredient(TileID.Dirt).
|
||||
AddIngredient(ItemID.DirtBlock, 1).
|
||||
AddTile(TileID.Solidifier).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.GameContent;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
@@ -51,20 +52,22 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.damage = 533;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 12;
|
||||
Item.width = 38;
|
||||
Item.height = 48;
|
||||
Item.UseSound = SoundID.Item84;
|
||||
Item.useTime = Item.useAnimation = 20;
|
||||
Item.autoReuse = true;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.shootSpeed = 7f;
|
||||
Item.mana = 12;
|
||||
Item.knockBack = 5f;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<EnormousConsumingVortex>();
|
||||
|
||||
Item.width = 86;
|
||||
Item.height = 104;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.UseSound = SoundID.Item84;
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
Item.value = CalamityGlobalItem.Rarity15BuyPrice;
|
||||
Item.noMelee = true;
|
||||
Item.channel = true;
|
||||
Item.shoot = ModContent.ProjectileType<EnormousConsumingVortex>();
|
||||
Item.shootSpeed = 7f;
|
||||
Item.autoReuse = true;
|
||||
}
|
||||
|
||||
public override void HoldItem(Player player)
|
||||
@@ -79,11 +82,30 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override bool? CanAutoReuseItem(Player player) => true;
|
||||
|
||||
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
{
|
||||
CalamityUtils.DrawInventoryCustomScale(
|
||||
spriteBatch,
|
||||
texture: TextureAssets.Item[Type].Value,
|
||||
position,
|
||||
frame,
|
||||
drawColor,
|
||||
itemColor,
|
||||
origin,
|
||||
scale,
|
||||
wantedScale: 0.4f,
|
||||
drawOffset: default
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow").Value);
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-6f, 0);
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.altFunctionUse != 2)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 1.0 KiB |
@@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Mantis Claws");
|
||||
Tooltip.SetDefault("Explodes on enemy hits");
|
||||
Tooltip.SetDefault("Explodes on enemy hit\n" +
|
||||
"It's just that shrimple");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,7 @@ namespace CalamityMod.NPCs
|
||||
"Izuna",
|
||||
"Jasmine", // <@!430532867479699456> (phantasmagoria#6777)
|
||||
"Cybil", // <@!486507232666845185> (Captain Doofus#????)
|
||||
"Ruth", // <@!1001307586068492388> (Briny_Coffee#4393)
|
||||
};
|
||||
private static readonly string[] DyeTraderNames = null;
|
||||
private static readonly string[] GoblinTinkererNames =
|
||||
|
||||
@@ -31,12 +31,34 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Eutrophic Sand");
|
||||
AddMapEntry(new Color(92, 145, 167), name);
|
||||
MineResist = 2f;
|
||||
|
||||
TileFraming.SetUpUniversalMerge(Type, TileID.Sandstone, out tileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, TileID.Sand, out secondTileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, TileID.HardenedSand, out thirdTileAdjacency);
|
||||
}
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
Tile up = Main.tile[i, j - 1];
|
||||
Tile up2 = Main.tile[i, j - 2];
|
||||
|
||||
//place SmallCorals
|
||||
if (WorldGen.genRand.Next(8) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && up2.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock)
|
||||
{
|
||||
up.TileType = (ushort)ModContent.TileType<SmallCorals>();
|
||||
up.HasTile = true;
|
||||
up.TileFrameY = 0;
|
||||
|
||||
//6 different frames, choose a random one
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(6) * 18);
|
||||
WorldGen.SquareTileFrame(i, j - 1, true);
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.SendTileSquare(-1, i, j - 1, 3, TileChangeType.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user