Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
f5fe53aa09
1924 files changed
+5398
-5516
No files matched your search
@@ -860,12 +860,27 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
private void MiscEffects()
|
||||
{
|
||||
// Update Carpet textures
|
||||
// Update textures
|
||||
if (Main.netMode != NetmodeID.Server && Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Asset<Texture2D> carpetAuric = ExtraTextureRefs.FlyingCarpetAuric;
|
||||
Asset<Texture2D> carpetOriginal = ExtraTextureRefs.FlyingCarpetVanilla;
|
||||
TextureAssets.FlyingCarpet = (auricSet ? carpetAuric : carpetOriginal);
|
||||
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
if (Player.buffType[l] != BuffID.Lucky)
|
||||
continue;
|
||||
|
||||
if (Player.buffTime[l] > CalamityUtils.SecondsToFrames(600f))
|
||||
TextureAssets.Buff[BuffID.Lucky] = ExtraTextureRefs.LuckIconGreater;
|
||||
else if (Player.buffTime[l] > CalamityUtils.SecondsToFrames(300f))
|
||||
TextureAssets.Buff[BuffID.Lucky] = ExtraTextureRefs.LuckIconVanilla;
|
||||
else
|
||||
TextureAssets.Buff[BuffID.Lucky] = ExtraTextureRefs.LuckIconLesser;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Calculate/reset DoG cart rotations based on whether the DoG cart is in use.
|
||||
|
||||
@@ -7,6 +7,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.ExtraTextures
|
||||
@@ -32,6 +33,11 @@ namespace CalamityMod.ExtraTextures
|
||||
public static Asset<Texture2D> FlyingCarpetVanilla;
|
||||
public static Asset<Texture2D> FlyingCarpetAuric;
|
||||
|
||||
// Lucky Buff icon replacements
|
||||
public static Asset<Texture2D> LuckIconGreater;
|
||||
public static Asset<Texture2D> LuckIconVanilla;
|
||||
public static Asset<Texture2D> LuckIconLesser;
|
||||
|
||||
// Boss Heads
|
||||
// I know it's not exactly a Texture2D but it belongs to ExtraTextures.
|
||||
public static int BossHeadIndex_ChadPrime;
|
||||
@@ -60,6 +66,10 @@ namespace CalamityMod.ExtraTextures
|
||||
|
||||
FlyingCarpetVanilla = TextureAssets.FlyingCarpet;
|
||||
FlyingCarpetAuric = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AuricCarpet", AssetRequestMode.AsyncLoad);
|
||||
|
||||
LuckIconGreater = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBuffs/LuckyGreater", AssetRequestMode.AsyncLoad);
|
||||
LuckIconVanilla = TextureAssets.Buff[BuffID.Lucky];
|
||||
LuckIconLesser = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBuffs/LuckyLesser", AssetRequestMode.AsyncLoad);
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
@@ -67,6 +77,7 @@ namespace CalamityMod.ExtraTextures
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
TextureAssets.FlyingCarpet = FlyingCarpetVanilla;
|
||||
TextureAssets.Buff[BuffID.Lucky] = LuckIconVanilla;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 622 B |
Binary file not shown.
|
After Width: | Height: | Size: 612 B |
@@ -205,6 +205,7 @@ namespace CalamityMod.ILEditing
|
||||
IL_Player.TileInteractionsUse += RemovePowerCellPlanteraLock;
|
||||
On_Player.ItemCheck_CheckCanUse += RemoveCelestialSigilUseLock;
|
||||
On_Player.ItemCheck_UseEventItems += ApplyCelestialSigilChanges;
|
||||
IL_Main.DrawInfoAccs += RemoveDamageConditionFromRadar;
|
||||
|
||||
// Fix vanilla bugs exposed by Calamity mechanics
|
||||
IL_NPC.NPCLoot += FixSplittingWormBannerDrops;
|
||||
|
||||
@@ -1103,6 +1103,33 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Remove NPC.damage Condition from Radar
|
||||
private static void RemoveDamageConditionFromRadar(ILContext il)
|
||||
{
|
||||
var cursor = new ILCursor(il);
|
||||
|
||||
Func<Instruction, bool>[] searchFor =
|
||||
[
|
||||
(x => x.MatchLdfld<NPC>(nameof(NPC.damage))),
|
||||
(x => x.MatchLdcI4(out var comp) && comp == 0),
|
||||
(x => x.MatchBle(out _)) //ble.s
|
||||
];
|
||||
|
||||
if (!cursor.TryGotoNext(MoveType.After, searchFor))
|
||||
{
|
||||
LogFailure("Radar Condition", "Unable to locate condition for NPC.damage > 0");
|
||||
return;
|
||||
}
|
||||
|
||||
// branch is used for exit condition. So setting ble.s opcode to nop will remove the condition
|
||||
cursor.Prev.OpCode = OpCodes.Nop;
|
||||
|
||||
// After that we pop NPC.damage and 0 from stack
|
||||
cursor.EmitPop();
|
||||
cursor.EmitPop();
|
||||
}
|
||||
#endregion
|
||||
|
||||
// 02JUN2024: Ozzatron: The below code is being kept in its initial state for historic value.
|
||||
#region Store The Stupid Fucking Private Wind Map In Public Property
|
||||
[/*TotallyNot*/Obsolete("This function serves no purpose and is included in the Calamity source code for historic value.", error: true)]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Ammo
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 99;
|
||||
ItemID.Sets.SortingPriorityTerraforming[Type] = 95; // Red Solution
|
||||
ItemID.Sets.SortingPriorityTerraforming[Type] = 94; // Red Solution
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToSolution(ModContent.ProjectileType<AstralSpray>());
|
||||
|
||||
@@ -801,6 +801,11 @@ namespace CalamityMod.Items
|
||||
return false; // Don't use weapons if you're charging with a spear
|
||||
}
|
||||
|
||||
// If the player if using the Drill Containment Unit, ignore all this.
|
||||
// It will start to check for everything below EVERY FRAME, including attacking with PSC or using Charge
|
||||
if (player.mount.Type == MountID.Drill)
|
||||
return base.CanUseItem(item, player);
|
||||
|
||||
// Conversion for Andromeda
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<GiantIbanRobotOfDoom>()] > 0)
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
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
|
||||
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
|
||||
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
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 10;
|
||||
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
|
||||
ItemID.Sets.CanBePlacedOnWeaponRacks[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(204, 90, 73),
|
||||
new Color(168, 37, 37),
|
||||
new Color(120, 28, 28)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<BloodyMaryBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(20, 32, ModContent.BuffType<BloodyMaryBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 80);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,20 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Based on the drink itself
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(105, 29, 14),
|
||||
new Color(128, 39, 22),
|
||||
new Color(138, 28, 7)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<CaribbeanRumBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(14, 32, ModContent.BuffType<CaribbeanRumBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(245, 223, 181),
|
||||
new Color(222, 186, 147),
|
||||
new Color(176, 129, 106)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<CinnamonRollBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<CinnamonRollBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Everclear is clear so uhm... yeah?
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[2] {
|
||||
new Color(153, 168, 162, 180),
|
||||
new Color(198, 205, 207, 180)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<EverclearBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(60f);
|
||||
Item.DefaultToFood(14, 42, ModContent.BuffType<EverclearBuff>(), CalamityUtils.SecondsToFrames(60f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 80);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,20 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Pale green-blue
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(201, 248, 248),
|
||||
new Color(201, 248, 221),
|
||||
new Color(177, 240, 184)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<EvergreenGinBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<EvergreenGinBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,24 +16,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<CrystalHeartVodka>();
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(239, 123, 202),
|
||||
new Color(187, 56, 158),
|
||||
new Color(165, 47, 255)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<FabsolVodkaBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(900f);
|
||||
Item.DefaultToFood(30, 42, ModContent.BuffType<FabsolVodkaBuff>(), CalamityUtils.SecondsToFrames(900f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(245, 171, 22),
|
||||
new Color(227, 128, 41),
|
||||
new Color(237, 82, 31)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<FireballBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(16, 38, ModContent.BuffType<FireballBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,25 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(36, 2, 41),
|
||||
new Color(56, 0, 64),
|
||||
new Color(82, 10, 92)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.healLife = 100;
|
||||
Item.healMana = 100;
|
||||
Item.consumable = true;
|
||||
Item.potion = true;
|
||||
Item.DefaultToHealingPotion(12, 28, 100);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 3);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -14,25 +15,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(219, 227, 191),
|
||||
new Color(186, 189, 147),
|
||||
new Color(142, 161, 125)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 40;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.potion = true;
|
||||
Item.healLife = 200;
|
||||
Item.healMana = 200;
|
||||
Item.DefaultToHealingPotion(28, 40, 200);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,20 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Another clear drink
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(237, 237, 218, 128),
|
||||
new Color(227, 219, 191, 128),
|
||||
new Color(209, 204, 194, 128)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<MoonshineBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(24, 28, ModContent.BuffType<MoonshineBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,24 +14,20 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Pale green with a hint of red
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(194, 252, 192),
|
||||
new Color(226, 252, 192),
|
||||
new Color(250, 225, 222)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 34;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<MoscowMuleBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(32, 32, ModContent.BuffType<MoscowMuleBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.FoodParticleColors[Type] = new Color[3] {
|
||||
new Color(232, 100, 90),
|
||||
new Color(230, 215, 117),
|
||||
new Color(143, 83, 64)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 38;
|
||||
Item.height = 50;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useStyle = ItemUseStyleID.EatFood;
|
||||
Item.UseSound = SoundID.Item2;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<Trippy>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(3600f);
|
||||
Item.DefaultToFood(38, 50, ModContent.BuffType<Trippy>(), CalamityUtils.SecondsToFrames(3600f));
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(gold: 10);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,24 +16,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(255, 118, 3),
|
||||
new Color(255, 200, 82),
|
||||
new Color(255, 228, 122)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 40;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<OldFashionedBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(360f);
|
||||
Item.DefaultToFood(30, 38, ModContent.BuffType<OldFashionedBuff>(), CalamityUtils.SecondsToFrames(360f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(54, 5, 21),
|
||||
new Color(82, 9, 36),
|
||||
new Color(105, 4, 29)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.healLife = 200;
|
||||
Item.consumable = true;
|
||||
Item.potion = true;
|
||||
Item.DefaultToHealingPotion(14, 48, 200);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
|
||||
public override void GetHealLife(Player player, bool quickHeal, ref int healValue)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(237, 165, 9),
|
||||
new Color(247, 219, 54),
|
||||
new Color(255, 195, 31)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<RumBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(24, 26, ModContent.BuffType<RumBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(225, 84, 33),
|
||||
new Color(244, 176, 77),
|
||||
new Color(255, 218, 102)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 16;
|
||||
Item.height = 26;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<ScrewdriverBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(14, 28, ModContent.BuffType<ScrewdriverBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,24 +12,20 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Dark red-orange
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(89, 18, 10),
|
||||
new Color(102, 39, 14),
|
||||
new Color(128, 31, 9)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<StarBeamRyeBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(20, 34, ModContent.BuffType<StarBeamRyeBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 80);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,24 +14,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(163, 110, 10),
|
||||
new Color(176, 135, 0),
|
||||
new Color(194, 132, 25)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<TequilaBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(16, 34, ModContent.BuffType<TequilaBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -12,24 +13,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(220, 75, 59),
|
||||
new Color(229, 147, 47),
|
||||
new Color(255, 190, 76)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<TequilaSunriseBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(22, 28, ModContent.BuffType<TequilaSunriseBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,24 +14,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Another clear drink
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[2] {
|
||||
new Color(219, 219, 208, 180),
|
||||
new Color(181, 181, 176, 180)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<VodkaBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(14, 36, ModContent.BuffType<VodkaBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,24 +14,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(227, 148, 11),
|
||||
new Color(235, 177, 5),
|
||||
new Color(250, 190, 12)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<WhiskeyBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<WhiskeyBuff>(), CalamityUtils.SecondsToFrames(480f), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.ID;
|
||||
@@ -12,25 +13,21 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 5;
|
||||
// Clear, yellow-green
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(242, 252, 177, 180),
|
||||
new Color(250, 252, 215, 180),
|
||||
new Color(228, 245, 181, 180)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.DefaultToFood(14, 44, ModContent.BuffType<WhiteWineBuff>(), CalamityUtils.SecondsToFrames(300f), true);
|
||||
Item.healMana = 300;
|
||||
Item.buffType = ModContent.BuffType<WhiteWineBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(300f);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -12,22 +13,17 @@ namespace CalamityMod.Items.Potions
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[2] {
|
||||
new Color(118, 182, 199),
|
||||
new Color(150, 227, 230)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.EatFood;
|
||||
// How do you even use this?
|
||||
Item.DefaultToFood(22, 26, ModContent.BuffType<AnechoicCoatingBuff>(), CalamityUtils.SecondsToFrames(240f));
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<AnechoicCoatingBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(240f);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -13,22 +14,15 @@ namespace CalamityMod.Items.Potions
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 30;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[2] {
|
||||
new Color(255, 164, 94),
|
||||
new Color(109, 242, 196)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 18;
|
||||
Item.useTurn = true;
|
||||
Item.maxStack = 9999;
|
||||
Item.useAnimation = 17;
|
||||
Item.useTime = 17;
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<AstralInjectionBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(5f);
|
||||
|
||||
Item.DefaultToFood(14, 34, ModContent.BuffType<AstralInjectionBuff>(), CalamityUtils.SecondsToFrames(5f), true);
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
|
||||
Loaded 100 of 1924 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user