Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
f415d6723b
4 files changed
+13
-109
No files matched your search
+8
-91
@@ -77,7 +77,6 @@ namespace CalamityMod
|
||||
{
|
||||
public static IList<string> donatorList;
|
||||
public static List<int> projectileDestroyExceptionList;
|
||||
public static List<int> projectileMinionList;
|
||||
public static List<int> enemyImmunityList;
|
||||
public static List<int> confusionEnemyList;
|
||||
public static List<int> dungeonEnemyBuffList;
|
||||
@@ -104,11 +103,8 @@ namespace CalamityMod
|
||||
public static List<int> revengeanceLifeStealExceptionList;
|
||||
public static List<int> noRageWormSegmentList;
|
||||
public static List<int> needsDebuffIconDisplayList;
|
||||
public static List<int> trapProjectileList;
|
||||
public static List<int> scopedWeaponList;
|
||||
public static List<int> lavaFishList;
|
||||
public static List<int> highTestFishList;
|
||||
public static List<int> flamethrowerList;
|
||||
public static List<int> forceItemList;
|
||||
public static List<int> livingFireBlockList;
|
||||
public static List<int> amalgamBuffList;
|
||||
@@ -116,6 +112,7 @@ namespace CalamityMod
|
||||
public static List<int> MushroomWeaponIDs;
|
||||
public static List<int> MushroomProjectileIDs;
|
||||
|
||||
// Some of these lists of enemies are unused, but were difficult to create. Many of these common enemy types have a ton of variants.
|
||||
public static List<int> zombieList;
|
||||
public static List<int> demonEyeList;
|
||||
public static List<int> skeletonList;
|
||||
@@ -124,6 +121,7 @@ namespace CalamityMod
|
||||
public static List<int> mossHornetList;
|
||||
public static List<int> bossMinionList;
|
||||
public static List<int> minibossList;
|
||||
|
||||
public static List<int> pierceResistList;
|
||||
public static List<int> pierceResistExceptionList;
|
||||
|
||||
@@ -157,10 +155,6 @@ namespace CalamityMod
|
||||
|
||||
public static List<int> kamiDebuffColorImmuneList;
|
||||
|
||||
public static List<int> MinionsToNotResurrectList;
|
||||
public static List<int> ZeroMinionSlotExceptionList;
|
||||
public static List<int> DontCopyOriginalMinionAIList;
|
||||
|
||||
public static Dictionary<int, int> EncryptedSchematicIDRelationship;
|
||||
|
||||
public static List<int> DisabledSummonerNerfItems;
|
||||
@@ -825,30 +819,6 @@ namespace CalamityMod
|
||||
ProjectileType<ThanatosBeamStart>()
|
||||
};
|
||||
|
||||
projectileMinionList = new List<int>()
|
||||
{
|
||||
ProjectileID.PygmySpear,
|
||||
ProjectileID.UFOMinion,
|
||||
ProjectileID.UFOLaser,
|
||||
ProjectileID.StardustCellMinionShot,
|
||||
ProjectileID.MiniSharkron,
|
||||
ProjectileID.MiniRetinaLaser,
|
||||
ProjectileID.ImpFireball,
|
||||
ProjectileID.HornetStinger,
|
||||
ProjectileID.DD2FlameBurstTowerT1Shot,
|
||||
ProjectileID.DD2FlameBurstTowerT2Shot,
|
||||
ProjectileID.DD2FlameBurstTowerT3Shot,
|
||||
ProjectileID.DD2BallistraProj,
|
||||
ProjectileID.DD2ExplosiveTrapT1Explosion,
|
||||
ProjectileID.DD2ExplosiveTrapT2Explosion,
|
||||
ProjectileID.DD2ExplosiveTrapT3Explosion,
|
||||
ProjectileID.SpiderEgg,
|
||||
ProjectileID.BabySpider,
|
||||
ProjectileID.FrostBlastFriendly,
|
||||
ProjectileID.MoonlordTurretLaser,
|
||||
ProjectileID.RainbowCrystalExplosion
|
||||
};
|
||||
|
||||
enemyImmunityList = new List<int>()
|
||||
{
|
||||
NPCID.KingSlime,
|
||||
@@ -1226,8 +1196,8 @@ namespace CalamityMod
|
||||
ItemID.Swordfish,
|
||||
ItemID.TheRottedFork,
|
||||
ItemID.TitaniumTrident,
|
||||
ItemID.Trident
|
||||
//ItemID.StormSpear
|
||||
ItemID.Trident,
|
||||
ItemID.ThunderSpear
|
||||
};
|
||||
|
||||
pumpkinMoonBuffList = new List<int>()
|
||||
@@ -1507,17 +1477,7 @@ namespace CalamityMod
|
||||
NPCID.WallofFleshEye
|
||||
};
|
||||
|
||||
trapProjectileList = new List<int>()
|
||||
{
|
||||
ProjectileID.PoisonDartTrap,
|
||||
ProjectileID.SpikyBallTrap,
|
||||
ProjectileID.SpearTrap,
|
||||
ProjectileID.FlamethrowerTrap,
|
||||
ProjectileID.FlamesTrap,
|
||||
ProjectileID.PoisonDart,
|
||||
ProjectileID.GeyserTrap
|
||||
};
|
||||
|
||||
// TODO -- override HoldItem => Player.scope = true; on these items
|
||||
scopedWeaponList = new List<int>()
|
||||
{
|
||||
ItemType<AntiMaterielRifle>(),
|
||||
@@ -1535,12 +1495,6 @@ namespace CalamityMod
|
||||
ItemType<TheDevourerofCods>()
|
||||
};
|
||||
|
||||
flamethrowerList = new List<int>()
|
||||
{
|
||||
ItemType<DragoonDrizzlefish>(),
|
||||
ItemType<BloodBoiler>()
|
||||
};
|
||||
|
||||
forceItemList = new List<int>()
|
||||
{
|
||||
ItemType<SubmarineShocker>(),
|
||||
@@ -2700,35 +2654,6 @@ namespace CalamityMod
|
||||
NPCType<OldDuke>()
|
||||
};
|
||||
|
||||
MinionsToNotResurrectList = new List<int>()
|
||||
{
|
||||
ProjectileID.StardustDragon1,
|
||||
ProjectileID.StardustDragon2,
|
||||
ProjectileID.StardustDragon3,
|
||||
ProjectileID.StardustDragon4,
|
||||
ProjectileType<DeathstareEyeball>(),
|
||||
ProjectileType<MechwormHead>(),
|
||||
ProjectileType<MechwormBody>(),
|
||||
ProjectileType<MechwormTail>(),
|
||||
ProjectileType<EndoHydraHead>(),
|
||||
ProjectileType<EndoHydraBody>(),
|
||||
ProjectileType<SeekerSummonProj>(),
|
||||
ProjectileType<SepulcherMinion>(),
|
||||
ProjectileType<MountedScannerLaser>()
|
||||
};
|
||||
|
||||
ZeroMinionSlotExceptionList = new List<int>()
|
||||
{
|
||||
ProjectileID.StardustDragon1,
|
||||
ProjectileType<MechwormHead>(),
|
||||
ProjectileType<EndoHydraBody>()
|
||||
};
|
||||
|
||||
DontCopyOriginalMinionAIList = new List<int>()
|
||||
{
|
||||
ProjectileType<GammaHead>()
|
||||
};
|
||||
|
||||
EncryptedSchematicIDRelationship = new Dictionary<int, int>()
|
||||
{
|
||||
[1] = ItemType<EncryptedSchematicPlanetoid>(),
|
||||
@@ -2745,7 +2670,6 @@ namespace CalamityMod
|
||||
{
|
||||
donatorList = null;
|
||||
projectileDestroyExceptionList = null;
|
||||
projectileMinionList = null;
|
||||
enemyImmunityList = null;
|
||||
confusionEnemyList = null;
|
||||
dungeonEnemyBuffList = null;
|
||||
@@ -2772,15 +2696,12 @@ namespace CalamityMod
|
||||
revengeanceLifeStealExceptionList = null;
|
||||
noRageWormSegmentList = null;
|
||||
needsDebuffIconDisplayList = null;
|
||||
trapProjectileList = null;
|
||||
scopedWeaponList = null;
|
||||
lavaFishList = null;
|
||||
highTestFishList = null;
|
||||
flamethrowerList = null;
|
||||
forceItemList = null;
|
||||
livingFireBlockList = null;
|
||||
amalgamBuffList = null;
|
||||
persistentBuffList = null;
|
||||
amalgamBuffList = null;
|
||||
persistentBuffList = null;
|
||||
MushroomWeaponIDs = null;
|
||||
MushroomProjectileIDs = null;
|
||||
|
||||
@@ -2810,7 +2731,7 @@ namespace CalamityMod
|
||||
SkeletronPrimeIDs = null;
|
||||
StormWeaverIDs = null;
|
||||
RavagerIDs = null;
|
||||
GolemIDs = null;
|
||||
GolemIDs = null;
|
||||
BoundNPCIDs = null;
|
||||
GrenadeResistIDs = null;
|
||||
ZeroContactDamageNPCList = null;
|
||||
@@ -2827,10 +2748,6 @@ namespace CalamityMod
|
||||
|
||||
kamiDebuffColorImmuneList = null;
|
||||
|
||||
MinionsToNotResurrectList = null;
|
||||
ZeroMinionSlotExceptionList = null;
|
||||
DontCopyOriginalMinionAIList = null;
|
||||
|
||||
EncryptedSchematicIDRelationship = null;
|
||||
|
||||
DisabledSummonerNerfItems = null;
|
||||
|
||||
@@ -2394,19 +2394,6 @@ namespace CalamityMod
|
||||
}
|
||||
return eventActive;
|
||||
|
||||
case "ExcludeMinionsFromResurrection":
|
||||
// This assumes all arguments after the calling command name are projectile types.
|
||||
IEnumerable<object> secondaryArguments = args.Skip(1);
|
||||
if (secondaryArguments.Any(argument => !castID(argument, out _)))
|
||||
return new ArgumentException("ERROR: All arguments after the calling command to \"ExcludeMinionsFromResurrection\" must be int or short IDs.");
|
||||
|
||||
CalamityLists.MinionsToNotResurrectList.AddRange(secondaryArguments.Select(argument =>
|
||||
{
|
||||
castID(argument, out int id);
|
||||
return id;
|
||||
}));
|
||||
return null;
|
||||
|
||||
case "CreateEnchantment":
|
||||
case "RegisterEnchantment":
|
||||
EnchantmentManager.ConstructFromModcall(args.Skip(1));
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
Vector2 projectileVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center);
|
||||
Vector2 spawnOffset = npc.Center + projectileVelocity * 50f;
|
||||
|
||||
int dustType = shootPoisonSeed ? DustID.Plantera_Green : DustID.Plantera_Pink;
|
||||
int dustType = shootPoisonSeed ? 74 : 73;
|
||||
int dustSpawnBoxSize = shootThornBall ? 38 : 14;
|
||||
int dustAmount = shootThornBall ? 15 : 5;
|
||||
Vector2 dustVelocity = projectileVelocity * projectileSpeed;
|
||||
@@ -311,7 +311,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
Vector2 projectileVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center);
|
||||
Vector2 spawnOffset = npc.Center + projectileVelocity * 50f;
|
||||
|
||||
int dustType = DustID.Plantera_Pink;
|
||||
int dustType = 73;
|
||||
Vector2 dustVelocity = projectileVelocity * projectileSpeed;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
@@ -576,7 +576,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
Vector2 projectileVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center);
|
||||
Vector2 spawnOffset = npc.Center + projectileVelocity * 50f;
|
||||
|
||||
int dustType = shootPoisonSeed ? DustID.Plantera_Green : DustID.Plantera_Pink;
|
||||
int dustType = shootPoisonSeed ? 74 : 73;
|
||||
Vector2 dustVelocity = projectileVelocity * projectileSpeed;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
@@ -705,7 +705,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
Vector2 perturbedSpeed = projectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1)));
|
||||
Vector2 spawnOffset = npc.Center + perturbedSpeed * 50f;
|
||||
|
||||
int dustType = shootPinkSeed ? DustID.Plantera_Pink : DustID.Plantera_Green;
|
||||
int dustType = shootPinkSeed ? 73 : 74;
|
||||
Vector2 dustVelocity = perturbedSpeed * projectileSpeed;
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
author = Fabsol and the Dev Team
|
||||
version = 2.0.2.003
|
||||
version = 2.0.3.001
|
||||
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