Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
No files matched your search
@@ -12,6 +12,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbovegroundAstralBiomeIcon";
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space;
|
||||
|
||||
@@ -24,5 +25,11 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
return !player.ZoneDungeon && BiomeTileCounterSystem.AstralTiles > 950 && !player.ZoneDesert && !player.ZoneSnow;
|
||||
}
|
||||
|
||||
public override void SpecialVisuals(Player player, bool isActive)
|
||||
{
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:Astral", isActive);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AstralDesertIcon";
|
||||
// Could use its own unique background
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -24,5 +25,10 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
return !player.ZoneDungeon && BiomeTileCounterSystem.AstralTiles > 950 && player.ZoneDesert && !player.ZoneSnow;
|
||||
}
|
||||
|
||||
public override void SpecialVisuals(Player player, bool isActive)
|
||||
{
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:Astral", isActive);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/AstralSnowSurfaceBGStyle");
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space;
|
||||
|
||||
@@ -22,5 +23,11 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
return !player.ZoneDungeon && BiomeTileCounterSystem.AstralTiles > 950 && !player.ZoneDesert && player.ZoneSnow;
|
||||
}
|
||||
|
||||
public override void SpecialVisuals(Player player, bool isActive)
|
||||
{
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:Astral", isActive);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -47,6 +47,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon";
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1";
|
||||
|
||||
public override int Music
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon";
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon";
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon";
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer4";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer4";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/SulphurousSeaIcon";
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/SulphurBG";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/SulphurBG";
|
||||
|
||||
public override int Music
|
||||
{
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/SunkenSeaIcon";
|
||||
// Placeholder until we get a dedicated Sunken Sea background
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/UndergroundAstralIcon";
|
||||
// Could use its own unique background
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("AstralUnderground") ?? MusicID.Space;
|
||||
|
||||
@@ -26,6 +27,11 @@ namespace CalamityMod.BiomeManagers
|
||||
return !player.ZoneDungeon && BiomeTileCounterSystem.AstralTiles > 950 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
}
|
||||
|
||||
public override void SpecialVisuals(Player player, bool isActive)
|
||||
{
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:Astral", isActive);
|
||||
}
|
||||
|
||||
// Just slightly above the above-ground astral biomes.
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 497 B |
@@ -33,6 +33,7 @@ using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Mounts.Minecarts;
|
||||
using CalamityMod.Items.TreasureBags.MiscGrabBags;
|
||||
using CalamityMod.Items.VanillaArmorChanges;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
@@ -250,6 +251,7 @@ namespace CalamityMod.CalPlayer
|
||||
public static readonly SoundStyle RogueStealthSound = new("CalamityMod/Sounds/Custom/RogueStealth");
|
||||
public static readonly SoundStyle DefenseDamageSound = new("CalamityMod/Sounds/Custom/DefenseDamage");
|
||||
|
||||
public static readonly SoundStyle IjiDeathSound = new("CalamityMod/Sounds/Custom/IjiDies");
|
||||
#endregion
|
||||
|
||||
#region Proficiency
|
||||
@@ -608,6 +610,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool silverMedkit = false;
|
||||
public int silverMedkitTimer = 0;
|
||||
public bool goldArmorGoldDrops = false;
|
||||
public bool miningSet = false;
|
||||
public int miningSetCooldown = 0;
|
||||
public bool desertProwler = false;
|
||||
public bool snowRuffianSet = false;
|
||||
public bool forbiddenCirclet = false;
|
||||
@@ -1102,6 +1106,8 @@ namespace CalamityMod.CalPlayer
|
||||
public FluidField ProfanedMoonlightAuroraDrawer;
|
||||
|
||||
public Vector2 FireDrawerPosition;
|
||||
|
||||
public int monolithAccursedShader = 0;
|
||||
#endregion Draw Effects
|
||||
|
||||
#region Draedon Summoning
|
||||
@@ -1735,6 +1741,9 @@ namespace CalamityMod.CalPlayer
|
||||
silverMedkit = false;
|
||||
goldArmorGoldDrops = false;
|
||||
|
||||
miningSet = false;
|
||||
miningSetCooldown = 0;
|
||||
|
||||
eskimoSet = false; //vanilla armor
|
||||
meteorSet = false; //vanilla armor, for Space Gun nerf
|
||||
|
||||
@@ -2357,6 +2366,8 @@ namespace CalamityMod.CalPlayer
|
||||
silverMedkit = false;
|
||||
silverMedkitTimer = 0;
|
||||
goldArmorGoldDrops = false;
|
||||
miningSet = false;
|
||||
miningSetCooldown = 0;
|
||||
flamethrowerBoost = false;
|
||||
hoverboardBoost = false; //hoverboard + shroomite visage
|
||||
shadowSpeed = false;
|
||||
@@ -4373,12 +4384,6 @@ namespace CalamityMod.CalPlayer
|
||||
int defenseAdd = (int)(target.defense * 0.5);
|
||||
damage += defenseAdd;
|
||||
}
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && badgeOfBravery)
|
||||
{
|
||||
int penetratableDefense = (int)Math.Max(target.defense - Player.GetArmorPenetration<GenericDamageClass>(), 0);
|
||||
int penetratedDefense = Math.Min(penetratableDefense, 5);
|
||||
damage += (int)(0.5f * penetratedDefense);
|
||||
}
|
||||
#endregion
|
||||
|
||||
if ((target.damage > 0 || target.boss) && !target.SpawnedFromStatue && Player.whoAmI == Main.myPlayer)
|
||||
@@ -4498,23 +4503,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int penetrateAmt = 0;
|
||||
if (proj.Calamity().stealthStrike && proj.CountsAsClass<RogueDamageClass>())
|
||||
{
|
||||
// Nanotech is a total of 20 as it has all three bools
|
||||
if (nanotech)
|
||||
penetrateAmt += 10;
|
||||
if (filthyGlove || bloodyGlove)
|
||||
penetrateAmt += 10;
|
||||
}
|
||||
if (proj.CountsAsClass<MeleeDamageClass>() && badgeOfBravery)
|
||||
{
|
||||
penetrateAmt += 5;
|
||||
}
|
||||
int penetratableDefense = (int)Math.Max(target.defense - Player.GetArmorPenetration<GenericDamageClass>(), 0); //if find how much defense we can penetrate
|
||||
int penetratedDefense = Math.Min(penetratableDefense, penetrateAmt); //if we have more penetrate than enemy defense, use enemy defense
|
||||
damage += (int)(0.5f * penetratedDefense);
|
||||
#endregion
|
||||
|
||||
#region MultiplicativeReductions
|
||||
@@ -5400,7 +5388,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Shoot
|
||||
public override bool Shoot(Item item, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockBack)
|
||||
{
|
||||
@@ -8101,5 +8089,16 @@ namespace CalamityMod.CalPlayer
|
||||
CombatText.NewText(location, messageColor, Language.GetTextValue(text));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Kill
|
||||
public override void Kill(double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource)
|
||||
{
|
||||
if (Player.whoAmI == Main.myPlayer && Player.ActiveItem().type == ModContent.ItemType<TheAnomalysNanogun>())
|
||||
{
|
||||
if (Main.rand.NextBool(20))
|
||||
SoundEngine.PlaySound(IjiDeathSound, Player.Center);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,8 @@ using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.SummonItems;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.World;
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace CalamityMod.CalPlayer
|
||||
OldPositions[0] = Player.position;
|
||||
|
||||
// Hurt the nearest NPC to the mouse if using the burning mouse.
|
||||
if (blazingCursorDamage)
|
||||
if (blazingCursorDamage || blazingCursorVisuals)
|
||||
HandleBlazingMouseEffects();
|
||||
|
||||
// Revengeance effects
|
||||
@@ -505,6 +505,10 @@ namespace CalamityMod.CalPlayer
|
||||
// The sigil's brightness slowly fades away every frame if not incinerating anything.
|
||||
blazingMouseAuraFade = MathHelper.Clamp(blazingMouseAuraFade - 0.025f, 0.25f, 1f);
|
||||
|
||||
// Allows the blazing aura to display if the accessory is vanity, but it deals no damage
|
||||
if (!blazingCursorDamage)
|
||||
return;
|
||||
|
||||
// miscCounter is used to limit Calamity's hit rate.
|
||||
int framesPerHit = 60 / Calamity.HitsPerSecond;
|
||||
if (Player.miscCounter % framesPerHit != 1)
|
||||
@@ -516,7 +520,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC target = Main.npc[i];
|
||||
if (!target.active || !target.Hitbox.Intersects(sigilHitbox) || target.immortal || target.dontTakeDamage || target.townNPC)
|
||||
if (!target.active || !target.Hitbox.Intersects(sigilHitbox) || target.immortal || target.dontTakeDamage || target.townNPC || NPCID.Sets.ActsLikeTownNPC[target.type] || NPCID.Sets.CountsAsCritter[target.type])
|
||||
continue;
|
||||
|
||||
// Brighten the sigil because it is dealing damage. This can only happen once per hit event.
|
||||
@@ -1227,6 +1231,10 @@ namespace CalamityMod.CalPlayer
|
||||
adamantiteSetDefenseBoostInterpolant = 0f;
|
||||
if (ChlorophyteHealDelay > 0)
|
||||
ChlorophyteHealDelay--;
|
||||
if (monolithAccursedShader > 0)
|
||||
monolithAccursedShader--;
|
||||
if (miningSetCooldown > 0)
|
||||
miningSetCooldown--;
|
||||
|
||||
// God Slayer Armor dash debuff immunity
|
||||
if (DashID == GodSlayerDash.ID && Player.dashDelay < 0)
|
||||
@@ -3976,8 +3984,6 @@ namespace CalamityMod.CalPlayer
|
||||
CalamityUtils.ConsumeItemViaQuickBuff(Player, item, HadalStew.BuffType, HadalStew.BuffDuration, true);
|
||||
if (item.type == ModContent.ItemType<Margarita>())
|
||||
CalamityUtils.ConsumeItemViaQuickBuff(Player, item, Margarita.BuffType, Margarita.BuffDuration, false);
|
||||
if (item.type == ModContent.ItemType<Bloodfin>())
|
||||
CalamityUtils.ConsumeItemViaQuickBuff(Player, item, Bloodfin.BuffType, Bloodfin.BuffDuration, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -281,6 +281,9 @@ namespace CalamityMod
|
||||
Filters.Scene["CalamityMod:ExoMechs"] = new Filter(new ExoMechsScreenShaderData("FilterMiniTower").UseColor(ExoMechsSky.DrawColor).UseOpacity(0.25f), EffectPriority.VeryHigh);
|
||||
SkyManager.Instance["CalamityMod:ExoMechs"] = new ExoMechsSky();
|
||||
|
||||
Filters.Scene["CalamityMod:MonolithAccursed"] = new Filter(new MonolithScreenShaderData("FilterMiniTower").UseColor(1.1f, 0.3f, 0.3f).UseOpacity(0.65f), EffectPriority.VeryHigh);
|
||||
SkyManager.Instance["CalamityMod:MonolithAccursed"] = new MonolithSky();
|
||||
|
||||
SkyManager.Instance["CalamityMod:Astral"] = new AstralSky();
|
||||
SkyManager.Instance["CalamityMod:Cryogen"] = new CryogenSky();
|
||||
SkyManager.Instance["CalamityMod:StormWeaverFlash"] = new StormWeaverFlashSky();
|
||||
|
||||
|
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 524 B |
@@ -546,7 +546,7 @@ namespace CalamityMod.ILEditing
|
||||
Vector2 desaturatedDrawPosition = drawPosition + Vector2.One;
|
||||
|
||||
// If the blazing mouse is actually going to do damage, draw an indicator aura.
|
||||
if (Main.LocalPlayer.Calamity().blazingCursorDamage && !Main.mapFullscreen)
|
||||
if (!Main.mapFullscreen)
|
||||
{
|
||||
int size = 450;
|
||||
FluidFieldManager.AdjustSizeRelativeToGraphicsQuality(ref size);
|
||||
@@ -1035,6 +1035,7 @@ namespace CalamityMod.ILEditing
|
||||
{
|
||||
mp.hookCache = self.grappling[0];
|
||||
self.grappling[0] = -1;
|
||||
self.grapCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1051,6 +1052,7 @@ namespace CalamityMod.ILEditing
|
||||
{
|
||||
mp.hookCache = self.grappling[0];
|
||||
self.grappling[0] = -1;
|
||||
self.grapCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1063,7 +1065,10 @@ namespace CalamityMod.ILEditing
|
||||
WulfrumPackPlayer mp = self.GetModPlayer<WulfrumPackPlayer>();
|
||||
|
||||
if (mp.hookCache > -1)
|
||||
{
|
||||
self.grappling[0] = mp.hookCache;
|
||||
self.grapCount = 1;
|
||||
}
|
||||
|
||||
mp.hookCache = -1;
|
||||
}
|
||||
|
||||
@@ -34,14 +34,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.GoldCrown).
|
||||
AddIngredient<UnholyCore>(5).
|
||||
AddIngredient<EssenceofChaos>(10).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.PlatinumCrown).
|
||||
AddRecipeGroup("AnyGoldCrown").
|
||||
AddIngredient<UnholyCore>(5).
|
||||
AddIngredient<EssenceofChaos>(10).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories
|
||||
DisplayName.SetDefault("Badge of Bravery");
|
||||
Tooltip.SetDefault("15% increased melee speed\n" +
|
||||
"Increases melee damage and melee crit by 5%\n" +
|
||||
"+5 armor penetration");
|
||||
"+5 melee armor penetration");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.badgeOfBravery = true;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.15f;
|
||||
player.GetArmorPenetration<MeleeDamageClass>() += 5;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Accessories
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<FungalClumpMinion>()] < 1)
|
||||
{
|
||||
var source = player.GetSource_Accessory(Item);
|
||||
int damage = (int)player.GetTotalDamage<SummonDamageClass>().ApplyTo(FungalClumpDamage);
|
||||
int damage = (int)player.GetBestClassDamage().ApplyTo(FungalClumpDamage);
|
||||
int p = Projectile.NewProjectile(source, player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<FungalClumpMinion>(), damage, 1f, player.whoAmI, 0f, 0f);
|
||||
if (Main.projectile.IndexInRange(p))
|
||||
Main.projectile[p].originalDamage = FungalClumpDamage;
|
||||
|
||||
@@ -48,13 +48,17 @@ namespace CalamityMod.Items.Accessories
|
||||
continue;
|
||||
|
||||
RoverDrivePlayer modPlayer = Main.player[i].GetModPlayer<RoverDrivePlayer>();
|
||||
if (!modPlayer.VisibleShield || modPlayer.ProtectionMatrixDurability <= 0)
|
||||
bool forcedVisibility = !modPlayer.ShieldVisibility.HasValue ? false : modPlayer.ShieldVisibility.Value;
|
||||
|
||||
//Skip if not forced, if it has a value (aka false since if it was true forced visibility would be true
|
||||
if (!forcedVisibility && (modPlayer.ShieldVisibility.HasValue || (modPlayer.ProtectionMatrixDurability <= 0)))
|
||||
continue;
|
||||
|
||||
float scale = 0.15f + 0.03f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + i * 0.2f));
|
||||
|
||||
if (playerFound == false)
|
||||
{
|
||||
float shieldStrentgh = forcedVisibility ? 1f : (float)Math.Pow(Main.LocalPlayer.GetModPlayer<RoverDrivePlayer>().ProtectionMatrixDurability / (float)ProtectionMatrixDurabilityMax, 0.5f);
|
||||
float noiseScale = MathHelper.Lerp(0.4f, 0.8f, (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.3f) * 0.5f + 0.5f);
|
||||
|
||||
Effect shieldEffect = Filters.Scene["RoverDriveShield"].GetShader().Shader;
|
||||
@@ -65,17 +69,58 @@ namespace CalamityMod.Items.Accessories
|
||||
//shieldEffect.Parameters["resolution"].SetValue(resolution);
|
||||
|
||||
float baseShieldOpacity = 0.9f + 0.1f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 2f);
|
||||
shieldEffect.Parameters["shieldOpacity"].SetValue(baseShieldOpacity * (0.5f + 0.5f * (float)Math.Pow(Main.LocalPlayer.GetModPlayer<RoverDrivePlayer>().ProtectionMatrixDurability / (float)ProtectionMatrixDurabilityMax, 0.5f)));
|
||||
shieldEffect.Parameters["shieldOpacity"].SetValue(baseShieldOpacity * (0.5f + 0.5f * shieldStrentgh));
|
||||
shieldEffect.Parameters["shieldEdgeBlendStrenght"].SetValue(4f);
|
||||
|
||||
Color blueTint = new Color(51, 102, 255);
|
||||
Color cyanTint = new Color(71, 202, 255);
|
||||
Color wulfGreen = new Color(194, 255, 67) * 0.8f;
|
||||
Color edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, blueTint, cyanTint, wulfGreen);
|
||||
shieldEffect.Parameters["shieldColor"].SetValue(blueTint.ToVector3());
|
||||
Color edgeColor;
|
||||
Color shieldColor;
|
||||
|
||||
if (Main.netMode != NetmodeID.SinglePlayer && Main.player[i].team != 0)
|
||||
{
|
||||
switch (Main.player[i].team)
|
||||
{
|
||||
case 1: //Red team
|
||||
shieldColor = new Color(178, 24, 31);
|
||||
edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, Color.Tomato, Color.Crimson, shieldColor);
|
||||
break;
|
||||
case 2: //Green team
|
||||
shieldColor = new Color(194, 255, 67) * 0.7f;
|
||||
edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, Color.Chartreuse, Color.YellowGreen, new Color(194, 255, 67));
|
||||
break;
|
||||
case 3: //Blue team
|
||||
shieldColor = new Color(64, 207, 200);
|
||||
edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, Color.MediumSpringGreen, Color.DeepSkyBlue, new Color(64, 207, 200));
|
||||
break;
|
||||
case 4: //Yellow team
|
||||
shieldColor = new Color(176, 156, 45);
|
||||
edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, Color.Gold, Color.Coral, Color.LightGoldenrodYellow);
|
||||
break;
|
||||
case 5: //Purple team
|
||||
default:
|
||||
shieldColor = new Color(173, 111, 221);
|
||||
edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, Color.DeepPink, Color.MediumOrchid, Color.MediumPurple);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Color blueTint = new Color(51, 102, 255);
|
||||
Color cyanTint = new Color(71, 202, 255);
|
||||
Color wulfGreen = new Color(194, 255, 67) * 0.8f;
|
||||
edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, blueTint, cyanTint, wulfGreen);
|
||||
shieldColor = blueTint;
|
||||
}
|
||||
|
||||
|
||||
|
||||
shieldEffect.Parameters["shieldColor"].SetValue(shieldColor.ToVector3());
|
||||
shieldEffect.Parameters["shieldEdgeColor"].SetValue(edgeColor.ToVector3());
|
||||
|
||||
|
||||
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix);
|
||||
|
||||
@@ -137,12 +182,17 @@ namespace CalamityMod.Items.Accessories
|
||||
//modPlayer.roverDrive = true;
|
||||
|
||||
modPlayer.RoverDriveOn = true;
|
||||
modPlayer.VisibleShield = !hideVisual;
|
||||
modPlayer.ShieldVisibility = hideVisual ? false : null;
|
||||
|
||||
if (modPlayer.ProtectionMatrixDurability > 0)
|
||||
player.statDefense += ProtectionMatrixDefenseBoost;
|
||||
}
|
||||
|
||||
public override void UpdateVanity(Player player)
|
||||
{
|
||||
player.GetModPlayer<RoverDrivePlayer>().ShieldVisibility = true;
|
||||
}
|
||||
|
||||
//Scrappable for 3-6 wulfrum scrap or a 20% chance to get an energy core
|
||||
public override void ExtractinatorUse(ref int resultType, ref int resultStack)
|
||||
{
|
||||
@@ -160,7 +210,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public class RoverDrivePlayer : ModPlayer
|
||||
{
|
||||
public bool RoverDriveOn;
|
||||
public bool VisibleShield;
|
||||
public bool? ShieldVisibility; //Null for default, false for never, true for always
|
||||
public int ProtectionMatrixDurability = 0;
|
||||
public int ProtectionMatrixCharge = 0;
|
||||
|
||||
@@ -174,7 +224,7 @@ namespace CalamityMod.Items.Accessories
|
||||
ProtectionMatrixDurability = 0;
|
||||
|
||||
RoverDriveOn = false;
|
||||
VisibleShield = false;
|
||||
ShieldVisibility = false;
|
||||
}
|
||||
|
||||
public override void PostHurt(bool pvp, bool quiet, double damage, int hitDirection, bool crit, int cooldownCounter)
|
||||
|
||||
@@ -201,7 +201,10 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void PostUpdateRunSpeeds()
|
||||
{
|
||||
if (hookCache != -1)
|
||||
{
|
||||
Player.grappling[0] = hookCache;
|
||||
Player.grapCount = 1;
|
||||
}
|
||||
|
||||
hookCache = -1;
|
||||
}
|
||||
@@ -211,7 +214,11 @@ namespace CalamityMod.Items.Accessories
|
||||
//If the hook cache was set from -1 in the part before the player stepped up,reset it.
|
||||
//Should this be detoured before the PlayerLoaders PreUpdateMovement call? In case another mod uses hooks in this call and their modplayer gets called before this one?
|
||||
if (hookCache > -1)
|
||||
{
|
||||
Player.grappling[0] = hookCache;
|
||||
Player.grapCount = 1;
|
||||
}
|
||||
|
||||
hookCache = -1;
|
||||
|
||||
if (Grappled)
|
||||
@@ -504,6 +511,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
hookCache = Player.grappling[0];
|
||||
Player.grappling[0] = -1;
|
||||
Player.grapCount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Reaver Headgear");
|
||||
Tooltip.SetDefault("10% increased pick speed and 20% increased block/wall placement speed\n" +
|
||||
Tooltip.SetDefault("40% increased pick speed and block/wall placement speed\n" +
|
||||
"Temporary immunity to lava and can move freely through liquids");
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Causes nearby treasure to sparkle\n" +
|
||||
player.setBonus = "Highlights all treasure nearby\n" +
|
||||
"Increased item grab range and block placement range\n" +
|
||||
"Mining tiles restores breath while underwater\n" +
|
||||
"Summons a reaver orb to light up the area around you\n" +
|
||||
@@ -53,7 +53,8 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.reaverExplore = true;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.blockRange += 2;
|
||||
player.findTreasure = true;
|
||||
player.blockRange += 4;
|
||||
player.aggro -= 200;
|
||||
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
@@ -68,47 +69,14 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<ReaverOrb>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
if (player.miscCounter % 10 == 0)
|
||||
{
|
||||
var searchDist = 17;
|
||||
var x = (int)player.Center.X / 16;
|
||||
var y = (int)player.Center.Y / 16;
|
||||
for (var i = x - searchDist; i <= x + searchDist; ++i)
|
||||
{
|
||||
for (var j = y - searchDist; j <= y + searchDist; ++j)
|
||||
{
|
||||
if (Main.rand.NextBool(4) && new Vector2(x - i, y - j).Length() < searchDist && i > 0 && i < Main.maxTilesX - 1 && j > 0 && j < Main.maxTilesY - 1 && Main.tile[i, j] != null && Main.tile[i, j].HasTile)
|
||||
{
|
||||
var shouldSparkle = false;
|
||||
//Check for the money piles
|
||||
if (Main.tile[i, j].TileType == TileID.SmallPiles && Main.tile[i, j].TileFrameY == 18)
|
||||
{
|
||||
if (Main.tile[i, j].TileFrameX >= 576 && Main.tile[i, j].TileFrameX <= 882)
|
||||
shouldSparkle = true;
|
||||
}
|
||||
else if (Main.tile[i, j].TileType == TileID.LargePiles && Main.tile[i, j].TileFrameX >= 864 && Main.tile[i, j].TileFrameX <= 1170)
|
||||
shouldSparkle = true;
|
||||
|
||||
if (shouldSparkle || Main.tileSpelunker[Main.tile[i, j].TileType] || Main.tileAlch[Main.tile[i, j].TileType] && Main.tile[i, j].TileType != TileID.ImmatureHerbs)
|
||||
{
|
||||
var sparkle = Dust.NewDust(new Vector2(i * 16, j * 16), 16, 16, 204, 0f, 0f, 150, new Color(), 0.3f);
|
||||
var dust = Main.dust[sparkle];
|
||||
dust.fadeIn = 0.75f;
|
||||
dust.velocity = dust.velocity * 0.1f;
|
||||
dust.noLight = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.ignoreWater = true;
|
||||
player.pickSpeed -= 0.1f;
|
||||
player.tileSpeed += 0.2f;
|
||||
player.wallSpeed += 0.2f;
|
||||
player.pickSpeed -= 0.4f;
|
||||
player.tileSpeed += 0.4f;
|
||||
player.wallSpeed += 0.4f;
|
||||
player.lavaMax += 420;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Experimental Wulfrum Fusion Array");
|
||||
Tooltip.SetDefault("Fires quick bursts of medium-range pellets\n" +
|
||||
Tooltip.SetDefault("Fires quick bursts of medium-range pellets\n" + "Ignores 10 points of enemy Defense\n" +
|
||||
"[c/878787:\"Who needs whips when you can simply become the summon yourself?\"]");
|
||||
//Imaging hiding actually important/interesting/funny lore in there... :drool: that would be so dark souls
|
||||
}
|
||||
|
||||
@@ -180,6 +180,7 @@ namespace CalamityMod.Items
|
||||
case ItemID.MechanicalWheelPiece:
|
||||
case ItemID.MinecartMech:
|
||||
case ItemID.SporeSac:
|
||||
case ItemID.WitchBroom:
|
||||
case ItemID.EmpressFlightBooster:
|
||||
case ItemID.ShinyStone:
|
||||
case ItemID.ShrimpyTruffle:
|
||||
@@ -1566,12 +1567,6 @@ namespace CalamityMod.Items
|
||||
|
||||
player.endurance += 0.01f;
|
||||
}
|
||||
|
||||
// TODO -- make all prefixes relevant. Details in Ozz's todo.
|
||||
/*
|
||||
if (item.prefix == PrefixID.Precise || item.prefix == PrefixID.Lucky)
|
||||
player.armorPenetration += 1;
|
||||
*/
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -1743,23 +1738,8 @@ namespace CalamityMod.Items
|
||||
#region On Create
|
||||
public override void OnCreate(Item item, ItemCreationContext context)
|
||||
{
|
||||
// Crafting a rogue weapon has a 75% chance for a random modifier
|
||||
// Negative modifiers have a 66.66% chance of being voided
|
||||
// Note, the modifier doesn't show up in the craft text (the one that indicates you got a new item)
|
||||
if (context is RecipeCreationContext)
|
||||
{
|
||||
if (item.CanGetRoguePrefix())
|
||||
{
|
||||
if (Main.rand.Next(4) < 3)
|
||||
{
|
||||
int prefix = CalamityUtils.RandomRoguePrefix();
|
||||
if (!CalamityUtils.NegativeRoguePrefix(prefix) || Main.rand.NextBool(3))
|
||||
{
|
||||
item.Prefix(prefix);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// ChoosePrefix also happens on craft so go reset it here too
|
||||
storedPrefix = -1;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -1778,6 +1758,15 @@ namespace CalamityMod.Items
|
||||
// removed data saved on items; reforging is now a coalescing flowchart that has no RNG
|
||||
public override int ChoosePrefix(Item item, UnifiedRandom rand)
|
||||
{
|
||||
if (storedPrefix == -1 && item.CanGetRoguePrefix())
|
||||
{
|
||||
// Crafting (or first reforge of) a rogue weapon has a 75% chance for a random modifier, this check is done by vanilla
|
||||
// Negative modifiers have a 66.66% chance of being voided, Annoying modifier is intentionally ignored by vanilla
|
||||
int prefix = CalamityUtils.RandomRoguePrefix();
|
||||
bool keepPrefix = !CalamityUtils.NegativeRoguePrefix(prefix) || Main.rand.NextBool(3);
|
||||
return keepPrefix ? prefix : 0;
|
||||
}
|
||||
|
||||
if (!CalamityConfig.Instance.RemoveReforgeRNG || Main.gameMenu || storedPrefix == -1)
|
||||
return -1;
|
||||
|
||||
|
||||
@@ -485,7 +485,8 @@ namespace CalamityMod.Items
|
||||
// +1 to Abyss light level
|
||||
string abyssSmallLightLine = "\nProvides a small amount of light in the abyss";
|
||||
|
||||
if (item.type == ItemID.CrimsonHeart || item.type == ItemID.ShadowOrb || item.type == ItemID.MagicLantern || item.type == ItemID.JellyfishNecklace || item.type == ItemID.MiningHelmet)
|
||||
if (item.type == ItemID.CrimsonHeart || item.type == ItemID.ShadowOrb || item.type == ItemID.MagicLantern || item.type == ItemID.JellyfishNecklace ||
|
||||
item.type == ItemID.MiningHelmet || item.type == ItemID.UltrabrightHelmet)
|
||||
EditTooltipByNum(0, (line) => line.Text += abyssSmallLightLine);
|
||||
if (item.type == ItemID.JellyfishDivingGear)
|
||||
EditTooltipByNum(1, (line) => line.Text += abyssSmallLightLine);
|
||||
@@ -502,7 +503,7 @@ namespace CalamityMod.Items
|
||||
// +3 to Abyss light level
|
||||
string abyssLargeLightLine = "\nProvides a large amount of light in the abyss";
|
||||
|
||||
if (item.type == ItemID.WispinaBottle)
|
||||
if (item.type == ItemID.WispinaBottle || item.type == ItemID.PumpkingPetItem || item.type == ItemID.GolemPetItem || item.type == ItemID.FairyQueenPetItem)
|
||||
EditTooltipByNum(0, (line) => line.Text += abyssLargeLightLine);
|
||||
if (item.type == ItemID.SuspiciousLookingTentacle)
|
||||
EditTooltipByNum(1, (line) => line.Text += abyssLargeLightLine);
|
||||
@@ -840,7 +841,8 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.Picksaw)
|
||||
EditTooltipByNum(0, (line) => line.Text += "\nCan mine Scoria Ore located in the Abyss");
|
||||
|
||||
if (item.type == ItemID.SolarFlarePickaxe || item.type == ItemID.VortexPickaxe || item.type == ItemID.NebulaPickaxe || item.type == ItemID.StardustPickaxe)
|
||||
if (item.type == ItemID.SolarFlarePickaxe || item.type == ItemID.VortexPickaxe || item.type == ItemID.NebulaPickaxe || item.type == ItemID.StardustPickaxe
|
||||
|| item.type == ItemID.SolarFlareDrill || item.type == ItemID.VortexDrill || item.type == ItemID.NebulaDrill || item.type == ItemID.StardustDrill)
|
||||
EditTooltipByName("Knockback", (line) => line.Text += "\nCan mine Uelibloom Ore");
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ namespace CalamityMod.Items.Critters
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.value = Item.buyPrice(0, 0, 30, 0);
|
||||
//item.CloneDefaults(2004); //Lightning Bug item
|
||||
Item.width = 26;
|
||||
Item.height = 24;
|
||||
Item.bait = 20;
|
||||
Item.makeNPC = (short)ModContent.NPCType<BabyGhostBell>();
|
||||
Item.rare = ItemRarityID.Green;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
using CalamityMod.NPCs.DraedonLabThings;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Critters
|
||||
{
|
||||
public class RepairUnitItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Repair Unit");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.autoReuse = true;
|
||||
Item.useTurn = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.value = Item.buyPrice(0, 0, 30, 0);
|
||||
Item.width = 38;
|
||||
Item.height = 24;
|
||||
Item.makeNPC = (short)ModContent.NPCType<RepairUnitCritter>();
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 323 B |
@@ -24,7 +24,6 @@ namespace CalamityMod.Items.Critters
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.value = Item.buyPrice(0, 0, 30, 0);
|
||||
//item.CloneDefaults(2004); //Lightning Bug item
|
||||
Item.width = 26;
|
||||
Item.height = 24;
|
||||
Item.bait = 20;
|
||||
|
||||
@@ -27,8 +27,8 @@ namespace CalamityMod.Items.Materials
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.createTile = ModContent.TileType<AuricTeslaBar>();
|
||||
Item.width = 50;
|
||||
Item.height = 30;
|
||||
Item.width = 62;
|
||||
Item.height = 44;
|
||||
Item.maxStack = 999;
|
||||
Item.value = Item.sellPrice(gold: 60);
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
@@ -41,27 +41,27 @@ namespace CalamityMod.Items.Materials
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation += new Vector2(-10f * player.direction, 10f * player.gravDir).RotatedBy(player.itemRotation);
|
||||
player.itemLocation += new Vector2(-20f * player.direction, 15f * player.gravDir).RotatedBy(player.itemRotation);
|
||||
}
|
||||
|
||||
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/AuricBar_Animated").Value;
|
||||
spriteBatch.Draw(texture, position, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
|
||||
spriteBatch.Draw(texture, position, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 12), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/AuricBar_Animated").Value;
|
||||
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
|
||||
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 12), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/AuricBarGlow").Value;
|
||||
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
|
||||
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 12, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
|
||||
}
|
||||
|
||||
public override void Update(ref float gravity, ref float maxFallSpeed)
|
||||
|
||||
|
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 625 B |
|
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 4.6 KiB |
@@ -4,12 +4,13 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.Banners
|
||||
{
|
||||
public class WulfrumPylonBanner : ModItem
|
||||
[LegacyName("WulfrumPylonBanner")]
|
||||
public class WulfrumAmplifierBanner : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Wulfrum Pylon");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Wulfrum Amplifier");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 364 B |
|
Before Width: | Height: | Size: 397 B |
@@ -1,11 +1,10 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture
|
||||
namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
{
|
||||
[LegacyName("SCalAltarItem")]
|
||||
public class AltarOfTheAccursedItem : ModItem
|
||||
@@ -17,7 +16,8 @@ namespace CalamityMod.Items.Placeables.Furniture
|
||||
Tooltip.SetDefault("Offer Ashes of Calamity at this altar to summon the Witch\n" +
|
||||
"Doing so will create a square arena of blocks, with the altar at its center\n" +
|
||||
"During the battle, heart pickups only heal for half as much\n" +
|
||||
"The Witch enrages while you are outside of the arena");
|
||||
"The Witch enrages while you are outside of the arena\n" +
|
||||
"Used for special crafting");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -28,16 +28,26 @@ namespace CalamityMod.Items.Placeables.Furniture
|
||||
Item.useTime = 10;
|
||||
Item.autoReuse = true;
|
||||
Item.consumable = true;
|
||||
Item.width = 60;
|
||||
Item.height = 48;
|
||||
Item.maxStack = 999;
|
||||
Item.width = 38;
|
||||
Item.height = 32;
|
||||
Item.maxStack = 9999;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.CraftingObjects;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).AddIngredient(ModContent.ItemType<BrimstoneSlag>(), 30).AddIngredient(ModContent.ItemType<AuricBar>(), 5).AddIngredient(ModContent.ItemType<CoreofCalamity>(), 1).AddTile(ModContent.TileType<CosmicAnvil>()).Register();
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<BrimstoneSlag>(), 30).
|
||||
AddIngredient(ModContent.ItemType<AuricBar>(), 5).
|
||||
AddIngredient(ModContent.ItemType<CoreofCalamity>(), 1).
|
||||
AddTile(ModContent.TileType<CosmicAnvil>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 859 B |
@@ -0,0 +1,43 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class EyeOfTheAccursedBanner : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Eye of the Accursed Banner");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 36;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
Item.value = Item.buyPrice(0, 0, 10, 0);
|
||||
Item.createTile = ModContent.TileType<EyeOfTheAccursedBannerTile>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 3).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 577 B |
@@ -0,0 +1,59 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class LargeRitualCandle : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Large Ritual Candle");
|
||||
Tooltip.SetDefault("Right click to place in a different style");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 24;
|
||||
Item.height = 50;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<LargeRitualCandleTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == ItemAlternativeFunctionID.ActivatedAndUsed)
|
||||
{
|
||||
Item.placeStyle = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.placeStyle = 0;
|
||||
}
|
||||
return base.CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 6).
|
||||
AddIngredient(ModContent.ItemType<AshesofCalamity>()).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 841 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class MonolithOfTheAccursed : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Monolith of the Accursed");
|
||||
Tooltip.SetDefault("Let the sky burn a blazing red\n" +
|
||||
"The monolith has two different modes");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 24;
|
||||
Item.height = 28;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<MonolithOfTheAccursedTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 15).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 507 B |
@@ -0,0 +1,51 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class OccultBrickItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Occult Brick");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 16;
|
||||
Item.height = 16;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<OccultBrickTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(200).
|
||||
AddRecipeGroup("AnyStoneBlock", 200).
|
||||
AddIngredient(ModContent.ItemType<AshesofAnnihilation>()).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultPlatformItem>(), 2).
|
||||
Register();
|
||||
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickWallItem>(), 4).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 217 B |
@@ -0,0 +1,43 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class OccultLegionnaireBanner : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Occult Legionnaire Banner");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 36;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
Item.value = Item.buyPrice(0, 0, 10, 0);
|
||||
Item.createTile = ModContent.TileType<OccultLegionnaireBannerTile>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 3).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 559 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class OccultPlatformItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Occult Platform");
|
||||
SacrificeTotal = 200;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 18;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<OccultPlatformTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).AddIngredient(ModContent.ItemType<OccultBrickItem>()).Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 396 B |
@@ -0,0 +1,59 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class RitualCandle : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ritual Candle");
|
||||
Tooltip.SetDefault("Right click to place in a different style");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 28;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<RitualCandleTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == ItemAlternativeFunctionID.ActivatedAndUsed)
|
||||
{
|
||||
Item.placeStyle = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.placeStyle = 0;
|
||||
}
|
||||
return base.CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 5).
|
||||
AddIngredient(ModContent.ItemType<AshesofCalamity>()).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 594 B |
@@ -0,0 +1,39 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousBathtub : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Bathtub");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 38;
|
||||
Item.height = 22;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousBathtubTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 14).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 491 B |
@@ -0,0 +1,40 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousBed : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Bed");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 38;
|
||||
Item.height = 18;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousBedTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 15).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 483 B |
@@ -0,0 +1,40 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Bench");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 42;
|
||||
Item.height = 26;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousBenchTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 5).
|
||||
AddIngredient(ItemID.Silk, 2).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 654 B |
@@ -0,0 +1,40 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousBookcase : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Bookcase");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 36;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousBookcaseTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 20).
|
||||
AddIngredient(ItemID.Book, 10).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 477 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousCandelabra : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Candelabra");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 28;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousCandelabraTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 5).
|
||||
AddIngredient(ModContent.ItemType<AshesofCalamity>(), 3).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 716 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousCandle : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Candle");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 16;
|
||||
Item.height = 16;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousCandleTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 4).
|
||||
AddIngredient(ModContent.ItemType<AshesofCalamity>()).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 308 B |
@@ -0,0 +1,39 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousChair : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Chair");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 16;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousChairTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 4).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 363 B |
@@ -0,0 +1,42 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousChandelier : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Chandelier");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.height = 32;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousChandelierTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 4).
|
||||
AddIngredient(ModContent.ItemType<AshesofCalamity>(), 4).
|
||||
AddIngredient(ItemID.Chain).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 840 B |
@@ -0,0 +1,40 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousChest : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Chest");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 32;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousChestTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 8).
|
||||
AddRecipeGroup("IronBar", 2).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 646 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousClock : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Clock");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 20;
|
||||
Item.height = 34;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousClockTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddRecipeGroup("IronBar", 3).
|
||||
AddIngredient(ItemID.Glass, 6).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 10).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 534 B |
@@ -0,0 +1,39 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousDoor : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Door");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 32;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousDoorClosed>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 8).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 458 B |
@@ -0,0 +1,39 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousDresser : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Dresser");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 24;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousDresserTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 16).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 481 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousLamp : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Lamp");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 16;
|
||||
Item.height = 38;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousLampTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 3).
|
||||
AddIngredient(ModContent.ItemType<AshesofCalamity>()).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 568 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousLantern : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Lantern");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 16;
|
||||
Item.height = 30;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousLanternTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 6).
|
||||
AddIngredient(ModContent.ItemType<AshesofCalamity>()).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 493 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousOrgan : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Organ");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 24;
|
||||
Item.height = 34;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousOrganTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ItemID.Bone, 4).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 15).
|
||||
AddIngredient(ItemID.Book).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 593 B |
@@ -0,0 +1,43 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousSink : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Sink");
|
||||
SacrificeTotal = 1;
|
||||
Tooltip.SetDefault("Counts as a water, honey, and lava source");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 32;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousSinkTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 6).
|
||||
AddIngredient(ItemID.WaterBucket).
|
||||
AddIngredient(ItemID.HoneyBucket).
|
||||
AddIngredient(ItemID.LavaBucket).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 717 B |
@@ -0,0 +1,39 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousTable : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Table");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 38;
|
||||
Item.height = 26;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousTableTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>(), 8).
|
||||
AddTile(ModContent.TileType<SCalAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 622 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.FurnitureSacrilegious;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureSacrilegious
|
||||
{
|
||||
public class SacrilegiousWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sacrilegious Work Bench");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 16;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<SacrilegiousWorkBenchTile>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).AddIngredient(ModContent.ItemType<OccultBrickItem>(), 10).Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 403 B |
@@ -14,8 +14,8 @@ namespace CalamityMod.Items.Placeables.Walls
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
Item.height = 12;
|
||||
Item.width = 32;
|
||||
Item.height = 32;
|
||||
Item.maxStack = 999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 517 B |
@@ -0,0 +1,40 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureSacrilegious;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class OccultBrickWallItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Occult Brick Wall");
|
||||
SacrificeTotal = 400;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.maxStack = 999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 7;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createWall = ModContent.WallType<OccultBrickWall>();
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(4).
|
||||
AddIngredient(ModContent.ItemType<OccultBrickItem>()).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 368 B |
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
CreateRecipe().
|
||||
AddIngredient<AshesofAnnihilation>(5).
|
||||
AddIngredient<AshesofCalamity>(15).
|
||||
AddTile<CosmicAnvil>().
|
||||
AddTile<SCalAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Tools
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Marnite Deconstructor");
|
||||
Tooltip.SetDefault("Its engine generates hardlight rays capable of excavating walls from a long distance");
|
||||
Tooltip.SetDefault("Its engine generates hardlight rays capable of excavating walls from a long distance\n" + "Ignores 10 points of enemy Defense");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Tools
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Marnite Obliterator");
|
||||
Tooltip.SetDefault("It uses its diamond focus to project a long-range digging beam of light");
|
||||
Tooltip.SetDefault("Uses a diamond focus to project a long-range digging beam of light\n" + "Ignores 5 points of enemy Defense");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -68,14 +68,14 @@ namespace CalamityMod.Items.TreasureBags
|
||||
ModContent.ItemType<Barinautical>(),
|
||||
ModContent.ItemType<Downpour>(),
|
||||
ModContent.ItemType<DeepseaStaff>(),
|
||||
ModContent.ItemType<ScourgeoftheSeas>(),
|
||||
ModContent.ItemType<CorrosiveSpine>()
|
||||
ModContent.ItemType<ScourgeoftheSeas>()
|
||||
}));
|
||||
itemLoot.Add(ModContent.ItemType<SeasSearing>(), 10);
|
||||
|
||||
// Equipment
|
||||
itemLoot.Add(ModContent.ItemType<AquaticEmblem>());
|
||||
itemLoot.Add(ModContent.ItemType<DeepDiver>(), 10);
|
||||
itemLoot.Add(ModContent.ItemType<CorrosiveSpine>(), DropHelper.BagWeaponDropRateFraction);
|
||||
itemLoot.AddRevBagAccessories();
|
||||
|
||||
// Vanity
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
itemLoot.Add(ModContent.ItemType<TheReaper>(), 10);
|
||||
|
||||
// Equipment
|
||||
itemLoot.Add(ModContent.ItemType<OldDukeScales>());
|
||||
itemLoot.Add(ModContent.ItemType<OldDukeScales>(), DropHelper.BagWeaponDropRateFraction);
|
||||
itemLoot.Add(ModContent.ItemType<MutatedTruffle>());
|
||||
itemLoot.AddRevBagAccessories();
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.VanillaArmorChanges
|
||||
{
|
||||
public class MiningArmorSetChange : VanillaArmorChange
|
||||
{
|
||||
public override int? HeadPieceID => ItemID.MiningHelmet;
|
||||
public override int[] AlternativeHeadPieceIDs => new int[] { ItemID.UltrabrightHelmet };
|
||||
|
||||
public override int? BodyPieceID => ItemID.MiningShirt;
|
||||
|
||||
public override int? LegPieceID => ItemID.MiningPants;
|
||||
|
||||
public override string ArmorSetName => "Mining";
|
||||
|
||||
public const float MiningSpeed = 0.4f;
|
||||
public const int BonusOreChance = 4;
|
||||
public const int CooldownMin = 180;
|
||||
public const int CooldownMax = 360;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText = setBonusText.Replace("30%", "40%");
|
||||
setBonusText += "\nMining ore will sometimes have additional yield";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
// Remove the vanilla +30% pick speed and add (subtract?) the new pick speed value at the same time
|
||||
player.pickSpeed -= MiningSpeed + 0.3f;
|
||||
player.Calamity().miningSet = true;
|
||||
}
|
||||
}
|
||||
}
|
||||