diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs
index 3e3cb871df..22f2fc5672 100644
--- a/CalPlayer/CalamityPlayer.cs
+++ b/CalPlayer/CalamityPlayer.cs
@@ -155,7 +155,10 @@ namespace CalamityMod.CalPlayer
///
public bool blazingCursorVisuals = false;
public float blazingMouseAuraFade = 0f;
- /// General variable used for controlling how much screenshake this player is experiencing. Smoothly scales down over time.
+ ///
+ /// General variable used for controlling the strength of screenshake this player is experiencing. Measured in pixels of offset that can be applied to the screen.
+ /// When setting this, be sure to only set it if its current value is less than the value to set, to prevent overriding an ongoing stronger screenshake with a weaker one.
+ ///
public float GeneralScreenShakePower = 0f;
/// Set to true when this player receives the Brimstone Locus from speaking to the Brimstone Witch for the first time.
public bool GivenBrimstoneLocus = false;
@@ -472,7 +475,6 @@ namespace CalamityMod.CalPlayer
public bool bearPet = false;
public bool kendra = false;
public bool trashMan = false;
- public int trashManChest = -1;
public bool astrophage = false;
public bool flakPet = false;
public bool babyGhostBell = false;
@@ -639,16 +641,16 @@ namespace CalamityMod.CalPlayer
public bool spawnedPunchCard = false;
/// If true, the player has consumed Celestial Onion.
public bool extraAccessoryML = false;
+ /// If true, the player has consumed Comet Shard.
+ public bool cShard = false;
/// If true, the player has consumed Ethereal Core.
public bool eCore = false;
/// If true, the player has consumed Phantom Heart.
public bool pHeart = false;
- /// If true, the player has consumed Comet Shard.
- public bool cShard = false;
- /// If true, the player has consumed Miracle Fruit.
- public bool mFruit = false;
/// If true, the player has consumed Sanguine Tangerine.
public bool sTangerine = false;
+ /// If true, the player has consumed Miracle Fruit.
+ public bool mFruit = false;
/// If true, the player has consumed Tainted Cloudberry.
public bool tCloudberry = false;
/// If true, the player has consumed Sacred Strawberry.
@@ -731,7 +733,7 @@ namespace CalamityMod.CalPlayer
public int statisTimer = 0;
public bool nucleogenesis = false;
public bool nuclearFuelRod = false;
- public bool nCore = false;
+ public bool nebulousCore = false;
public bool deepDiver = false;
public bool abyssalDivingSuitPlates = false;
public int abyssalDivingSuitPlateHits = 0;
@@ -938,11 +940,12 @@ namespace CalamityMod.CalPlayer
///
/// Controls the state of Phantomic Artifact's Phantomic Regen boost.
/// When the heart is spawned, this variable is set to 1000. When the heart is touched, it is set to 720 and decrements every frame.
- /// Life regeneration is increased while between 600 and 720, with a 10 second cooldown afterwards when below 600.
+ /// Life regeneration is increased while between 600 and 720, with a 10 second cooldown afterwards represented by being below 600.
///
public int phantomicHeartRegen = 0;
public bool silvaWings = false;
public int silvaWingsLifeRegenTimer = 0;
+ /// General cooldown variable for spawning projectiles from wing bonus effects. Used by Soul of Cryogen, Harpy Wings, Tattered Fairy Wings, and Festive Wings.
public int wingProjectileCooldown = 0;
public bool RustyMedallionDroplets = false;
public bool MiniSwarmers = false;
@@ -1082,7 +1085,8 @@ namespace CalamityMod.CalPlayer
public int silvaMageCooldown = 0;
public bool silvaSummon = false;
public bool hasSilvaEffect = false;
- public static int silvaReviveDuration = 300;
+ /// Constant variable representing the duration of Silva armor's revive, in frames.
+ public const int silvaReviveDuration = 300;
public int silvaCountdown = silvaReviveDuration;
public bool auricSet = false;
public bool omegaBlueChestplate = false;
@@ -1098,7 +1102,7 @@ namespace CalamityMod.CalPlayer
public bool daedalusCrystal = false;
/// Hydrothermic armor's summoner set bonus minion.
public bool chaosSpirit = false;
- /// Demonshade armor's summoner set bonus minion.
+ /// Demonshade armor's set bonus minion.
public bool redDevil = false;
public bool GemTechSet = false;
/// Calamity's Cobalt armor set bonus; increases damage and crit chance based on how fast the player is moving.
@@ -1209,8 +1213,11 @@ namespace CalamityMod.CalPlayer
public bool corrEffigy = false;
public bool crimEffigy = false;
public bool decayEffigy = false;
+ /// Reaver Rage buff.
public bool rRage = false;
+ /// Tarra Life buff.
public bool tRegen = false;
+ /// Empyrean Wrath buff.
public bool xWrath = false;
public bool graxDefense = false;
public bool encased = false;
@@ -1270,7 +1277,12 @@ namespace CalamityMod.CalPlayer
public bool pinkCandle = false;
public double pinkCandleHealFraction = 0D;
public bool yellowCandle = false;
+ /// If true, the player has consumed Odd Mushroom. Controls drawing its rainbow fake clones of NPCs and projectiles.
public bool trippy = false;
+ ///
+ /// Used to control the number and position of Odd Mushroom's fake clones. There are three levels of severity.
+ /// The first draws 4 clones in diagonals. The second draws 12 clones, 4 on diagonals and the other 8 surrounding them. The third draws 16 clones, arranged entirely around the player.
+ ///
public int trippyLevel = 1;
public bool amidiasBlessing = false;
public bool bloodfinBoost = false;
@@ -1996,7 +2008,7 @@ namespace CalamityMod.CalPlayer
dodgeScarf = false;
evasionScarf = false;
- nCore = false;
+ nebulousCore = false;
godSlayer = false;
godSlayerDamage = false;
diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs
index f93a99d6ea..80aa9cac49 100644
--- a/CalPlayer/CalamityPlayerHitHurt.cs
+++ b/CalPlayer/CalamityPlayerHitHurt.cs
@@ -251,7 +251,7 @@ namespace CalamityMod.CalPlayer
}
}
- if (nCore && !Player.HasCooldown(Cooldowns.NebulousCore.ID))
+ if (nebulousCore && !Player.HasCooldown(Cooldowns.NebulousCore.ID))
{
SoundEngine.PlaySound(SoundID.Item67, Player.Center);
diff --git a/Items/Accessories/NebulousCore.cs b/Items/Accessories/NebulousCore.cs
index 277820b7da..fe23201469 100644
--- a/Items/Accessories/NebulousCore.cs
+++ b/Items/Accessories/NebulousCore.cs
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
- modPlayer.nCore = true;
+ modPlayer.nebulousCore = true;
player.GetDamage() += 0.1f;
// Spawn nebula stars
diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs
index b322bfc14c..b74e52e643 100644
--- a/NPCs/CalamityGlobalNPC.cs
+++ b/NPCs/CalamityGlobalNPC.cs
@@ -120,13 +120,30 @@ namespace CalamityMod.NPCs
public int KillTime { get; set; } = 0;
- // Debuff Vulnerabilities
- // null = neutral, true = vulnerable, false = resistant
- // neutral = 100% effective, vulnerable = 400% effective DoT and 200% effective non-DoT effects (within reason, some aren't exactly 200% more effective), resistant = 50% effective
+ ///
+ /// Controls the effectiveness of heat debuffs against this NPC.
+ /// If true, they are vulnerable and debuffs are 200% effective. If false, they are resistant and debuffs are 50% effective. If null, they are neutral and suffer standard effects.
+ ///
public bool? VulnerableToHeat = null;
+ ///
+ /// Controls the effectiveness of cold debuffs against this NPC.
+ /// If true, they are vulnerable and debuffs are 200% effective. If false, they are resistant and debuffs are 50% effective. If null, they are neutral and suffer standard effects.
+ ///
public bool? VulnerableToCold = null;
+ ///
+ /// Controls the effectiveness of sickness debuffs against this NPC.
+ /// If true, they are vulnerable and debuffs are 200% effective. If false, they are resistant and debuffs are 50% effective. If null, they are neutral and suffer standard effects.
+ ///
public bool? VulnerableToSickness = null;
+ ///
+ /// Controls the effectiveness of electricity debuffs against this NPC.
+ /// If true, they are vulnerable and debuffs are 200% effective. If false, they are resistant and debuffs are 50% effective. If null, they are neutral and suffer standard effects.
+ ///
public bool? VulnerableToElectricity = null;
+ ///
+ /// Controls the effectiveness of water debuffs against this NPC.
+ /// If true, they are vulnerable and debuffs are 200% effective. If false, they are resistant and debuffs are 50% effective. If null, they are neutral and suffer standard effects.
+ ///
public bool? VulnerableToWater = null;
public const double BaseDoTDamageMult = 1D;
@@ -154,11 +171,11 @@ namespace CalamityMod.NPCs
public bool IncreasedSicknessAndWaterEffects_EvergreenGin = false;
public bool IncreasedSicknessAndWaterEffects_CorrosiveSpine = false;
- /// Constant representing the grace period, in frames, in which a boss can remain outside of its native biome before enraging.
+ /// Constant variable representing the grace period, in frames, in which a boss can remain outside of its native biome before enraging.
public const int biomeEnrageTimerMax = 300;
///
- /// Variable for certain worm bosses used to prevent them from moving too fast upon swapping phases while far away from their target.
+ /// Variable for worm bosses used to prevent them from moving too fast upon swapping phases while far away from their target.
/// Currently only used by DoG.
///
public float velocityPriorToPhaseSwap = 0f;