Type (item)

This commit is contained in:
Altixal committed 2024-10-15 23:44:32 +07:00
1 parent f63b6d5152
commit 5d1614d64a
258 files changed
+329 -329

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ namespace CalamityMod.Items.Accessories
if (Main.zenithWorld)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Accessories/Calamity_GFB").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Main.itemAnimations[Item.type].GetFrame(texture), lightColor, 0f, Vector2.Zero, 1f, 0, 0);
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Main.itemAnimations[Type].GetFrame(texture), lightColor, 0f, Vector2.Zero, 1f, 0, 0);
return false;
}
else
+1 -1
View File
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Accessories
}
// Allows item to be extractinated and specifies custom behavior instead of copying an existing item
public override void SetStaticDefaults() => ItemID.Sets.ExtractinatorMode[Item.type] = Item.type;
public override void SetStaticDefaults() => ItemID.Sets.ExtractinatorMode[Type] = Item.type;
public override void SetDefaults()
{
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
ItemID.Sets.ExtractinatorMode[Item.type] = Item.type;
ItemID.Sets.ExtractinatorMode[Type] = Item.type;
}
public override void SetDefaults()
+2 -2
View File
@@ -112,7 +112,7 @@ namespace CalamityMod.Items.Accessories
if (Texture == "CalamityMod/Items/Accessories/TheSponge")
{
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/Items/Accessories/TheSpongeShield").Value;
spriteBatch.Draw(tex, Item.Center - Main.screenPosition + new Vector2(0f, 0f), Main.itemAnimations[Item.type].GetFrame(tex), Color.Cyan * 0.5f, 0f, new Vector2(tex.Width / 2f, (tex.Height / 30f) * 0.8f), 1f, SpriteEffects.None, 0);
spriteBatch.Draw(tex, Item.Center - Main.screenPosition + new Vector2(0f, 0f), Main.itemAnimations[Type].GetFrame(tex), Color.Cyan * 0.5f, 0f, new Vector2(tex.Width / 2f, (tex.Height / 30f) * 0.8f), 1f, SpriteEffects.None, 0);
}
}
@@ -148,7 +148,7 @@ namespace CalamityMod.Items.Accessories
spriteBatch,
texture: tex,
position,
Main.itemAnimations[Item.type].GetFrame(tex),
Main.itemAnimations[Type].GetFrame(tex),
Color.Cyan * 0.4f,
itemColor,
origin,
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 3));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(120, 6.25f, 1f);
}
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
ItemID.Sets.ExtractinatorMode[Item.type] = Item.type;
ItemID.Sets.ExtractinatorMode[Type] = Item.type;
}
public override void SetDefaults()
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.DraedonMisc
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.ExtractinatorMode[Item.type] = Item.type;
ItemID.Sets.ExtractinatorMode[Type] = Item.type;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 2;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 30;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
public int shotCounter = 0;
public override void SetStaticDefaults()
{
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
ItemID.Sets.IsRangedSpecialistWeapon[Type] = true;
Item.staff[Type] = true; //so it doesn't look weird af when holding it
}
public override void SetDefaults()
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
// For some reason Life/Mana boosting items are in this set (along with Magic Mirror+)
ItemID.Sets.SortingPriorityBossSpawns[Type] = 21; // Mana Crystal
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ArcaneCrystal;
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
ItemID.Sets.CanFishInLava[Item.type] = true;
ItemID.Sets.CanFishInLava[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
ItemID.Sets.CanFishInLava[Item.type] = true;
ItemID.Sets.CanFishInLava[Type] = true;
}
public override void SetDefaults()
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
ItemID.Sets.CanFishInLava[Item.type] = true;
ItemID.Sets.CanFishInLava[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
public override void SetStaticDefaults()
{
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
Item.staff[Type] = true; //so it doesn't look weird af when holding it
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.LoreItems
public override void SetStaticDefaults()
{
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
}
public override bool CanUseItem(Player player) => false;
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 25;
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 118;
}
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Materials
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = TextureAssets.Item[Item.type].Value;
Texture2D texture = TextureAssets.Item[Type].Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
+2 -2
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Materials
for (int i = 0; i < 4; i++)
{
Vector2 drawPosition = baseDrawPosition + (MathHelper.TwoPi * i / 4f).ToRotationVector2() * outwardness - drawPositionOffset;
spriteBatch.Draw(TextureAssets.Item[Item.type].Value, drawPosition, frame, drawColor, velocity, origin, scale, SpriteEffects.None, 0f);
spriteBatch.Draw(TextureAssets.Item[Type].Value, drawPosition, frame, drawColor, velocity, origin, scale, SpriteEffects.None, 0f);
}
}
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Materials
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Rectangle frame = Main.itemAnimations[Item.type].GetFrame(TextureAssets.Item[Item.type].Value);
Rectangle frame = Main.itemAnimations[Type].GetFrame(TextureAssets.Item[Type].Value);
DrawPulsingAfterimage(spriteBatch, Item.position - Main.screenPosition + frame.Size() * 0.5f, frame, scale);
return true;
}
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 25;
ItemID.Sets.SortingPriorityMaterials[Type] = 120;
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 12));
}
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 94; // Spectre Bar
}
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 94; // Spectre Bar
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 94; // Spectre Bar
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 94; // Spectre Bar
}
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 5;
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(7, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 108;
}
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 100;
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 8));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 117;
}
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Materials
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = TextureAssets.Item[Item.type].Value;
Texture2D texture = TextureAssets.Item[Type].Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 6, 8), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 100;
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 116;
}
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Materials
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = TextureAssets.Item[Item.type].Value;
Texture2D texture = TextureAssets.Item[Type].Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
+2 -2
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 71; // Soul of Light
}
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Materials
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, TextureAssets.Item[Item.type].Value);
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, TextureAssets.Item[Type].Value);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
+2 -2
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 71; // Soul of Light
}
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Materials
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, TextureAssets.Item[Item.type].Value);
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, TextureAssets.Item[Type].Value);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
+2 -2
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 71; // Soul of Light
}
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Materials
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, TextureAssets.Item[Item.type].Value);
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, TextureAssets.Item[Type].Value);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
+2 -2
View File
@@ -37,13 +37,13 @@ namespace CalamityMod.Items.Materials
for (int i = 0; i < 4; i++)
{
Vector2 drawPosition = baseDrawPosition + (MathHelper.TwoPi * i / 4f).ToRotationVector2() * 4f;
spriteBatch.Draw(TextureAssets.Item[Item.type].Value, drawPosition, frame, drawColor, velocity, origin, scale, SpriteEffects.None, 0f);
spriteBatch.Draw(TextureAssets.Item[Type].Value, drawPosition, frame, drawColor, velocity, origin, scale, SpriteEffects.None, 0f);
}
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Rectangle frame = TextureAssets.Item[Item.type].Value.Frame();
Rectangle frame = TextureAssets.Item[Type].Value.Frame();
DrawBackAfterimage(spriteBatch, Item.position - Main.screenPosition + frame.Size() * 0.5f, frame, scale);
return true;
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 25;
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 24));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 99; // Luminite
}
+2 -2
View File
@@ -47,14 +47,14 @@ namespace CalamityMod.Items.Materials
for (int i = 0; i < 8; i++)
{
Vector2 drawPosition = baseDrawPosition + (MathHelper.TwoPi * i / 8f).ToRotationVector2() * drawPositionOffset;
spriteBatch.Draw(TextureAssets.Item[Item.type].Value, drawPosition, frame, drawColor, 0f, origin, baseScale, SpriteEffects.None, 0f);
spriteBatch.Draw(TextureAssets.Item[Type].Value, drawPosition, frame, drawColor, 0f, origin, baseScale, SpriteEffects.None, 0f);
}
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Rectangle frame = TextureAssets.Item[Item.type].Value.Frame();
Rectangle frame = TextureAssets.Item[Type].Value.Frame();
DrawBackAfterimage(spriteBatch, Item.position - Main.screenPosition, frame, Vector2.Zero, scale);
return true;
}
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 100;
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 115;
}
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Materials
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = TextureAssets.Item[Item.type].Value;
Texture2D texture = TextureAssets.Item[Type].Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Materials
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D tex = TextureAssets.Item[Item.type].Value;
Texture2D tex = TextureAssets.Item[Type].Value;
//Give it an outline. Make it look really important and shiny. The player must not confuse this for a random material
spriteBatch.End();
+2 -2
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Materials
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D tex = TextureAssets.Item[Item.type].Value;
Texture2D tex = TextureAssets.Item[Type].Value;
Vector2 positionDisplace = new Vector2(32, 32) * scale;
Rectangle variant = new Rectangle(CalamityWorld.OreTypes[0] == TileID.Tin ? 0 : 32, CalamityWorld.OreTypes[1] == TileID.Lead ? 0 : 32, 30, 30);
spriteBatch.Draw(tex, position + positionDisplace, variant, drawColor, 0f, origin, scale * 2f, 0f, 0f);
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Materials
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D tex = TextureAssets.Item[Item.type].Value;
Texture2D tex = TextureAssets.Item[Type].Value;
Rectangle variant = new Rectangle(CalamityWorld.OreTypes[0] == TileID.Tin ? 0 : 32, CalamityWorld.OreTypes[1] == TileID.Lead ? 0 : 32, 30, 30);
Vector2 positionDisplace = new Vector2(16, 16) * scale;
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 109;
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Materials
Item.ResearchUnlockCount = 25;
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 7));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 103;
}
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.ItemNoGravity[Type] = true;
}
@@ -11,9 +11,9 @@ namespace CalamityMod.Items.Placeables.Furniture
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.WaterTorches[Item.type] = true;
ItemID.Sets.WaterTorches[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Furniture
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables.Furniture
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
+2 -2
View File
@@ -11,9 +11,9 @@ namespace CalamityMod.Items.Placeables.Furniture
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.WaterTorches[Item.type] = true;
ItemID.Sets.WaterTorches[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
@@ -11,9 +11,9 @@ namespace CalamityMod.Items.Placeables.Furniture
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.WaterTorches[Item.type] = true;
ItemID.Sets.WaterTorches[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
@@ -11,9 +11,9 @@ namespace CalamityMod.Items.Placeables.Furniture
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.WaterTorches[Item.type] = true;
ItemID.Sets.WaterTorches[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
@@ -12,9 +12,9 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.WaterTorches[Item.type] = true;
ItemID.Sets.WaterTorches[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.FurnitureMarnite
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.Torches[Item.type] = true;
ItemID.Sets.Torches[Type] = true;
ItemID.Sets.SingleUseInGamepad[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch;
}
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items
public new string LocalizationCategory => "Items.Misc";
public override void SetStaticDefaults()
{
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Tools
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
+2 -2
View File
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Tools
public override void SetStaticDefaults()
{
Item.staff[Item.type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
Item.staff[Type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Tools
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Tools
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+2 -2
View File
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+2 -2
View File
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+2 -2
View File
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+2 -2
View File
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Type] = true;
}
public override void SetDefaults()
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+2 -2
View File
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
ItemID.Sets.PreHardmodeLikeBossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.TreasureBags
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.BossBag[Item.type] = true;
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public override void SetStaticDefaults()
{
ItemID.Sets.Spears[Item.type] = true;
ItemID.Sets.Spears[Type] = true;
}
public override void SetDefaults()
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public const float HoldoutChargeUse = 0.002f;
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
Loaded 100 of 258 files, more files were not shown because too many files have changed in this diff. Show more