Added Brimstone Lava Fountain
also made abyss/astral fountain sales phm also also water fountains apparently have blue rarity ok changing that??
This commit is contained in:
1 parent
0e203e2b8a
commit
de38fc717a
16 files changed
+119
-9
No files matched your search
@@ -1175,6 +1175,10 @@ namespace CalamityMod.CalPlayer
|
||||
public Vector2 FireDrawerPosition;
|
||||
|
||||
public int monolithAccursedShader = 0;
|
||||
|
||||
// This may seem like a scuffed setup, but a simple bool will have ordering issues when it comes to drawing.
|
||||
// Until ModSceneMetrics gets implemented, this works for now.
|
||||
public int BrimstoneLavaFountainCounter = 0;
|
||||
#endregion Draw Effects
|
||||
|
||||
#region Draedon Summoning
|
||||
|
||||
@@ -1520,6 +1520,8 @@ namespace CalamityMod.CalPlayer
|
||||
ChlorophyteHealDelay--;
|
||||
if (monolithAccursedShader > 0)
|
||||
monolithAccursedShader--;
|
||||
if (BrimstoneLavaFountainCounter > 0)
|
||||
BrimstoneLavaFountainCounter--;
|
||||
if (miningSetCooldown > 0)
|
||||
miningSetCooldown--;
|
||||
if (RustyMedallionCooldown > 0)
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.White;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.createTile = ModContent.TileType<AbyssFountainTile>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.White;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.createTile = ModContent.TileType<AstralFountainTile>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
using CalamityMod.Tiles.Furniture.Fountains;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture.Fountains
|
||||
{
|
||||
public class BrimstoneLavaFountainItem : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 42;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.createTile = ModContent.TileType<BrimstoneLavaFountainTile>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 744 B |
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.White;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.createTile = ModContent.TileType<SulphurousFountainTile>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.White;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.createTile = ModContent.TileType<SunkenSeaFountainTile>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -641,6 +641,11 @@ AstralFountainItem: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
BrimstoneLavaFountainItem: {
|
||||
DisplayName: Brimstone Lava Fountain
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
SulphurousFountainItem: {
|
||||
DisplayName: Sulphuric Water Fountain
|
||||
Tooltip: ""
|
||||
|
||||
@@ -8,6 +8,7 @@ Stalactite: Stalactite
|
||||
PirateCrate: Abandoned Crate
|
||||
// Basic Calamity Furniture
|
||||
Basin: Basin
|
||||
LavaFountain: Lava Fountain
|
||||
PipeOrgan: Pipe Organ
|
||||
Sconce: Sconce
|
||||
// Draedon Lab Furniture
|
||||
|
||||
@@ -1194,8 +1194,9 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
shop.Add(ItemType<SunkenSeaFountain>())
|
||||
.Add(ItemType<SulphurousFountainItem>())
|
||||
.Add(ItemType<AbyssFountainItem>(), Condition.Hardmode)
|
||||
.Add(ItemType<AstralFountainItem>(), Condition.Hardmode)
|
||||
.Add(ItemType<AbyssFountainItem>())
|
||||
.Add(ItemType<AstralFountainItem>())
|
||||
.Add(ItemType<BrimstoneLavaFountainItem>())
|
||||
.AddWithCustomValue(ItemID.ButterflyDust, Item.buyPrice(gold: 10), Condition.DownedGolem)
|
||||
.AddWithCustomValue(ItemID.FriedEgg, Item.buyPrice(gold: 2, silver: 50), Condition.HappyEnough);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
using CalamityMod.Items.Placeables.Furniture.Fountains;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent.ObjectInteractions;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.Furniture.Fountains
|
||||
{
|
||||
public class BrimstoneLavaFountainTile : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults() => this.SetUpFountain(ModContent.ItemType<BrimstoneLavaFountainItem>(), new Color(251, 136, 130), true);
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (player is null || Main.dedServ)
|
||||
return;
|
||||
|
||||
if (Main.tile[i, j].TileFrameX >= 36)
|
||||
player.Calamity().BrimstoneLavaFountainCounter = 5;
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Stone, 0f, 0f, 1, new Color(119, 102, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Lava, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void AnimateTile(ref int frame, ref int frameCounter)
|
||||
{
|
||||
frameCounter++;
|
||||
if (frameCounter >= 6)
|
||||
{
|
||||
frame = (frame + 1) % 6;
|
||||
frameCounter = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public override void HitWire(int i, int j)
|
||||
{
|
||||
CalamityUtils.LightHitWire(Type, i, j, 2, 4);
|
||||
}
|
||||
|
||||
public override bool RightClick(int i, int j)
|
||||
{
|
||||
CalamityUtils.LightHitWire(Type, i, j, 2, 4);
|
||||
SoundEngine.PlaySound(SoundID.Mech, new Vector2(i * 16, j * 16));
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
player.noThrow = 2;
|
||||
player.cursorItemIconEnabled = true;
|
||||
player.cursorItemIconID = ModContent.ItemType<BrimstoneLavaFountainItem>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
@@ -1179,7 +1179,8 @@ namespace CalamityMod
|
||||
/// <param name="mt">The ModTile which is being initialized.</param>
|
||||
/// <param name="itemDropID">The ID of the item this tile drops when broken.</param>
|
||||
/// <param name="mapColor">The map color of the tile.</param>
|
||||
internal static void SetUpFountain(this ModTile mt, int itemDropID, Color mapColor)
|
||||
/// <param name="lava">Whether or not the type of fountain is lava.</param>
|
||||
internal static void SetUpFountain(this ModTile mt, int itemDropID, Color mapColor, bool lava = false)
|
||||
{
|
||||
mt.RegisterItemDrop(itemDropID);
|
||||
|
||||
@@ -1203,7 +1204,7 @@ namespace CalamityMod
|
||||
TileObjectData.newTile.StyleLineSkip = 2;
|
||||
TileObjectData.addTile(mt.Type);
|
||||
|
||||
mt.AddMapEntry(mapColor, Language.GetText("MapObject.WaterFountain"));
|
||||
mt.AddMapEntry(mapColor, lava ? CalamityUtils.GetText("Tiles.LavaFountain") : Language.GetText("MapObject.WaterFountain"));
|
||||
mt.AnimationFrameHeight = 72;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Waters
|
||||
|
||||
public override string SlopeTexturePath => LavaTexturePath + "_Slope";
|
||||
|
||||
public override bool ChooseLavaStyle() => Main.LocalPlayer.Calamity().ZoneCalamity;
|
||||
public override bool ChooseLavaStyle() => Main.LocalPlayer.Calamity().ZoneCalamity || Main.LocalPlayer.Calamity().BrimstoneLavaFountainCounter > 0;
|
||||
|
||||
public override int ChooseWaterfallStyle() => ModContent.Find<ModWaterfallStyle>("CalamityMod/CragsLavaflow").Slot;
|
||||
|
||||
|
||||
Reference in new issue
Block a user