icy shit, and soul of cryo buff
This commit is contained in:
1 parent
c229bf3863
commit
4366635adb
20 files changed
+45
-15
No files matched your search
@@ -451,6 +451,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool starTaintedGenerator = false;
|
||||
public bool hallowedRune = false;
|
||||
public bool silvaWings = false;
|
||||
public int icicleCooldown = 0;
|
||||
|
||||
|
||||
// Armor Set
|
||||
@@ -1633,6 +1634,7 @@ namespace CalamityMod.CalPlayer
|
||||
nanoFlareCooldown = 0;
|
||||
fleshTotemCooldown = false;
|
||||
sandCloakCooldown = false;
|
||||
icicleCooldown = 0;
|
||||
|
||||
alcoholPoisoning = false;
|
||||
shadowflame = false;
|
||||
|
||||
@@ -885,6 +885,8 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.projRefRareLifeRegenCounter--;
|
||||
if (modPlayer.hurtSoundTimer > 0)
|
||||
modPlayer.hurtSoundTimer--;
|
||||
if (modPlayer.icicleCooldown > 0)
|
||||
modPlayer.icicleCooldown--;
|
||||
|
||||
// Silva invincibility effects
|
||||
if (modPlayer.silvaCountdown > 0 && modPlayer.hasSilvaEffect && modPlayer.silvaSet)
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.CalPlayer;
|
||||
using CalamityMod.ILEditing;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.Accessories.Wings;
|
||||
using CalamityMod.Items.Armor;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
|
||||
@@ -1064,6 +1065,7 @@ namespace CalamityMod
|
||||
ModContent.ItemType<Hypothermia>(),
|
||||
ModContent.ItemType<IceBarrage>(),
|
||||
ModContent.ItemType<FrostBlossomStaff>(),
|
||||
ModContent.ItemType<EndoHydraStaff>(),
|
||||
//Cryonic Bar set stuff, could potentially be removed
|
||||
ModContent.ItemType<Trinity>(),
|
||||
ModContent.ItemType<Shimmerspark>(),
|
||||
@@ -2182,6 +2184,7 @@ namespace CalamityMod
|
||||
ModContent.ItemType<GalacticaSingularity>(),
|
||||
ModContent.ItemType<NightmareFuel>(),
|
||||
ModContent.ItemType<EndothermicEnergy>(),
|
||||
ModContent.ItemType<SoulofCryogen>(),
|
||||
|
||||
ModContent.ItemType<KnowledgeAquaticScourge>(),
|
||||
ModContent.ItemType<KnowledgeAstralInfection>(),
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,6 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Flight time: 100\n" +
|
||||
"5% increase to all damage and pick speed\n" +
|
||||
"All melee attacks and projectiles inflict frostburn\n" +
|
||||
"Icicles rain down as you fly\n" +
|
||||
"Provides heat and cold protection in Death Mode");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(8, 4));
|
||||
}
|
||||
@@ -35,7 +38,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
|
||||
public override void Update(ref float gravity, ref float maxFallSpeed)
|
||||
{
|
||||
maxFallSpeed *= 0f;
|
||||
float num = (float)Main.rand.Next(90, 111) * 0.01f;
|
||||
num *= Main.essScale;
|
||||
Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0f * num, 0.3f * num, 0.3f * num);
|
||||
@@ -63,6 +65,17 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.allDamage += 0.05f;
|
||||
player.wingTimeMax = 100;
|
||||
player.noFallDmg = true;
|
||||
if (modPlayer.icicleCooldown <= 0)
|
||||
{
|
||||
if (player.controlJump && player.wingTime > 0f && !player.jumpAgainCloud && player.jump == 0 && player.velocity.Y != 0f)
|
||||
{
|
||||
int p = Projectile.NewProjectile(player.Center.X, player.Center.Y, player.velocity.X * 0f, 2f, ModContent.ProjectileType<FrostShardFriendly>(), 25, 3f, player.whoAmI);
|
||||
Main.projectile[p].minion = false;
|
||||
Main.projectile[p].Calamity().rogue = false;
|
||||
Main.projectile[p].frame = Main.rand.Next(5);
|
||||
modPlayer.icicleCooldown = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 60;
|
||||
item.width = 72;
|
||||
item.height = 76;
|
||||
item.damage = 158;
|
||||
item.melee = true;
|
||||
item.useAnimation = 10;
|
||||
@@ -25,7 +26,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 8f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 68;
|
||||
item.value = Item.buyPrice(0, 80, 0, 0);
|
||||
item.rare = 8;
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -27,6 +27,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.penetrate = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.penetrate = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 60;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.ignoreWater = true;
|
||||
projectile.magic = true;
|
||||
projectile.timeLeft = 600;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -82,7 +82,6 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
float angleRandom = 0.1f;
|
||||
|
||||
int num3;
|
||||
for (int num53 = 0; num53 < 40; num53++)
|
||||
{
|
||||
float dustSpeed = Main.rand.NextFloat(6.0f, 12.0f);
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.timeLeft = timeToExist;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
// Netcode for sending and receiving shit
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.extraUpdates = 1;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -77,7 +78,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
//Spawn effects
|
||||
if (projectile.localAI[0] == 0f)
|
||||
{
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue = (player.allDamage + player.minionDamage - 1f);
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue = player.MinionDamage();
|
||||
projectile.Calamity().spawnedPlayerMinionProjectileDamageValue = projectile.damage;
|
||||
AttackMode = (int)projectile.ai[0];
|
||||
LimbID = (int)projectile.ai[1];
|
||||
@@ -99,10 +100,10 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.localAI[1] = AttackMode;
|
||||
|
||||
//Damage Update
|
||||
if ((player.allDamage + player.minionDamage - 1f) != projectile.Calamity().spawnedPlayerMinionDamageValue)
|
||||
if (player.MinionDamage() != projectile.Calamity().spawnedPlayerMinionDamageValue)
|
||||
{
|
||||
int damage2 = (int)((float)projectile.Calamity().spawnedPlayerMinionProjectileDamageValue /
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue * (player.allDamage + player.minionDamage - 1f));
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue * player.MinionDamage());
|
||||
projectile.damage = damage2;
|
||||
}
|
||||
//Variables
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.extraUpdates = 1;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.idStaticNPCHitCooldown = 5;
|
||||
projectile.timeLeft = 300;
|
||||
projectile.tileCollide = false;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.tileCollide = false;
|
||||
projectile.timeLeft *= 5;
|
||||
projectile.minion = true;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -38,16 +39,16 @@ namespace CalamityMod.Projectiles.Summon
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (projectile.localAI[0] == 0f)
|
||||
{
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue = (player.allDamage + player.minionDamage - 1f);
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue = player.MinionDamage();
|
||||
projectile.Calamity().spawnedPlayerMinionProjectileDamageValue = projectile.damage;
|
||||
projectile.ai[0] = -1f;
|
||||
projectile.localAI[0] = 1f;
|
||||
}
|
||||
if ((player.allDamage + player.minionDamage - 1f) != projectile.Calamity().spawnedPlayerMinionDamageValue)
|
||||
if (player.MinionDamage() != projectile.Calamity().spawnedPlayerMinionDamageValue)
|
||||
{
|
||||
int trueDamage = (int)(projectile.Calamity().spawnedPlayerMinionProjectileDamageValue /
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue *
|
||||
(player.allDamage + player.minionDamage - 1f));
|
||||
player.MinionDamage());
|
||||
projectile.damage = trueDamage;
|
||||
}
|
||||
bool isProperProjectile = projectile.type == ModContent.ProjectileType<EndoHydraBody>();
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.tileCollide = false;
|
||||
projectile.timeLeft *= 5;
|
||||
projectile.minion = true;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
public override void ReceiveExtraAI(BinaryReader reader)
|
||||
{
|
||||
@@ -65,15 +66,15 @@ namespace CalamityMod.Projectiles.Summon
|
||||
DeltaPosition = new Vector2(Main.rand.NextFloat(-72f - 8f * totalHeads, 72f + 8f * totalHeads), -Main.rand.NextFloat(8f, 84f + 4f * totalHeads));
|
||||
projectile.netUpdate = true;
|
||||
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue = (player.allDamage + player.minionDamage - 1f);
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue = player.MinionDamage();
|
||||
projectile.Calamity().spawnedPlayerMinionProjectileDamageValue = projectile.damage;
|
||||
projectile.localAI[0] = 1f;
|
||||
}
|
||||
if ((player.allDamage + player.minionDamage - 1f) != projectile.Calamity().spawnedPlayerMinionDamageValue)
|
||||
if (player.MinionDamage() != projectile.Calamity().spawnedPlayerMinionDamageValue)
|
||||
{
|
||||
int trueDamage = (int)(projectile.Calamity().spawnedPlayerMinionProjectileDamageValue /
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue *
|
||||
(player.allDamage + player.minionDamage - 1f));
|
||||
player.MinionDamage());
|
||||
projectile.damage = trueDamage;
|
||||
}
|
||||
Vector2 bodyTop = body.Center + new Vector2(body.spriteDirection == 1 ? 12 : -14, -50f) + DeltaPosition;
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace CalamityMod.Projectiles.Summon
|
||||
DisplayName.SetDefault("Endo Ice Shard");
|
||||
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
|
||||
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
|
||||
ProjectileID.Sets.MinionSacrificable[projectile.type] = true;
|
||||
ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true;
|
||||
ProjectileID.Sets.MinionShot[projectile.type] = true;
|
||||
}
|
||||
|
||||
@@ -31,6 +29,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.extraUpdates = 1;
|
||||
projectile.alpha = 255;
|
||||
projectile.timeLeft = 240;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.penetrate = 10;
|
||||
projectile.extraUpdates = 100;
|
||||
projectile.timeLeft = 265;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.penetrate = 1;
|
||||
projectile.extraUpdates = 220;
|
||||
projectile.timeLeft = 200;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.tileCollide = false;
|
||||
projectile.timeLeft *= 5;
|
||||
projectile.minion = true;
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
Reference in new issue
Block a user