Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
c184003cde
4 files changed
+21
-4
No files matched your search
@@ -25,7 +25,7 @@ MusicModReminder: "[i:MusicBoxMartians] [c/71DFF5:Remember to also install the C
|
||||
GimmeSwagPlushieCampaign:
|
||||
'''
|
||||
|
||||
[i:GreenPresent] [c/3BE022:LIMITED TIME! Sign up for the Calamitas Plushie Campaign!] [c/3989FF:calamitymod.com/plush] [i:GreenPresent]
|
||||
[i:GreenPresent] [c/3BE022:NOW AVAILABLE! Supreme Calamitas Plushie!] [c/3989FF:calamitymod.com/plush] [i:GreenPresent]
|
||||
'''
|
||||
// Recipe Conditions
|
||||
Tier1ArsenalRecipeCondition: View an unencrypted schematic from the lab near the Sunken Sea
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using CalamityMod.Particles;
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Utilities;
|
||||
@@ -121,7 +122,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public void DoPrettyDustEffects()
|
||||
{
|
||||
int dustSpawnChance = (int)MathHelper.SmoothStep(16f, 4f, ChargeupCompletion);
|
||||
int dustSpawnChance = (int)MathHelper.SmoothStep(20f, 2f, ChargeupCompletion);
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
if (!Main.rand.NextBool(dustSpawnChance))
|
||||
@@ -140,10 +141,26 @@ namespace CalamityMod.Projectiles.Magic
|
||||
magic.noLight = true;
|
||||
magic.noGravity = true;
|
||||
}
|
||||
|
||||
// Light particle effects, which get bigger and turn from white to red as the beam charges.
|
||||
// It then stays at max size and red color as long as the beam is firing.
|
||||
if (Time > 30 && Time % 5 == 0)
|
||||
{
|
||||
Vector2 particleVel = Main.rand.NextVector2CircularEdge(1f, 1f);
|
||||
particleVel.SafeNormalize(Vector2.Zero);
|
||||
particleVel *= Main.rand.NextFloat(5f, 10f);
|
||||
|
||||
Particle chargeParticle = new GenericBloom(Projectile.Center, particleVel, Color.Lerp(Color.White, Color.Red, ChargeupCompletion), MathHelper.Lerp(0.075f, 0.35f, ChargeupCompletion), 30);
|
||||
GeneralParticleHandler.SpawnParticle(chargeParticle);
|
||||
}
|
||||
}
|
||||
|
||||
public void HandleChargeEffects()
|
||||
{
|
||||
// Play charge-up sound.
|
||||
if (Time == 30)
|
||||
SoundEngine.PlaySound(new("CalamityMod/Sounds/Custom/MoonLordLaserCharge"), Projectile.Center, _ => new ProjectileAudioTracker(Projectile).IsActiveAndInGame());
|
||||
|
||||
// Create dust that fires parallel to the direction of the circle.
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -1,5 +1,5 @@
|
||||
author = Fabsol and the Dev Team
|
||||
version = 2.0.3.009
|
||||
version = 2.0.3.011
|
||||
displayName = Calamity Mod
|
||||
homepage = https://discord.gg/calamity
|
||||
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, .github\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes, Effects\Compiler\*
|
||||
|
||||
Reference in new issue
Block a user