Sulph Sea Reformation 2.0 (Also see description)

Changed IL Editing changes to not use a constant index set, fixed the mechworm UUID implementation, added a wulfrum droid summon projectile clone, and added some items/chests alongside the new worldgen changes.
This commit is contained in:
DominicKarma42 committed 2020-04-12 03:13:32 -05:00
1 parent b333d832eb
commit eabfa51179
103 files changed
+3021 -557

No files matched your search

+22
View File
@@ -509,6 +509,7 @@ namespace CalamityMod.CalPlayer
public int hallowedRuneCooldown = 0;
public bool silvaWings = false;
public int icicleCooldown = 0;
public bool rustyMedal = false;
#endregion
#region Armor Set
@@ -663,6 +664,7 @@ namespace CalamityMod.CalPlayer
public int chiBuffTimer = 0;
public bool corrEffigy = false;
public bool crimEffigy = false;
public bool decayEffigy = false;
public bool rRage = false;
public bool tRegen = false;
public bool xRage = false;
@@ -825,6 +827,7 @@ namespace CalamityMod.CalPlayer
public bool necrosteocytesDudes = false;
public bool gammaHead = false;
public List<int> GammaCanisters = new List<int>();
public bool rustyDrone = false;
#endregion
#region Biome
@@ -1475,6 +1478,7 @@ namespace CalamityMod.CalPlayer
camper = false;
silvaWings = false;
corrosiveSpine = false;
rustyMedal = false;
daedalusReflect = false;
daedalusSplit = false;
@@ -1611,6 +1615,7 @@ namespace CalamityMod.CalPlayer
trinketOfChiBuff = false;
corrEffigy = false;
crimEffigy = false;
decayEffigy = false;
rRage = false;
xRage = false;
xWrath = false;
@@ -1779,6 +1784,7 @@ namespace CalamityMod.CalPlayer
brimseeker = false;
necrosteocytesDudes = false;
gammaHead = false;
rustyDrone = false;
abyssalDivingSuitPrevious = abyssalDivingSuit;
abyssalDivingSuit = abyssalDivingSuitHide = abyssalDivingSuitForce = abyssalDivingSuitPower = false;
@@ -6188,6 +6194,22 @@ namespace CalamityMod.CalPlayer
}
}
if (rustyMedal)
{
if (item.ranged)
{
if (Main.rand.NextBool(8))
{
for (int i = 0; i < 3; i++)
{
Vector2 startingPosition = Main.MouseWorld - Vector2.UnitY.RotatedByRandom(0.4f) * 1250f;
Vector2 directionToMouse = (startingPosition - Main.MouseWorld).SafeNormalize(Vector2.UnitY).RotatedByRandom(0.1f);
Projectile.NewProjectile(startingPosition, directionToMouse * 12f, ModContent.ProjectileType<ToxicannonDrop>(), (int)(damage * 0.3f), 0f, player.whoAmI);
}
}
}
}
return true;
}
#endregion
+7
View File
@@ -2241,6 +2241,13 @@ namespace CalamityMod.CalPlayer
}
}
// Effigy of Decay effects
if (modPlayer.decayEffigy)
{
player.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = true;
player.gills = true;
}
if (modPlayer.astralInjection)
{
if (player.statMana < player.statManaMax2)