Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
ec0da01424
346 files changed
+1871
-1537
No files matched your search
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
DisplayName.SetDefault("Blood Frenzy");
|
||||
Description.SetDefault("Contact damage is reduced and melee stats are greatly increased");
|
||||
Main.debuff[Type] = false;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
DisplayName.SetDefault("Elysian Guard");
|
||||
Description.SetDefault("Movement speed reduced, other stats buffed");
|
||||
Main.debuff[Type] = false;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
DisplayName.SetDefault("Tarragon Cloak");
|
||||
Description.SetDefault("Contact damage is reduced");
|
||||
Main.debuff[Type] = false;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
DisplayName.SetDefault("Tarragon Immunity");
|
||||
Description.SetDefault("You are immune");
|
||||
Main.debuff[Type] = false;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
|
||||
+169
-3
@@ -167,6 +167,7 @@ namespace CalamityMod.CalPlayer
|
||||
public float throwingDamage = 1f;
|
||||
public float throwingVelocity = 1f;
|
||||
public int throwingCrit = 4;
|
||||
public bool throwingAmmoCost75 = false;
|
||||
public bool throwingAmmoCost66 = false;
|
||||
public bool throwingAmmoCost50 = false;
|
||||
|
||||
@@ -375,6 +376,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool ursaSergeant = false;
|
||||
public bool thiefsDime = false;
|
||||
public bool dynamoStemCells = false;
|
||||
public bool etherealExtorter = false;
|
||||
//public bool dukeScales = false;
|
||||
public bool sandWaifu = false;
|
||||
public bool sandBoobWaifu = false;
|
||||
@@ -870,6 +872,7 @@ namespace CalamityMod.CalPlayer
|
||||
throwingDamage = 1f;
|
||||
throwingVelocity = 1f;
|
||||
throwingCrit = 4;
|
||||
throwingAmmoCost75 = false;
|
||||
throwingAmmoCost66 = false;
|
||||
throwingAmmoCost50 = false;
|
||||
|
||||
@@ -1077,6 +1080,7 @@ namespace CalamityMod.CalPlayer
|
||||
ursaSergeant = false;
|
||||
thiefsDime = false;
|
||||
dynamoStemCells = false;
|
||||
etherealExtorter = false;
|
||||
//dukeScales = false;
|
||||
|
||||
daedalusReflect = false;
|
||||
@@ -1407,6 +1411,7 @@ namespace CalamityMod.CalPlayer
|
||||
throwingDamage = 1f;
|
||||
throwingVelocity = 1f;
|
||||
throwingCrit = 4;
|
||||
throwingAmmoCost75 = false;
|
||||
throwingAmmoCost66 = false;
|
||||
throwingAmmoCost50 = false;
|
||||
#endregion
|
||||
@@ -3247,6 +3252,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
player.maxFallSpeed *= 1.1f;
|
||||
}
|
||||
if (etherealExtorter && player.ZoneSkyHeight)
|
||||
{
|
||||
player.maxFallSpeed *= 1.25f;
|
||||
}
|
||||
}
|
||||
if (normalityRelocator)
|
||||
{
|
||||
@@ -4388,6 +4397,84 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
player.Calamity().throwingCrit += 10;
|
||||
}
|
||||
if (etherealExtorter)
|
||||
{
|
||||
bool ZoneForest = !ZoneAbyss && !ZoneSulphur && !ZoneAstral && !ZoneCalamity && !ZoneSunkenSea && !player.ZoneSnow && !player.ZoneCorrupt && !player.ZoneCrimson && !player.ZoneHoly && !player.ZoneDesert && !player.ZoneUndergroundDesert && !player.ZoneGlowshroom && !player.ZoneDungeon && !player.ZoneBeach && !player.ZoneMeteor;
|
||||
if (player.ZoneUnderworldHeight && !ZoneCalamity && CalamityMod.fireWeaponList.Contains(player.inventory[player.selectedItem].type))
|
||||
{
|
||||
player.endurance += 0.03f;
|
||||
}
|
||||
if ((player.ZoneDesert || player.ZoneUndergroundDesert) && CalamityMod.daggerList.Contains(player.inventory[player.selectedItem].type))
|
||||
{
|
||||
player.scope = true;
|
||||
}
|
||||
if (ZoneSunkenSea)
|
||||
{
|
||||
player.gills = true;
|
||||
player.ignoreWater = true;
|
||||
}
|
||||
if (player.ZoneSnow && CalamityMod.iceWeaponList.Contains(player.inventory[player.selectedItem].type))
|
||||
{
|
||||
player.statDefense += 5;
|
||||
}
|
||||
if (ZoneAstral)
|
||||
{
|
||||
if (player.wingTimeMax > 0)
|
||||
player.wingTimeMax = (int)((double)player.wingTimeMax * 1.05);
|
||||
}
|
||||
if (player.ZoneJungle && CalamityMod.natureWeaponList.Contains(player.inventory[player.selectedItem].type))
|
||||
{
|
||||
player.AddBuff(165, 5, true); //Dryad's Blessing
|
||||
}
|
||||
if (ZoneAbyss)
|
||||
{
|
||||
player.blind = true;
|
||||
player.headcovered = true;
|
||||
player.blackout = true;
|
||||
if (player.FindBuffIndex(BuffID.Shine) > -1)
|
||||
{ player.ClearBuff(BuffID.Shine); }
|
||||
if (player.FindBuffIndex(BuffID.NightOwl) > -1)
|
||||
{ player.ClearBuff(BuffID.NightOwl); }
|
||||
player.nightVision = false;
|
||||
shine = false;
|
||||
player.allDamage += 0.2f;
|
||||
AllCritBoost(5);
|
||||
player.statDefense += 8;
|
||||
player.endurance += 0.05f;
|
||||
}
|
||||
if (player.ZoneRockLayerHeight && ZoneForest && CalamityMod.flaskBombList.Contains(player.inventory[player.selectedItem].type))
|
||||
{
|
||||
player.blackBelt = true;
|
||||
}
|
||||
if (player.ZoneHoly)
|
||||
{
|
||||
player.maxMinions += 1;
|
||||
player.manaCost *= 0.9f;
|
||||
player.ammoCost75 = true; //25% chance to not use ranged ammo
|
||||
throwingAmmoCost75 = true; //25% chance to not consume rogue consumables
|
||||
}
|
||||
if (player.ZoneBeach)
|
||||
{
|
||||
player.moveSpeed += 0.05f;
|
||||
}
|
||||
if (player.ZoneGlowshroom)
|
||||
{
|
||||
player.statDefense += 3;
|
||||
}
|
||||
if (player.ZoneMeteor)
|
||||
{
|
||||
gravityNormalizer = true;
|
||||
player.slowFall = true;
|
||||
}
|
||||
if (Main.moonPhase == 0) //full moon
|
||||
{
|
||||
player.fishingSkill += 30;
|
||||
}
|
||||
if (Main.moonPhase == 6) //first quarter
|
||||
{
|
||||
player.discount = true;
|
||||
}
|
||||
}
|
||||
if (harpyRing)
|
||||
{
|
||||
if (player.wingTimeMax > 0)
|
||||
@@ -4992,7 +5079,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.npcTypeNoAggro[ModContent.NPCType<PerennialSlime>()] = true;
|
||||
player.npcTypeNoAggro[ModContent.NPCType<PlaguedJungleSlime>()] = true;
|
||||
player.npcTypeNoAggro[ModContent.NPCType<AstralSlime>()] = true;
|
||||
// TODO -- When Wulfrum Slimes start being definitely robots, remove this immunity.
|
||||
// LATER -- When Wulfrum Slimes start being definitely robots, remove this immunity.
|
||||
player.npcTypeNoAggro[ModContent.NPCType<WulfrumSlime>()] = true;
|
||||
}
|
||||
|
||||
@@ -5250,6 +5337,7 @@ namespace CalamityMod.CalPlayer
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(eTracers ? 0.05f : 0f) +
|
||||
(blueCandle ? 0.05f : 0f) +
|
||||
(etherealExtorter && player.ZoneBeach ? 0.05f : 0f) +
|
||||
((deepDiver && Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) ? 0.15f : 0f) +
|
||||
(rogueStealthMax > 0f ? (rogueStealth >= rogueStealthMax ? rogueStealth * 0.05f : rogueStealth * 0.025f) : 0f);
|
||||
|
||||
@@ -5263,6 +5351,7 @@ namespace CalamityMod.CalPlayer
|
||||
(cTracers ? 0.1f : 0f) +
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(eTracers ? 0.05f : 0f) +
|
||||
(etherealExtorter && player.ZoneBeach ? 0.05f : 0f) +
|
||||
((stressPills || laudanum || draedonsHeart) ? 0.05f : 0f) +
|
||||
((deepDiver && Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) ? 0.15f : 0f) +
|
||||
(rogueStealthMax > 0f ? (rogueStealth >= rogueStealthMax ? rogueStealth * 0.05f : rogueStealth * 0.025f) : 0f);
|
||||
@@ -5624,6 +5713,11 @@ namespace CalamityMod.CalPlayer
|
||||
item.Calamity().rogue && item.useTime > 3)
|
||||
return 1.1f;
|
||||
}
|
||||
if (etherealExtorter)
|
||||
{
|
||||
if (Main.moonPhase == 1 && item.Calamity().rogue && item.useTime > 3) //Waning gibbous
|
||||
return 1.1f;
|
||||
}
|
||||
return 1f;
|
||||
}
|
||||
#endregion
|
||||
@@ -5678,6 +5772,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
add += 0.1f;
|
||||
}
|
||||
if (etherealExtorter && player.ZoneDungeon && item.Calamity().rogue && !item.consumable)
|
||||
{
|
||||
add += 0.05f;
|
||||
}
|
||||
|
||||
if (theBee && player.statLife >= player.statLifeMax2)
|
||||
{
|
||||
@@ -5727,6 +5825,14 @@ namespace CalamityMod.CalPlayer
|
||||
if (moscowMule)
|
||||
{
|
||||
knockback *= 1.09f;
|
||||
}
|
||||
bool ZoneForest = !ZoneAbyss && !ZoneSulphur && !ZoneAstral && !ZoneCalamity && !ZoneSunkenSea && !player.ZoneSnow && !player.ZoneCorrupt && !player.ZoneCrimson && !player.ZoneHoly && !player.ZoneDesert && !player.ZoneUndergroundDesert && !player.ZoneGlowshroom && !player.ZoneDungeon && !player.ZoneBeach && !player.ZoneMeteor;
|
||||
if (etherealExtorter)
|
||||
{
|
||||
if (player.ZoneOverworldHeight && ZoneForest)
|
||||
{
|
||||
knockback *= 1.15f;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -6264,6 +6370,26 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffID.Midas, 120, false);
|
||||
}
|
||||
}
|
||||
if (etherealExtorter)
|
||||
{
|
||||
if (ZoneSunkenSea)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<TemporalSadness>(), 60, false);
|
||||
}
|
||||
if (ZoneSulphur)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 120, false);
|
||||
target.AddBuff(ModContent.BuffType<Irradiated>(), 300, false);
|
||||
}
|
||||
if (Main.moonPhase == 6) //first quarter
|
||||
{
|
||||
target.AddBuff(BuffID.Midas, 120, false);
|
||||
}
|
||||
if (ZoneCalamity && CalamityMod.fireWeaponList.Contains(player.inventory[player.selectedItem].type))
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<AbyssalFlames>(), 240, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -6920,7 +7046,33 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if ((filthyGlove || electricianGlove) && proj.Calamity().stealthStrike && proj.Calamity().rogue)
|
||||
{
|
||||
damageMult += 0.01;
|
||||
damageMult += 0.1;
|
||||
}
|
||||
if (etherealExtorter && proj.Calamity().rogue)
|
||||
{
|
||||
bool ZoneForest = !ZoneAbyss && !ZoneSulphur && !ZoneAstral && !ZoneCalamity && !ZoneSunkenSea && !player.ZoneSnow && !player.ZoneCorrupt && !player.ZoneCrimson && !player.ZoneHoly && !player.ZoneDesert && !player.ZoneUndergroundDesert && !player.ZoneGlowshroom && !player.ZoneDungeon && !player.ZoneBeach && !player.ZoneMeteor;
|
||||
if (Main.moonPhase == 7 && crit) //Waxing Gibbous
|
||||
{
|
||||
damageMult += 0.05;
|
||||
}
|
||||
if (Main.moonPhase == 5) //Waxing Cresent
|
||||
{
|
||||
if (proj.penetrate == -1)
|
||||
damageMult += 0.1;
|
||||
else if (proj.penetrate >= 5)
|
||||
damageMult += 0.08;
|
||||
else if (proj.penetrate == 4)
|
||||
damageMult += 0.06;
|
||||
else if (proj.penetrate == 3)
|
||||
damageMult += 0.03;
|
||||
else if (proj.penetrate == 2)
|
||||
damageMult += 0.02;
|
||||
}
|
||||
if (player.ZoneDirtLayerHeight && ZoneForest)
|
||||
{
|
||||
if (Main.rand.NextBool(20) && !crit) //5% chance to minicrit
|
||||
damageMult += 0.5;
|
||||
}
|
||||
}
|
||||
damage = (int)((double)damage * damageMult);
|
||||
|
||||
@@ -6964,6 +7116,15 @@ namespace CalamityMod.CalPlayer
|
||||
int penetratedDefense = Math.Min(penetratableDefense, 10);
|
||||
damage += (int)(0.5f * penetratedDefense);
|
||||
}
|
||||
if (proj.Calamity().rogue && etherealExtorter)
|
||||
{
|
||||
if (CalamityMod.boomerangProjList.Contains(proj.type) && player.ZoneCorrupt)
|
||||
{
|
||||
int penetratableDefense = Math.Max(target.defense - player.armorPenetration, 0);
|
||||
int penetratedDefense = Math.Min(penetratableDefense, 6);
|
||||
damage += (int)(0.5f * penetratedDefense);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region MultiplicativeReductions
|
||||
@@ -10805,7 +10966,7 @@ namespace CalamityMod.CalPlayer
|
||||
fullBright = true;
|
||||
}
|
||||
}
|
||||
if (mushy)
|
||||
if (mushy || (etherealExtorter && player.ZoneGlowshroom))
|
||||
{
|
||||
if (Main.rand.NextBool(6) && drawInfo.shadow == 0f)
|
||||
{
|
||||
@@ -11012,6 +11173,11 @@ namespace CalamityMod.CalPlayer
|
||||
stealthGenMoving += 0.2f;
|
||||
}
|
||||
|
||||
if (etherealExtorter && Main.moonPhase == 3) //Waning Crescent
|
||||
{
|
||||
stealthGenMoving += 0.1f;
|
||||
}
|
||||
|
||||
bool standstill = Math.Abs(player.velocity.X) < 0.1f && Math.Abs(player.velocity.Y) < 0.1f && !player.mount.Active;
|
||||
|
||||
// Stealth gen acceleration
|
||||
|
||||
@@ -585,6 +585,9 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
|
||||
if (modPlayer.etherealExtorter || player.ZoneGlowshroom)
|
||||
player.lifeRegen += 1;
|
||||
|
||||
if (!player.shinyStone)
|
||||
{
|
||||
int lifeRegenTimeMaxBoost = CalamityPlayer.areThereAnyDamnBosses ? 450 : 1800;
|
||||
|
||||
+135
-1
@@ -46,7 +46,10 @@ using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Skies;
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using CalamityMod.Tiles.Furniture;
|
||||
@@ -84,7 +87,7 @@ namespace CalamityMod
|
||||
{
|
||||
public class CalamityMod : Mod
|
||||
{
|
||||
// TODO -- I have been advised by Jopo that Mods should never contain static variables
|
||||
// CONSIDER -- I have been advised by Jopo that Mods should never contain static variables
|
||||
|
||||
// Hotkeys
|
||||
public static ModHotKey NormalityRelocatorHotKey;
|
||||
@@ -163,6 +166,11 @@ namespace CalamityMod
|
||||
public static List<int> daggerList;
|
||||
public static List<int> flaskBombList;
|
||||
public static List<int> spikyBallList;
|
||||
public static List<int> boomerangProjList;
|
||||
public static List<int> javelinProjList;
|
||||
public static List<int> daggerProjList;
|
||||
public static List<int> flaskBombProjList;
|
||||
public static List<int> spikyBallProjList;
|
||||
public static List<int> noGravityList;
|
||||
public static List<int> lavaFishList;
|
||||
public static List<int> highTestFishList;
|
||||
@@ -206,6 +214,8 @@ namespace CalamityMod
|
||||
|
||||
BossHealthBarManager.Load(this);
|
||||
|
||||
TileFraming.Load();
|
||||
|
||||
Config.Load();
|
||||
|
||||
SetupLists();
|
||||
@@ -336,6 +346,11 @@ namespace CalamityMod
|
||||
daggerList = null;
|
||||
flaskBombList = null;
|
||||
spikyBallList = null;
|
||||
boomerangProjList = null;
|
||||
javelinProjList = null;
|
||||
daggerProjList = null;
|
||||
flaskBombProjList = null;
|
||||
spikyBallProjList = null;
|
||||
noGravityList = null;
|
||||
lavaFishList = null;
|
||||
highTestFishList = null;
|
||||
@@ -352,6 +367,8 @@ namespace CalamityMod
|
||||
BossHealthBarManager.Unload();
|
||||
base.Unload();
|
||||
|
||||
TileFraming.Unload();
|
||||
|
||||
AstralArcanumUI.Unload();
|
||||
base.Unload();
|
||||
|
||||
@@ -836,6 +853,8 @@ namespace CalamityMod
|
||||
ModContent.ItemType<ProfanedTrident>(),
|
||||
ModContent.ItemType<TheBurningSky>(),
|
||||
ModContent.ItemType<TotalityBreakers>(),
|
||||
ModContent.ItemType<ProfanedPartisan>(),
|
||||
ModContent.ItemType<BlastBarrel>(),
|
||||
ModContent.ItemType<HeliumFlash>()
|
||||
};
|
||||
|
||||
@@ -998,6 +1017,7 @@ namespace CalamityMod
|
||||
ModContent.ItemType<GacruxianMollusk>(),
|
||||
ModContent.ItemType<PolarisParrotfish>(),
|
||||
ModContent.ItemType<SparklingEmpress>(),
|
||||
ModContent.ItemType<NastyCholla>(),
|
||||
ModContent.ItemType<YateveoBloom>()
|
||||
};
|
||||
|
||||
@@ -1747,11 +1767,44 @@ namespace CalamityMod
|
||||
ModContent.ItemType<Pwnagehammer>(),
|
||||
ModContent.ItemType<SandDollar>(),
|
||||
ModContent.ItemType<SeashellBoomerang>(),
|
||||
ModContent.ItemType<Shroomerang>(),
|
||||
ModContent.ItemType<StellarContemptRogue>(),
|
||||
ModContent.ItemType<TriactisTruePaladinianMageHammerofMight>(),
|
||||
ModContent.ItemType<Valediction>()
|
||||
};
|
||||
|
||||
boomerangProjList = new List<int>()
|
||||
{
|
||||
ModContent.ProjectileType<AccretionDiskProj>(),
|
||||
ModContent.ProjectileType<AccretionDisk2>(),
|
||||
ModContent.ProjectileType<BlazingStarProj>(),
|
||||
ModContent.ProjectileType<CelestusBoomerang>(),
|
||||
ModContent.ProjectileType<BrimbladeProj>(),
|
||||
ModContent.ProjectileType<Brimblade2>(),
|
||||
ModContent.ProjectileType<EnchantedAxeProj>(),
|
||||
ModContent.ProjectileType<EpidemicShredderProjectile>(),
|
||||
ModContent.ProjectileType<EquanimityProj>(),
|
||||
ModContent.ProjectileType<EradicatorProjectile>(),
|
||||
ModContent.ProjectileType<FlameScytheProjectile>(),
|
||||
ModContent.ProjectileType<GhoulishGougerBoomerang>(),
|
||||
ModContent.ProjectileType<GlaiveProj>(),
|
||||
ModContent.ProjectileType<KylieBoomerang>(),
|
||||
ModContent.ProjectileType<MangroveChakramProjectile>(),
|
||||
ModContent.ProjectileType<MoltenAmputatorProj>(),
|
||||
ModContent.ProjectileType<OPHammer>(),
|
||||
ModContent.ProjectileType<SandDollarProj>(),
|
||||
ModContent.ProjectileType<SeashellBoomerangProjectile>(),
|
||||
ModContent.ProjectileType<ShroomerangProj>(),
|
||||
ModContent.ProjectileType<TriactisOPHammer>(),
|
||||
ModContent.ProjectileType<ValedictionBoomerang>(),
|
||||
ModContent.ProjectileType<GalaxySmasherHammer>(),
|
||||
ModContent.ProjectileType<KelvinCatalystBoomerang>(),
|
||||
ModContent.ProjectileType<NanoblackMain>(),
|
||||
ModContent.ProjectileType<StellarContemptHammer>(),
|
||||
ModContent.ProjectileType<IcebreakerHammer>(),
|
||||
ModContent.ProjectileType<PwnagehammerProj>()
|
||||
};
|
||||
|
||||
javelinList = new List<int>()
|
||||
{
|
||||
ModContent.ItemType<CrystalPiercer>(),
|
||||
@@ -1772,6 +1825,26 @@ namespace CalamityMod
|
||||
ModContent.ItemType<ProfanedPartisan>()
|
||||
};
|
||||
|
||||
javelinProjList = new List<int>()
|
||||
{
|
||||
ModContent.ProjectileType<CrystalPiercerProjectile>(),
|
||||
ModContent.ProjectileType<DuneHopperProjectile>(),
|
||||
ModContent.ProjectileType<EclipsesFallMain>(),
|
||||
ModContent.ProjectileType<EclipsesStealth>(),
|
||||
ModContent.ProjectileType<IchorSpearProj>(),
|
||||
ModContent.ProjectileType<InfernalSpearProjectile>(),
|
||||
ModContent.ProjectileType<LuminousStrikerProj>(),
|
||||
ModContent.ProjectileType<PalladiumJavelinProjectile>(),
|
||||
ModContent.ProjectileType<PhantasmalRuinProj>(),
|
||||
ModContent.ProjectileType<ProfanedPartisanproj>(),
|
||||
ModContent.ProjectileType<ScarletDevilProjectile>(),
|
||||
ModContent.ProjectileType<ScourgeoftheDesertProj>(),
|
||||
ModContent.ProjectileType<ScourgeoftheSeasProjectile>(),
|
||||
ModContent.ProjectileType<SpearofDestinyProjectile>(),
|
||||
ModContent.ProjectileType<SpearofPaleolithProj>(),
|
||||
ModContent.ProjectileType<XerocPitchforkProjectile>()
|
||||
};
|
||||
|
||||
daggerList = new List<int>()
|
||||
{
|
||||
ModContent.ItemType<CobaltKunai>(),
|
||||
@@ -1803,6 +1876,44 @@ namespace CalamityMod
|
||||
ModContent.ItemType<RoyalKnives>()
|
||||
};
|
||||
|
||||
boomerangProjList = new List<int>()
|
||||
{
|
||||
ModContent.ProjectileType<CinquedeaProj>(),
|
||||
ModContent.ProjectileType<CobaltKunaiProjectile>(),
|
||||
ModContent.ProjectileType<CosmicKunaiProj>(),
|
||||
ModContent.ProjectileType<CrystallineProj>(),
|
||||
ModContent.ProjectileType<Crystalline2>(),
|
||||
ModContent.ProjectileType<CursedDaggerProj>(),
|
||||
ModContent.ProjectileType<EmpyreanKnife>(),
|
||||
ModContent.ProjectileType<FeatherKnifeProjectile>(),
|
||||
ModContent.ProjectileType<GelDartProjectile>(),
|
||||
ModContent.ProjectileType<GildedDaggerProj>(),
|
||||
ModContent.ProjectileType<GleamingDaggerProj>(),
|
||||
ModContent.ProjectileType<IllustriousKnife>(),
|
||||
ModContent.ProjectileType<LunarKunaiProj>(),
|
||||
ModContent.ProjectileType<MalachiteProj>(),
|
||||
ModContent.ProjectileType<MalachiteBolt>(),
|
||||
ModContent.ProjectileType<MonkeyDart>(),
|
||||
ModContent.ProjectileType<MycorootProj>(),
|
||||
ModContent.ProjectileType<MythrilKnifeProjectile>(),
|
||||
ModContent.ProjectileType<OrichalcumSpikedGemstoneProjectile>(),
|
||||
ModContent.ProjectileType<PrismallineProj>(),
|
||||
ModContent.ProjectileType<Prismalline2>(),
|
||||
ModContent.ProjectileType<Prismalline3>(),
|
||||
ModContent.ProjectileType<QuasarKnife>(),
|
||||
ModContent.ProjectileType<Quasar2>(),
|
||||
ModContent.ProjectileType<RadiantStarKnife>(),
|
||||
ModContent.ProjectileType<RadiantStar2>(),
|
||||
ModContent.ProjectileType<ShatteredSunKnife>(),
|
||||
ModContent.ProjectileType<ShatteredSun2>(),
|
||||
ModContent.ProjectileType<ShatteredSun3>(),
|
||||
ModContent.ProjectileType<StellarKnifeProj>(),
|
||||
ModContent.ProjectileType<StormfrontRazorProjectile>(),
|
||||
ModContent.ProjectileType<TarragonThrowingDartProjectile>(),
|
||||
ModContent.ProjectileType<TimeBoltKnife>(),
|
||||
ModContent.ProjectileType<WulfrumKnifeProj>()
|
||||
};
|
||||
|
||||
flaskBombList = new List<int>()
|
||||
{
|
||||
ModContent.ItemType<Plaguenade>(),
|
||||
@@ -1816,6 +1927,19 @@ namespace CalamityMod
|
||||
ModContent.ItemType<BlastBarrel>()
|
||||
};
|
||||
|
||||
flaskBombProjList = new List<int>()
|
||||
{
|
||||
ModContent.ProjectileType<BallisticPoisonBombProj>(),
|
||||
ModContent.ProjectileType<BlastBarrelProjectile>(),
|
||||
ModContent.ProjectileType<BouncingBettyProjectile>(),
|
||||
ModContent.ProjectileType<BrackishFlaskProj>(),
|
||||
ModContent.ProjectileType<DuststormInABottleProj>(),
|
||||
ModContent.ProjectileType<PlaguenadeProj>(),
|
||||
ModContent.ProjectileType<SeafoamBombProj>(),
|
||||
ModContent.ProjectileType<TotalityFlask>(),
|
||||
ModContent.ProjectileType<ConsecratedWaterProjectile>()
|
||||
};
|
||||
|
||||
spikyBallList = new List<int>()
|
||||
{
|
||||
ModContent.ItemType<GodsParanoia>(),
|
||||
@@ -1826,6 +1950,16 @@ namespace CalamityMod
|
||||
ModContent.ItemType<WebBall>()
|
||||
};
|
||||
|
||||
spikyBallProjList = new List<int>()
|
||||
{
|
||||
ModContent.ProjectileType<GodsParanoiaProj>(),
|
||||
ModContent.ProjectileType<HellsSunProj>(),
|
||||
ModContent.ProjectileType<NastyChollaBol>(),
|
||||
ModContent.ProjectileType<StickyBol>(),
|
||||
ModContent.ProjectileType<SkyStabberProj>(),
|
||||
ModContent.ProjectileType<WebBallBol>()
|
||||
};
|
||||
|
||||
noGravityList = new List<int>()
|
||||
{
|
||||
ModContent.ItemType<AuricBar>(),
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class EtherealExtorter : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ethereal Extorter");
|
||||
Tooltip.SetDefault(@"Infuses souls into your weapons and body generating different boosts that vary with the environment
|
||||
Rogue projectiles rarely explode into homing souls
|
||||
10% rogue damage but reduced life regen");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 32;
|
||||
item.accessory = true;
|
||||
item.value = Item.buyPrice(0, 24, 0, 0);
|
||||
item.rare = 8;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.etherealExtorter = true;
|
||||
modPlayer.throwingDamage += 0.1f;
|
||||
player.lifeRegen -= 1; //canceled out in mushroom biome btw
|
||||
if (Main.moonPhase == 4) //new moon
|
||||
{
|
||||
modPlayer.rogueStealthMax += 0.1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 458 B |
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Ammo.FiniteUse
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<ExplosiveShotgunShell>();
|
||||
item.shootSpeed = 12f;
|
||||
item.ammo = ModContent.ItemType<ExplosiveShells>(); // TODO -- would item.type work here
|
||||
item.ammo = ModContent.ItemType<ExplosiveShells>(); // CONSIDER -- Would item.type work here instead of a self reference?
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Ammo.FiniteUse
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<GrenadeRound>();
|
||||
item.shootSpeed = 12f;
|
||||
item.ammo = ModContent.ItemType<GrenadeRounds>(); // TODO -- would item.type work here
|
||||
item.ammo = ModContent.ItemType<GrenadeRounds>(); // CONSIDER -- Would item.type work here instead of a self reference?
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Ammo.FiniteUse
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<MagnumRound>();
|
||||
item.shootSpeed = 12f;
|
||||
item.ammo = ModContent.ItemType<MagnumRounds>(); // TODO -- would item.type work here
|
||||
item.ammo = ModContent.ItemType<MagnumRounds>(); // CONSIDER -- Would item.type work here instead of a self reference?
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.Calamity().throwingVelocity += 0.10f;
|
||||
}
|
||||
|
||||
/*public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SolarVeil>(), 12);
|
||||
@@ -63,6 +63,6 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -450,6 +450,10 @@ namespace CalamityMod.Items
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ((item.type == ItemID.ShinePotion || item.type == ItemID.NightOwlPotion) && (modPlayer.etherealExtorter && modPlayer.ZoneAbyss))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ((item.type == ItemID.SuperAbsorbantSponge || item.type == ItemID.EmptyBucket) && modPlayer.ZoneAbyss)
|
||||
{
|
||||
return false;
|
||||
@@ -2414,7 +2418,8 @@ Grants immunity to fire blocks, and temporary immunity to lava";
|
||||
(modPlayer.soaring ? 0.1f : 0f) +
|
||||
(modPlayer.holyWrath ? 0.05f : 0f) +
|
||||
(modPlayer.profanedRage ? 0.05f : 0f) +
|
||||
(modPlayer.draconicSurge ? 0.15f : 0f);
|
||||
(modPlayer.draconicSurge ? 0.15f : 0f) +
|
||||
(modPlayer.etherealExtorter && modPlayer.ZoneAstral ? 0.05f : 0f);
|
||||
if (flightSpeedMult > 1.2f)
|
||||
flightSpeedMult = 1.2f;
|
||||
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ namespace CalamityMod.Items
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO -- Make Super Dummies work in multiplayer by spawning correctly.
|
||||
// DEFECT -- Make Super Dummies work in multiplayer by spawning correctly.
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
crit = false;
|
||||
}
|
||||
|
||||
// TODO -- Providence specifically is immune to Coldheart Icicle. There is probably a better way to do this
|
||||
// LATER -- Providence specifically is immune to Coldheart Icicle. There is probably a better way to do this
|
||||
public override void ModifyHitNPC(Player player, NPC target, ref int damage, ref float knockBack, ref bool crit)
|
||||
{
|
||||
damage = 1;
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 14);
|
||||
|
||||
// TODO -- HiveBombExplosion doesn't exist. Is it supposed to?
|
||||
// DEFECT -- HiveBombExplosion does not exist.
|
||||
// Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<HiveBombExplosion>(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer);
|
||||
|
||||
for (int num621 = 0; num621 < 30; num621++)
|
||||
|
||||
@@ -18,7 +18,7 @@ Stealth strikes spawn smaller spears to fly along side it");
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.damage = 450;
|
||||
item.damage = 410;
|
||||
item.knockBack = 8f;
|
||||
item.crit += 15;
|
||||
|
||||
|
||||
@@ -65,6 +65,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
if (Main.rand.Next(1, 101) > 66)
|
||||
return false;
|
||||
}
|
||||
if (player.Calamity().throwingAmmoCost75)
|
||||
{
|
||||
if (Main.rand.Next(1, 101) > 75)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+12
-12
@@ -445,7 +445,7 @@ namespace CalamityMod
|
||||
|
||||
setBonus = setBonus.ToLower();
|
||||
|
||||
// TODO -- no summon set bonuses are written well. all use two bools, neither of which actually controls the function
|
||||
// LATER -- no summon set bonuses are written well. all use two bools, neither of which actually controls the function
|
||||
|
||||
// Victide
|
||||
if (setBonus == "victide_summon" || setBonus == "victide summon")
|
||||
@@ -682,7 +682,7 @@ namespace CalamityMod
|
||||
if (setBonus == "victide_summon" || setBonus == "victide summon")
|
||||
{
|
||||
mp.victideSet = enabled;
|
||||
mp.urchin = enabled; // TODO -- remove this when player.urchin actually controls victide summoner
|
||||
mp.urchin = enabled; // LATER -- remove this when player.urchin actually controls victide summoner
|
||||
return true;
|
||||
}
|
||||
else if (setBonus == "victide" || setBonus.StartsWith("victide_") || setBonus.StartsWith("victide "))
|
||||
@@ -695,7 +695,7 @@ namespace CalamityMod
|
||||
if (setBonus == "aerospec_summon" || setBonus == "aerospec summon")
|
||||
{
|
||||
mp.aeroSet = enabled;
|
||||
mp.valkyrie = enabled; // TODO -- remove this when player.valkyrie actually controls aerospec summoner
|
||||
mp.valkyrie = enabled; // LATER -- remove this when player.valkyrie actually controls aerospec summoner
|
||||
return true;
|
||||
}
|
||||
else if (setBonus == "aerospec" || setBonus.StartsWith("aerospec_") || setBonus.StartsWith("aerospec "))
|
||||
@@ -708,7 +708,7 @@ namespace CalamityMod
|
||||
if (setBonus == "statigel_summon" || setBonus == "statigel summon")
|
||||
{
|
||||
mp.statigelSet = enabled;
|
||||
mp.slimeGod = enabled; // TODO -- remove this when player.slimeGod actually controls statigel summoner
|
||||
mp.slimeGod = enabled; // LATER -- remove this when player.slimeGod actually controls statigel summoner
|
||||
return true;
|
||||
}
|
||||
else if (setBonus == "statigel" || setBonus.StartsWith("statigel_") || setBonus.StartsWith("statigel "))
|
||||
@@ -743,7 +743,7 @@ namespace CalamityMod
|
||||
return true;
|
||||
case "daedalus_summon":
|
||||
case "daedalus summon":
|
||||
mp.daedalusCrystal = enabled; // TODO -- remove this when player.daedalusCrystal actually controls daedalus summoner
|
||||
mp.daedalusCrystal = enabled; // LATER -- remove this when player.daedalusCrystal actually controls daedalus summoner
|
||||
return true;
|
||||
case "daedalus_rogue":
|
||||
case "daedalus rogue":
|
||||
@@ -770,7 +770,7 @@ namespace CalamityMod
|
||||
return true;
|
||||
case "reaver_summon":
|
||||
case "reaver summon":
|
||||
mp.reaverOrb = enabled; // TODO -- remove this when player.reaverOrb actually controls reaver summoner
|
||||
mp.reaverOrb = enabled; // LATER -- remove this when player.reaverOrb actually controls reaver summoner
|
||||
return true;
|
||||
case "reaver_rogue":
|
||||
case "reaver rogue":
|
||||
@@ -804,7 +804,7 @@ namespace CalamityMod
|
||||
case "ataxia_summon":
|
||||
case "ataxia summon":
|
||||
mp.ataxiaBlaze = enabled;
|
||||
mp.chaosSpirit = enabled; // TODO -- remove this when player.chaosSpirit actually controls ataxia summoner
|
||||
mp.chaosSpirit = enabled; // LATER -- remove this when player.chaosSpirit actually controls ataxia summoner
|
||||
return true;
|
||||
case "ataxia_rogue":
|
||||
case "ataxia rogue":
|
||||
@@ -853,7 +853,7 @@ namespace CalamityMod
|
||||
case "tarragon_summon":
|
||||
case "tarragon summon":
|
||||
mp.tarraSet = enabled;
|
||||
mp.tarraSummon = enabled; // TODO -- remove this when player.tarraSummon actually controls life aura
|
||||
mp.tarraSummon = enabled; // LATER -- remove this when player.tarraSummon actually controls life aura
|
||||
return true;
|
||||
case "tarragon_rogue":
|
||||
case "tarragon rogue":
|
||||
@@ -888,7 +888,7 @@ namespace CalamityMod
|
||||
case "bloodflare_summon":
|
||||
case "bloodflare summon":
|
||||
mp.bloodflareSet = enabled;
|
||||
mp.bloodflareSummon = enabled; // TODO -- remove this when player.bloodflareSummon actually controls bloodflare orbs
|
||||
mp.bloodflareSummon = enabled; // LATER -- remove this when player.bloodflareSummon actually controls bloodflare orbs
|
||||
return true;
|
||||
case "bloodflare_rogue":
|
||||
case "bloodflare rogue":
|
||||
@@ -935,7 +935,7 @@ namespace CalamityMod
|
||||
case "godslayer summon":
|
||||
case "god slayer summon":
|
||||
mp.godSlayer = enabled;
|
||||
mp.godSlayerSummon = enabled; // TODO -- remove this when player.godSlayerSummon actually controls mechworm
|
||||
mp.godSlayerSummon = enabled; // LATER -- remove this when player.godSlayerSummon actually controls mechworm
|
||||
return true;
|
||||
case "godslayer_rogue":
|
||||
case "godslayer rogue":
|
||||
@@ -971,7 +971,7 @@ namespace CalamityMod
|
||||
case "silva_summon":
|
||||
case "silva summon":
|
||||
mp.silvaSet = enabled;
|
||||
mp.silvaSummon = enabled; // TODO -- remove this when player.silvaSummon actually controls silva crystal
|
||||
mp.silvaSummon = enabled; // LATER -- remove this when player.silvaSummon actually controls silva crystal
|
||||
return true;
|
||||
case "silva_rogue":
|
||||
case "silva rogue":
|
||||
@@ -1075,7 +1075,7 @@ namespace CalamityMod
|
||||
if (setBonus == "demonshade")
|
||||
{
|
||||
mp.dsSetBonus = enabled;
|
||||
mp.rDevil = enabled; // TODO -- remove this when player.rDevil controls demonshade summoned minion
|
||||
mp.rDevil = enabled; // LATER -- remove this when player.rDevil controls demonshade summoned minion
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -701,7 +701,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
ResetAdrenaline(npc);
|
||||
|
||||
// TODO -- this could be abused to have Draedon Mayhem effects active nigh indefinitely or in all sorts of weird conditions
|
||||
// LATER -- keeping bosses alive lets draedon mayhem continue even after killing mechs
|
||||
// Reset Draedon Mayhem to false if no bosses are alive
|
||||
if (CalamityGlobalNPC.DraedonMayhem)
|
||||
{
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace CalamityMod.Projectiles
|
||||
private int counter2 = 0;
|
||||
|
||||
public bool lineColor = false; //holy mother of god, Eater of Shoals was a pain in the ass
|
||||
public bool extorterBoost = false;
|
||||
|
||||
#region SetDefaults
|
||||
public override void SetDefaults(Projectile projectile)
|
||||
@@ -582,6 +583,20 @@ namespace CalamityMod.Projectiles
|
||||
else if (projectile.type == ProjectileID.SoulDrain)
|
||||
projectile.magic = true;
|
||||
|
||||
if (Main.player[projectile.owner].Calamity().etherealExtorter)
|
||||
{
|
||||
if (CalamityMod.spikyBallProjList.Contains(projectile.type) && extorterBoost == false && Main.moonPhase == 2) //third quarter
|
||||
{
|
||||
projectile.timeLeft += 300;
|
||||
extorterBoost = true;
|
||||
}
|
||||
if (CalamityMod.javelinProjList.Contains(projectile.type) && extorterBoost == false && Main.player[projectile.owner].ZoneCrimson)
|
||||
{
|
||||
projectile.knockBack *= 2;
|
||||
extorterBoost = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!projectile.npcProj && projectile.friendly && projectile.damage > 0)
|
||||
{
|
||||
if (Main.player[projectile.owner].Calamity().eQuiver && projectile.ranged && CalamityMod.rangedProjectileExceptionList.TrueForAll(x => projectile.type != x))
|
||||
@@ -1394,7 +1409,6 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (playerC.Calamity().moonCrown && stealthStrike && playerC.Calamity().moonCrownCooldown <= 0)
|
||||
{
|
||||
for (int i = 0; i < 20; i++)
|
||||
@@ -1716,6 +1730,28 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rogue)
|
||||
{
|
||||
if (Main.player[projectile.owner].Calamity().etherealExtorter && Main.rand.Next(0, 100) >= 95)
|
||||
{
|
||||
for (int num252 = 0; num252 < 3; num252++)
|
||||
{
|
||||
Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
while (value15.X == 0f && value15.Y == 0f)
|
||||
{
|
||||
value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
}
|
||||
value15.Normalize();
|
||||
value15 *= (float)Main.rand.Next(70, 101) * 0.1f;
|
||||
int newDamage = (int)((double)projectile.damage * 0.33);
|
||||
int soul = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ProjectileID.LostSoulFriendly, newDamage, 0f, projectile.owner, 0f, 0f);
|
||||
Main.projectile[soul].Calamity().forceRogue = true;
|
||||
Main.projectile[soul].timeLeft = 300;
|
||||
Main.projectile[soul].tileCollide = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Main.PlaySound(2, (int)target.position.X, (int)target.position.Y, 14);
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
// TODO -- HiveBombExplosion does not exist.
|
||||
// DEFECT -- HiveBombExplosion does not exist.
|
||||
// Projectile.NewProjectile(target.Center.X, target.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, ModContent.ProjectileType<HiveBombExplosion>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
}
|
||||
projectile.position.X = projectile.position.X + (float)(projectile.width / 2);
|
||||
|
||||
@@ -6,7 +6,7 @@ using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class TyphonsGreed : ModProjectile
|
||||
public class TyphonsGreedBubble : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -169,7 +169,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
float ai1 = Main.rand.NextFloat() + 0.5f;
|
||||
Projectile.NewProjectile(vector20.X, vector20.Y, speedX, speedY, ModContent.ProjectileType<TyphonsGreed>(), projectile.damage, 2f, projectile.owner, 0.0f, ai1);
|
||||
Projectile.NewProjectile(vector20.X, vector20.Y, speedX, speedY, ModContent.ProjectileType<TyphonsGreedBubble>(), projectile.damage, 2f, projectile.owner, 0.0f, ai1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
// TODO -- HiveExplosion does not exist.
|
||||
// DEFECT -- HiveExplosion does not exist.
|
||||
// int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<HiveExplosion>(), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
// Main.projectile[explode].penetrate = 1;
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62);
|
||||
@@ -144,7 +144,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
// TODO -- HiveExplosion does not exist.
|
||||
// DEFECT -- HiveExplosion does not exist.
|
||||
// int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<HiveExplosion>(), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
// Main.projectile[explode].penetrate = 1;
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62);
|
||||
@@ -177,7 +177,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.immune[projectile.owner] = 2;
|
||||
// TODO -- HiveExplosion does not exist.
|
||||
// DEFECT -- HiveExplosion does not exist.
|
||||
// int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<HiveExplosion>(), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
// Main.projectile[explode].penetrate = 1;
|
||||
projectile.position.X = projectile.position.X + (float)(projectile.width / 2);
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27);
|
||||
// TODO -- BoltExplosion does not exist.
|
||||
// DEFECT -- BoltExplosion does not exist.
|
||||
// Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<BoltExplosion>(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f);
|
||||
int num212 = Main.rand.Next(10, 20);
|
||||
for (int num213 = 0; num213 < num212; num213++)
|
||||
|
||||
@@ -41,27 +41,35 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (projectile.alpha < 0)
|
||||
projectile.alpha = 0;
|
||||
}
|
||||
for (int num105 = 0; num105 < 2; num105++)
|
||||
{
|
||||
float num99 = projectile.velocity.X / 3f * (float)num105;
|
||||
float num100 = projectile.velocity.Y / 3f * (float)num105;
|
||||
int num101 = 4;
|
||||
int num102 = Dust.NewDust(new Vector2(projectile.position.X + (float)num101, projectile.position.Y + (float)num101), projectile.width - num101 * 2, projectile.height - num101 * 2, 202, 0f, 0f, 100, default, 1.2f);
|
||||
Main.dust[num102].noGravity = true;
|
||||
Main.dust[num102].velocity *= 0.1f;
|
||||
Main.dust[num102].velocity += projectile.velocity * 0.1f;
|
||||
Dust expr_47FA_cp_0 = Main.dust[num102];
|
||||
expr_47FA_cp_0.position.X -= num99;
|
||||
Dust expr_4815_cp_0 = Main.dust[num102];
|
||||
expr_4815_cp_0.position.Y -= num100;
|
||||
}
|
||||
if (Main.rand.NextBool(10))
|
||||
{
|
||||
int num103 = 4;
|
||||
int num104 = Dust.NewDust(new Vector2(projectile.position.X + (float)num103, projectile.position.Y + (float)num103), projectile.width - num103 * 2, projectile.height - num103 * 2, 202, 0f, 0f, 100, default, 0.6f);
|
||||
Main.dust[num104].velocity *= 0.25f;
|
||||
Main.dust[num104].velocity += projectile.velocity * 0.5f;
|
||||
}
|
||||
if (projectile.timeLeft < 475)
|
||||
{
|
||||
for (int num105 = 0; num105 < 2; num105++)
|
||||
{
|
||||
float num99 = projectile.velocity.X / 3f * (float)num105;
|
||||
float num100 = projectile.velocity.Y / 3f * (float)num105;
|
||||
int num101 = 4;
|
||||
int num102 = Dust.NewDust(new Vector2(projectile.position.X + (float)num101, projectile.position.Y + (float)num101), projectile.width - num101 * 2, projectile.height - num101 * 2, 202, 0f, 0f, 150, new Color(60, Main.DiscoG, 190), 1.2f);
|
||||
Main.dust[num102].noGravity = true;
|
||||
Main.dust[num102].velocity *= 0.1f;
|
||||
Main.dust[num102].velocity += projectile.velocity * 0.1f;
|
||||
Dust expr_47FA_cp_0 = Main.dust[num102];
|
||||
expr_47FA_cp_0.position.X -= num99;
|
||||
Dust expr_4815_cp_0 = Main.dust[num102];
|
||||
expr_4815_cp_0.position.Y -= num100;
|
||||
}
|
||||
if (Main.rand.NextBool(10))
|
||||
{
|
||||
int num103 = 4;
|
||||
int num104 = Dust.NewDust(new Vector2(projectile.position.X + (float)num103, projectile.position.Y + (float)num103), projectile.width - num103 * 2, projectile.height - num103 * 2, 202, 0f, 0f, 150, new Color(60, Main.DiscoG, 190), 0.6f);
|
||||
Main.dust[num104].velocity *= 0.25f;
|
||||
Main.dust[num104].velocity += projectile.velocity * 0.5f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor)
|
||||
{
|
||||
return new Color(60, Main.DiscoG, 190, projectile.alpha);
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
@@ -75,7 +83,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 96);
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 202, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 202, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, new Color(60, Main.DiscoG, 190));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
for (int num468 = 0; num468 < 3; num468++)
|
||||
{
|
||||
int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 217, 0f, 0f, 100, default, projectile.scale);
|
||||
int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 217, 0f, 0f, 100, new Color(60, Main.DiscoG, 190), projectile.scale);
|
||||
Main.dust[num469].noGravity = true;
|
||||
Main.dust[num469].velocity *= 0f;
|
||||
int num470 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 202, 0f, 0f, 100, default, projectile.scale);
|
||||
int num470 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 202, 0f, 0f, 100, new Color(60, Main.DiscoG, 190), projectile.scale);
|
||||
Main.dust[num470].noGravity = true;
|
||||
Main.dust[num470].velocity *= 0f;
|
||||
}
|
||||
|
||||
@@ -111,6 +111,11 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor)
|
||||
{
|
||||
return new Color(60, Main.DiscoG, 190, projectile.alpha);
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Texture2D texture2D13 = Main.projectileTexture[projectile.type];
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
}
|
||||
|
||||
// TODO -- Vanquisher Arrow projectile glowmask doesn't work.
|
||||
// DEFECT -- Vanquisher Arrow projectile glowmask doesn't work.
|
||||
/*
|
||||
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
}
|
||||
}
|
||||
|
||||
// TODO -- Vanquisher Arrow duplicate projectile glow doesn't work.
|
||||
// DEFECT -- Vanquisher Arrow duplicate projectile glow doesn't work.
|
||||
/*
|
||||
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
|
||||
@@ -14,8 +14,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.AbyssGravel>();
|
||||
AddMapEntry(new Color(0, 0, 0));
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMergeFrom(i, j, Type, TileID.Dirt);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, TileID.Dirt);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
dustType = 2;
|
||||
drop = ModContent.ItemType<Items.Placeables.PlantyMush>();
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
dustType = 32;
|
||||
drop = ModContent.ItemType<Items.Placeables.SulphurousSand>();
|
||||
@@ -189,7 +189,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
dustType = 44;
|
||||
drop = ModContent.ItemType<Items.Placeables.Tenebris>();
|
||||
@@ -91,7 +91,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
soundType = 21;
|
||||
@@ -234,7 +234,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Tiles
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return CustomTileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpChest(Type);
|
||||
this.SetUpChest();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Astral Chest");
|
||||
AddMapEntry(new Color(174, 129, 92), name, MapChestName);
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeOreTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithOres(Type);
|
||||
|
||||
dustType = ModContent.DustType<AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralClay>();
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,13 +14,13 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeOreTiles(Type);
|
||||
TileMerge.MergeTile(Type, TileID.Grass);
|
||||
TileMerge.MergeTile(Type, TileID.CorruptGrass);
|
||||
TileMerge.MergeTile(Type, TileID.HallowedGrass);
|
||||
TileMerge.MergeTile(Type, TileID.FleshGrass);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithOres(Type);
|
||||
CalamityUtils.SetMerge(Type, TileID.Grass);
|
||||
CalamityUtils.SetMerge(Type, TileID.CorruptGrass);
|
||||
CalamityUtils.SetMerge(Type, TileID.HallowedGrass);
|
||||
CalamityUtils.SetMerge(Type, TileID.FleshGrass);
|
||||
|
||||
dustType = ModContent.DustType<AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralDirt>();
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMergeFrom(i, j, Type, TileID.Dirt);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, TileID.Dirt);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeTile(Type, ModContent.TileType<AstralDirt>());
|
||||
TileMerge.MergeTile(Type, TileID.Grass);
|
||||
TileMerge.MergeTile(Type, TileID.CorruptGrass);
|
||||
TileMerge.MergeTile(Type, TileID.HallowedGrass);
|
||||
TileMerge.MergeTile(Type, TileID.FleshGrass);
|
||||
CalamityUtils.SetMerge(Type, ModContent.TileType<AstralDirt>());
|
||||
CalamityUtils.SetMerge(Type, TileID.Grass);
|
||||
CalamityUtils.SetMerge(Type, TileID.CorruptGrass);
|
||||
CalamityUtils.SetMerge(Type, TileID.HallowedGrass);
|
||||
CalamityUtils.SetMerge(Type, TileID.FleshGrass);
|
||||
|
||||
dustType = ModContent.DustType<AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralDirt>();
|
||||
|
||||
@@ -15,12 +15,12 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeTile(Type, TileID.LeafBlock);
|
||||
TileMerge.MergeTile(Type, TileID.LivingMahoganyLeaves);
|
||||
TileMerge.MergeTile(Type, TileID.LivingWood);
|
||||
TileMerge.MergeTile(Type, TileID.LivingMahogany);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
CalamityUtils.SetMerge(Type, TileID.LeafBlock);
|
||||
CalamityUtils.SetMerge(Type, TileID.LivingMahoganyLeaves);
|
||||
CalamityUtils.SetMerge(Type, TileID.LivingWood);
|
||||
CalamityUtils.SetMerge(Type, TileID.LivingMahogany);
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralMonolith>();
|
||||
AddMapEntry(new Color(45, 36, 63));
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralDirt>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeOreTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithOres(Type);
|
||||
|
||||
dustType = ModContent.DustType<AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralSilt>();
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeOreTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithOres(Type);
|
||||
|
||||
dustType = ModContent.DustType<AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralStone>();
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Tiles
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return CustomTileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
|
||||
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDesertTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithDesert(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
|
||||
dustType = ModContent.DustType<AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralFossil>();
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralSandstone>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralSandstone>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,9 +18,9 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
Main.tileSand[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDesertTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithDesert(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
|
||||
dustType = 108;
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralSand>();
|
||||
@@ -51,8 +51,8 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
WorldGen.SquareTileFrame(i, j);
|
||||
return false;
|
||||
}
|
||||
// CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
CustomTileFraming.FrameTileForCustomMergeFrom(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
// CustomTileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDesertTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithDesert(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
|
||||
dustType = ModContent.DustType<AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralSandstone>();
|
||||
@@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
// CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<HardenedAstralSand>(), false, false, false, false, resetFrame);
|
||||
CustomTileFraming.FrameTileForCustomMergeFrom(i, j, Type, ModContent.TileType<HardenedAstralSand>());
|
||||
// CustomTileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<HardenedAstralSand>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<HardenedAstralSand>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDesertTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithDesert(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
|
||||
|
||||
dustType = 108;
|
||||
@@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
// CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralSand>(), false, false, false, false, resetFrame);
|
||||
CustomTileFraming.FrameTileForCustomMergeFrom(i, j, Type, ModContent.TileType<AstralSand>());
|
||||
// CustomTileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralSand>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralSand>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeSnowTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithSnow(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
|
||||
dustType = 173;
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralIce>();
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralSnow>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralSnow>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeSnowTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithSnow(Type);
|
||||
CalamityUtils.MergeAstralTiles(Type);
|
||||
|
||||
dustType = 173;
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralSnow>();
|
||||
@@ -41,8 +41,8 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
// CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType<AstralDirt>(), false, false, false, false, resetFrame);
|
||||
CustomTileFraming.FrameTileForCustomMergeFrom(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
// CustomTileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
+76
-164
@@ -1,4 +1,3 @@
|
||||
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using CalamityMod.Tiles.Astral;
|
||||
@@ -26,55 +25,29 @@ namespace CalamityMod.Tiles
|
||||
TileID.HallowedPlants,
|
||||
TileID.HallowedPlants2,
|
||||
TileID.FleshWeeds,
|
||||
(ushort)ModContent.GetInstance<CalamityMod>().TileType("AstralShortPlants"),
|
||||
(ushort)ModContent.GetInstance<CalamityMod>().TileType("AstralTallPlants")
|
||||
(ushort)ModContent.TileType<AstralShortPlants>(),
|
||||
(ushort)ModContent.TileType<AstralTallPlants>(),
|
||||
};
|
||||
|
||||
public override void SetDefaults()
|
||||
public override bool PreHitWire(int i, int j, int type)
|
||||
{
|
||||
if (CalamityMod.chairList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.chairList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair, i);
|
||||
}
|
||||
}
|
||||
if (CalamityMod.doorList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.doorList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor, i);
|
||||
}
|
||||
}
|
||||
if (CalamityMod.lightList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.lightList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch, i);
|
||||
}
|
||||
}
|
||||
if (CalamityMod.tableList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.tableList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable, i);
|
||||
}
|
||||
}
|
||||
return !CalamityWorld.bossRushActive;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, int type, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
// Custom plant framing
|
||||
for (int k = 0; k < PlantTypes.Length; k++)
|
||||
{
|
||||
if (PlantTypes[k] == type)
|
||||
if (type == PlantTypes[k])
|
||||
{
|
||||
CustomTileFraming.CheckPlants(i, j);
|
||||
TileFraming.PlantFrame(i, j);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Custom vine framing
|
||||
if (type == TileID.Vines || type == TileID.CrimsonVines || type == TileID.HallowedVines || type == ModContent.TileType<AstralVines>())
|
||||
{
|
||||
CustomTileFraming.VineFrame(i, j);
|
||||
TileFraming.VineFrame(i, j);
|
||||
return false;
|
||||
}
|
||||
return base.TileFrame(i, j, type, ref resetFrame, ref noBreak);
|
||||
@@ -82,140 +55,84 @@ namespace CalamityMod.Tiles
|
||||
|
||||
public override void PostDraw(int i, int j, int type, SpriteBatch spriteBatch)
|
||||
{
|
||||
// Guaranteed not null at this point
|
||||
Tile tile = Main.tile[i, j];
|
||||
|
||||
if (type == TileID.Cactus)
|
||||
{
|
||||
//GRABBING VARIABLES FOR CERTAIN THINGS
|
||||
Vector2 zero = new Vector2(Main.offScreenRange, Main.offScreenRange);
|
||||
if (Main.drawToScreen)
|
||||
zero = Vector2.Zero;
|
||||
//TESTING STUFF
|
||||
int frameX = tile.frameX;
|
||||
int frameY = tile.frameY;
|
||||
bool astralCactus = false;
|
||||
if (!Main.canDrawColorTile(i, j))
|
||||
{
|
||||
int xTile = i;
|
||||
if (frameX == 36)
|
||||
{
|
||||
xTile--;
|
||||
}
|
||||
if (frameX == 54)
|
||||
{
|
||||
xTile++;
|
||||
}
|
||||
if (frameX == 108)
|
||||
{
|
||||
if (frameY == 18)
|
||||
{
|
||||
xTile--;
|
||||
}
|
||||
else
|
||||
{
|
||||
xTile++;
|
||||
}
|
||||
}
|
||||
int yTile = j;
|
||||
bool flag = false;
|
||||
if (Main.tile[xTile, yTile].type == 80 && Main.tile[xTile, yTile].active())
|
||||
{
|
||||
flag = true;
|
||||
}
|
||||
while (!Main.tile[xTile, yTile].active() || !Main.tileSolid[(int)Main.tile[xTile, yTile].type] || !flag)
|
||||
{
|
||||
if (Main.tile[xTile, yTile].type == 80 && Main.tile[xTile, yTile].active())
|
||||
{
|
||||
flag = true;
|
||||
}
|
||||
yTile++;
|
||||
if (yTile > i + 20)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
//CACTUS CHECK
|
||||
if (Main.tile[xTile, yTile].type == (ushort)ModContent.TileType<AstralSand>())
|
||||
{
|
||||
astralCactus = true;
|
||||
}
|
||||
}
|
||||
//Draw Glow
|
||||
if (astralCactus)
|
||||
{
|
||||
spriteBatch.Draw(CalamityMod.AstralCactusGlowTexture, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y)) + zero, new Rectangle((int)frameX, (int)frameY, 16, 18), Color.White * 0.75f, 0f, default, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
// This function is only for Astral Cactus. If the tile isn't even cactus, forget about it.
|
||||
if (type != TileID.Cactus)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem)
|
||||
{
|
||||
// TODO -- holy shit THAT IS NOT HOW YOU NULL CHECK OH MY GOD THIS EXPLAINS EVERYTHING
|
||||
if(Main.tile[i,j] is null)
|
||||
return;
|
||||
|
||||
if (Main.tile[i, j].type != ModContent.TileType<LumenylCrystals>() && Main.tile[i, j].type != ModContent.TileType<SeaPrismCrystals>() && Main.tileSolid[Main.tile[i, j].type])
|
||||
Vector2 zero = new Vector2(Main.offScreenRange, Main.offScreenRange);
|
||||
if (Main.drawToScreen)
|
||||
zero = Vector2.Zero;
|
||||
int frameX = tile.frameX;
|
||||
int frameY = tile.frameY;
|
||||
|
||||
// Search down the cactus to find out whether the block it is planted in is Astral Sand.
|
||||
bool astralCactus = false;
|
||||
if (!Main.canDrawColorTile(i, j))
|
||||
{
|
||||
if (Main.tile[i + 1, j] != null)
|
||||
int xTile = i;
|
||||
if (frameX == 36) // Cactus segment which splits left
|
||||
xTile--;
|
||||
if (frameX == 54) // Cactus segment which splits right
|
||||
xTile++;
|
||||
if (frameX == 108) // Cactus segment which splits both directions
|
||||
xTile += (frameY == 18) ? -1 : 1;
|
||||
|
||||
int yTile = j;
|
||||
bool slidingDownCactus = Main.tile[xTile, yTile] != null && Main.tile[xTile, yTile].type == TileID.Cactus && Main.tile[xTile, yTile].active();
|
||||
while (!Main.tile[xTile, yTile].active() || !Main.tileSolid[Main.tile[xTile, yTile].type] || !slidingDownCactus)
|
||||
{
|
||||
if (Main.tile[i + 1, j].active())
|
||||
if (Main.tile[xTile, yTile].type == TileID.Cactus && Main.tile[xTile, yTile].active())
|
||||
{
|
||||
if (Main.tile[i + 1, j].type == ModContent.TileType<LumenylCrystals>() || (Main.tile[i + 1, j].type == ModContent.TileType<SeaPrismCrystals>() && CalamityWorld.downedDesertScourge))
|
||||
{
|
||||
WorldGen.KillTile(i + 1, j, false, false, false);
|
||||
if (!Main.tile[i + 1, j].active() && Main.netMode != NetmodeID.SinglePlayer)
|
||||
{
|
||||
NetMessage.SendData(17, -1, -1, null, 0, (float)i + 1, (float)j, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Main.tile[i - 1, j] != null)
|
||||
{
|
||||
if (Main.tile[i - 1, j].active())
|
||||
{
|
||||
if (Main.tile[i - 1, j].type == ModContent.TileType<LumenylCrystals>() || (Main.tile[i - 1, j].type == ModContent.TileType<SeaPrismCrystals>() && CalamityWorld.downedDesertScourge))
|
||||
{
|
||||
WorldGen.KillTile(i - 1, j, false, false, false);
|
||||
if (!Main.tile[i - 1, j].active() && Main.netMode != NetmodeID.SinglePlayer)
|
||||
{
|
||||
NetMessage.SendData(17, -1, -1, null, 0, (float)i - 1, (float)j, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Main.tile[i, j + 1] != null)
|
||||
{
|
||||
if (Main.tile[i, j + 1].active())
|
||||
{
|
||||
if (Main.tile[i, j + 1].type == ModContent.TileType<LumenylCrystals>() || (Main.tile[i, j + 1].type == ModContent.TileType<SeaPrismCrystals>() && CalamityWorld.downedDesertScourge))
|
||||
{
|
||||
WorldGen.KillTile(i, j + 1, false, false, false);
|
||||
if (!Main.tile[i, j + 1].active() && Main.netMode != NetmodeID.SinglePlayer)
|
||||
{
|
||||
NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Main.tile[i, j - 1] != null)
|
||||
{
|
||||
if (Main.tile[i, j - 1].active())
|
||||
{
|
||||
if (Main.tile[i, j - 1].type == ModContent.TileType<LumenylCrystals>() || (Main.tile[i, j - 1].type == ModContent.TileType<SeaPrismCrystals>() && CalamityWorld.downedDesertScourge))
|
||||
{
|
||||
WorldGen.KillTile(i, j - 1, false, false, false);
|
||||
if (!Main.tile[i, j - 1].active() && Main.netMode != NetmodeID.SinglePlayer)
|
||||
{
|
||||
NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j - 1, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
slidingDownCactus = true;
|
||||
}
|
||||
yTile++;
|
||||
// Cacti are assumed to be no more than 20 blocks tall.
|
||||
if (yTile > i + 20)
|
||||
break;
|
||||
}
|
||||
astralCactus = Main.tile[xTile, yTile].type == (ushort)ModContent.TileType<AstralSand>();
|
||||
}
|
||||
|
||||
// If it is actually astral cactus, then draw its glowmask.
|
||||
if (astralCactus)
|
||||
{
|
||||
spriteBatch.Draw(CalamityMod.AstralCactusGlowTexture, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y)) + zero, new Rectangle((int)frameX, (int)frameY, 16, 18), Color.White * 0.75f, 0f, default, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
// This function exists only to shatter adjacent Lumenyl or Sea Prism crystals when a neighboring solid tile is destroyed.
|
||||
public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if(tile is null)
|
||||
return;
|
||||
|
||||
// Helper function to shatter crystals attached to neighboring solid tiles.
|
||||
void CheckShatterCrystal(int xPos, int yPos)
|
||||
{
|
||||
Tile t = Main.tile[xPos, yPos];
|
||||
if (t != null && t.active() && (t.type == ModContent.TileType<LumenylCrystals>() || (t.type == ModContent.TileType<SeaPrismCrystals>() && CalamityWorld.downedDesertScourge)))
|
||||
{
|
||||
WorldGen.KillTile(xPos, yPos, false, false, false);
|
||||
if (!Main.tile[xPos, yPos].active() && Main.netMode != NetmodeID.SinglePlayer)
|
||||
NetMessage.SendData(17, -1, -1, null, 0, (float)xPos, (float)yPos, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
// CONSIDER -- Lumenyl Crystals and Sea Prism Crystals aren't solid. They shouldn't need to be checked here.
|
||||
if (Main.tileSolid[tile.type] && tile.type != ModContent.TileType<LumenylCrystals>() && tile.type != ModContent.TileType<SeaPrismCrystals>())
|
||||
{
|
||||
CheckShatterCrystal(i + 1, j);
|
||||
CheckShatterCrystal(i - 1, j);
|
||||
CheckShatterCrystal(i, j + 1);
|
||||
CheckShatterCrystal(i, j - 1);
|
||||
}
|
||||
}
|
||||
|
||||
// LATER -- clean up copied decompiled pot code here
|
||||
public override bool Drop(int i, int j, int type)
|
||||
{
|
||||
if (type == 28)
|
||||
@@ -584,10 +501,5 @@ namespace CalamityMod.Tiles
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool PreHitWire(int i, int j, int type)
|
||||
{
|
||||
return !CalamityWorld.bossRushActive;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Tiles
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = 21;
|
||||
mineResist = 1f;
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace CalamityMod.Tiles.Crags
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeHellTiles(Type);
|
||||
TileMerge.MergeTile(Type, ModContent.TileType<CharredOre>());
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithHell(Type);
|
||||
CalamityUtils.SetMerge(Type, ModContent.TileType<CharredOre>());
|
||||
|
||||
soundType = 21;
|
||||
mineResist = 3f;
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return CustomTileFraming.BrimstoneFraming(i, j, resetFrame);
|
||||
return TileFraming.BrimstoneFraming(i, j, resetFrame);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Tiles
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDecorativeTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeDecorativeTiles(Type);
|
||||
|
||||
soundType = 21;
|
||||
minPick = 100;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBathtub(Type);
|
||||
this.SetUpBathtub();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Bathtub");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBed(Type);
|
||||
this.SetUpBed();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Bed");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBookcase(Type);
|
||||
this.SetUpBookcase();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Bookcase");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpCandelabra(Type);
|
||||
this.SetUpCandelabra();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Candelabra");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpChair(Type);
|
||||
this.SetUpChair();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Chair");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpChandelier(Type);
|
||||
this.SetUpChandelier();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Chandelier");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpChest(Type);
|
||||
this.SetUpChest();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Chest");
|
||||
AddMapEntry(new Color(191, 142, 111), name, MapChestName);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpClock(Type);
|
||||
this.SetUpClock();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Clock");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpDoorClosed(Type);
|
||||
this.SetUpDoorClosed();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Door");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpDoorOpen(Type);
|
||||
this.SetUpDoorOpen();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Door");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpDresser(Type);
|
||||
this.SetUpDresser();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Dresser");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpLamp(Type);
|
||||
this.SetUpLamp();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Lamp");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpLantern(Type);
|
||||
this.SetUpLantern();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Lantern");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpPiano(Type);
|
||||
this.SetUpPiano();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Synth");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpSink(Type);
|
||||
this.SetUpSink();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Sink");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpSofa(Type);
|
||||
this.SetUpSofa();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Sofa");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpTable(Type);
|
||||
this.SetUpTable();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Table");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpTorch(Type, waterImmune: true);
|
||||
this.SetUpTorch(waterImmune: true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpWorkBench(Type);
|
||||
this.SetUpWorkBench();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Work Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -12,10 +12,10 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeSmoothTiles(Type);
|
||||
TileMerge.MergeDecorativeTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeSmoothTiles(Type);
|
||||
CalamityUtils.MergeDecorativeTiles(Type);
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
soundType = 21;
|
||||
mineResist = 2f;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpPlatform(Type);
|
||||
this.SetUpPlatform();
|
||||
soundType = 21;
|
||||
AddMapEntry(new Color(191, 142, 111));
|
||||
drop = ModContent.ItemType<Items.Placeables.FurnitureAbyss.SmoothAbyssGravelPlatform>();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBathtub(Type, true);
|
||||
this.SetUpBathtub(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Bathtub");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBed(Type, true);
|
||||
this.SetUpBed(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Bed");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBookcase(Type, true);
|
||||
this.SetUpBookcase(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Bookcase");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpChair(Type, true);
|
||||
this.SetUpChair(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Chair");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpChandelier(Type, true);
|
||||
this.SetUpChandelier(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Chandelier");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpDoorClosed(Type, true);
|
||||
this.SetUpDoorClosed(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Door");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpDoorOpen(Type, true);
|
||||
this.SetUpDoorOpen(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Door");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpDresser(Type);
|
||||
this.SetUpDresser();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Dresser");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpLamp(Type, true);
|
||||
this.SetUpLamp(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Lamp");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpLantern(Type, true);
|
||||
this.SetUpLantern(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Lantern");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpClock(Type, true);
|
||||
this.SetUpClock(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Monolith");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpSink(Type, true);
|
||||
this.SetUpSink(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Sink");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpSofa(Type, true);
|
||||
this.SetUpSofa(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Sofa");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpTable(Type, true);
|
||||
this.SetUpTable(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Table");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpWorkBench(Type, true);
|
||||
this.SetUpWorkBench(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Work Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBathtub(Type, true);
|
||||
this.SetUpBathtub(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ashen Bathtub");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBed(Type, true);
|
||||
this.SetUpBed(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ashen Bed");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityUtils.SetUpBookcase(Type, true);
|
||||
this.SetUpBookcase(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ashen Bookcase");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
Loaded 100 of 346 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user