From c8d87b5ef034a77f2a4c4a1ea22845590c667844 Mon Sep 17 00:00:00 2001
From: CongratsIsTrash <1q2w3e4dasd@gmail.com>
Date: Sun, 8 Dec 2024 19:52:49 -0500
Subject: [PATCH] Several CalPlayer summary comments
Also removed several unused variables, and fixed Pwnagehammer using Stellar Contempt's variable instead of its own
---
CalPlayer/CalamityPlayer.cs | 393 ++++++++++++++----
CalPlayer/CalamityPlayerHitHurt.cs | 2 -
CalPlayer/CalamityPlayerMiscEffects.cs | 8 +-
CalPlayer/CalamityPlayerOnHit.cs | 2 +-
Items/Accessories/StatMeter.cs | 4 -
Items/CalamityGlobalItem.cs | 4 +-
Items/Weapons/Rogue/RogueWeapon.cs | 2 -
.../Mods.CalamityMod.Items.Accessories.hjson | 1 -
Projectiles/CalamityGlobalProjectile.cs | 2 +-
Projectiles/Melee/PwnagehammerProj.cs | 2 +-
10 files changed, 320 insertions(+), 100 deletions(-)
diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs
index c6b8527e2b..bfc432efb7 100644
--- a/CalPlayer/CalamityPlayer.cs
+++ b/CalPlayer/CalamityPlayer.cs
@@ -77,20 +77,30 @@ namespace CalamityMod.CalPlayer
#region Variables
#region No Category
+ /// If true, there is a boss NPC active in the world. Primary bool for checking effects that only occur if a boss is alive.
public static bool areThereAnyDamnBosses = false;
+ /// If true, there is an event actively occuring near the player. Solely used for preventing Silva Revive's cooldown from decreasing.
public static bool areThereAnyDamnEvents = false;
public float calamityBonusLuck = 0f;
+ /// Custom variable for tracking if the player has Potion Sickness. Used for adding Potion Sickness to the Cooldown Rack.
public bool potionSick = false;
+ /// Custom variable for tracking how long the player has had Potion Sickness. Solely used for triggering the aura effects of Life Jelly and its upgrades.
public int timePotionSick;
public bool drawBossHPBar = true;
public float stealthUIAlpha = 1f;
public float SulphWaterUIOpacity = 1f;
+ /// Used to determine whether or not extra information should be displayed on the Boss Health Bar.
public bool shouldDrawSmallText = true;
+ /// Used by The Evolution to store the type of the projectile that hit the player when its reflect is triggered.
public int projTypeJustHitBy;
+ /// Unused variable, formerly used for displaying special SCal dialogue.
public int sCalDeathCount = 0;
+ ///
public int sCalKillCount = 0;
public int actualMaxLife = 0;
+ /// Constant variable used for how long Chaos State is inflicted by Rod of Discord while a boss is alive.
public static int chaosStateDuration = 900;
+ /// Constant variable used for how long Chaos State is inflicted by Normality Relocator while a boss is alive.
public static int chaosStateDuration_NR = 1200;
public bool killSpikyBalls = false;
public float KameiTrailXScale = 0.1f;
@@ -98,22 +108,38 @@ namespace CalamityMod.CalPlayer
public Vector2[] OldPositions = new Vector2[4];
public double contactDamageReduction = 0D;
public double projectileDamageReduction = 0D;
- public const float projectileMeleeWeaponMeleeSpeedMultiplier = 0f;
+ ///
+ /// How many stacks of Evil Smasher's boost the player has. This increases the weapon's damage, use speed, and knockback.
+ /// Getting hit decreases this by 1. Switching to a different item resets this to 0.
+ ///
public int evilSmasherBoost = 0;
+ /// Cooldown variable which prevents using Burning Sea during its "burn-out" mechanic.
public int burningSeaBurnOut = 0;
public int hellbornShots = 0;
public int searedPanCounter = 0;
public int searedPanTimer = 0;
+ /// Used to get around the hardcoded Potion Sickness duration to allow Hadal Stew's reduced duration.
public int potionTimer = 0;
public bool cirrusDress = false;
+ /// If set to true, prevents all player dashes. Used by Ball and Chain and Stygian Shield.
public bool blockAllDashes = false;
+ /// Used by Flamsteed Ring to reset the player's hitbox size after dismounting.
public bool resetHeightandWidth = false;
+ /// If set to true, completely disables ALL life regeneration effects. Used by Omega Blue armor.
public bool noLifeRegen = false;
public bool reducedDaybrokenDamage = false;
public bool reducedNightwitherDamage = false;
public float rangedAmmoCost = 1f;
public float healingPotionMultiplier = 1f;
+ ///
+ /// Tracks whether or not the player is currently holding Gael's Greatsword.
+ /// Used to toggle the ability to use its unique Rage attack.
+ ///
public bool heldGaelsLastFrame = false;
+ ///
+ /// Tracks whether or not the player currently has Draedon's Heart equipped.
+ /// Used to reset Adrenaline when (un)equipped to prevent exploits.
+ ///
internal bool hadNanomachinesLastFrame = false;
public bool combHair;
public bool disableVoodooSpawns = false;
@@ -121,19 +147,36 @@ namespace CalamityMod.CalPlayer
public bool disableHiveCystSpawns = false;
public bool disableNaturalScourgeSpawns = false;
public bool disableAnahitaSpawns = false;
+ /// Used for toggling Calamity's blazing cursor effect.
public bool blazingCursorDamage = false;
+ ///
+ ///
+ /// This variable is enabled if the accessory is in vanity, granting only the visuals.
+ ///
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.
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;
public DoGCartSegment[] DoGCartSegments = new DoGCartSegment[DoGCartMount.SegmentCount];
public float SmoothenedMinecartRotation;
+ ///
+ /// Set to true when a weapon performs a lunge attack, such as Biome Blade's Pure Clarity attunement.
+ /// Massively increases the player's max fall speed, and prevents fall damage.
+ ///
public bool LungingDown = false;
+ ///
+ /// Variable set before the player is teleported to the Underworld for Wall of Flesh in Boss Rush.
+ /// Used to teleport them back to their previous position after Wall of Flesh is defeated.
+ ///
public Vector2? BossRushReturnPosition = null;
public float moveSpeedBonus = 0f;
public int momentumCapacitorTime = 0;
+ /// A multiplier on the player's movement speed applied while using Momentum Capacitor.
public float momentumCapacitorBoost = 0f;
+ /// Cooldown variable for spawning Plague Tainted SMG's drones from left-click bullets.
public int plagueTaintedSMGDroneCooldown = 0;
#endregion
@@ -202,54 +245,93 @@ namespace CalamityMod.CalPlayer
#region Timer and Counter
public int gaelSwipes = 0;
public int arsenalCooldown = 0;
+ ///
+ /// Tracks Dragoon Drizzlefish's "gel feed" mechanic in Get fixed boi.
+ /// Consuming Gel adds 1 to this counter, up to a maximum of 6, and using the weapon has a random chance to decrement the counter.
+ /// The weapon's damage is multiplied by the value in this counter.
+ ///
public int dragoonDrizzlefishGelBoost = 1;
public int deadSunCounter = 6;
public int DragonsBreathAudioCooldown = 0;
public int DragonsBreathAudioCooldown2 = 0;
public int PhotoAudioCooldown = 0;
public int PhotoTimer = 90;
+ /// Cooldown variable used to add a delay between Anahita's Arpeggio uses.
public int arpeggioCooldown = 0;
+ ///
+ /// If true, this player's Brittle Star Staff minions are in their orbiting mode.
+ /// While in this mode, they orbit around the player, do not break on hits, and increase defense.
+ ///
public bool brittleStarBuffMode = false;
+ /// If set to true, initiates the dash ability of Speed Blaster or Superradiant Slaughterer.
public bool sBlasterDashActivated = false;
public int saharaSlicersBolts = 0;
public int oceanCrestTimer = 0;
+ /// Pwnagehammer's hit counter, used to track when to spawn its empowered hammer.
public int Holyhammer = 0;
+ /// Fallen Paladin's Hammer's hit counter, used to track when to spawn its empowered hammer.
public int PHAThammer = 0;
+ /// Stellar Contempt's hit counter, used to track when to spawn its empowered hammer.
public int StellarHammer = 0;
+ /// Galaxy Smasher's hit counter, used to track when to spawn its empowered hammer.
public int GalaxyHammer = 0;
+ /// Variable used to apply Ontological Despoiler's nerfs when continuously using a single firing mode.
public bool despoilerNerf = false;
public int amputatorBuff = 0;
public int rOfResilienceCooldown = 0;
public int rOfResilienceEffect = 0;
public int rOfResilienceOrbitOffset = 0;
+ ///
+ /// Variable which tracks how many shots Norfleet has fired. Used to determine when to recharge.
+ /// Also used to trigger its "cheater" easter egg when attempting to fire more than 3 consecutive shots.
+ ///
public int NorfleetCounter = 0;
public int hideOfDeusMeleeBoostTimer = 0;
+ ///
+ /// The player's alcohol level. Increased by 1 for each alcohol the player has drank, 2 for Everclear.
+ /// Is this value is greater than 3, the player is inflicted with Alcohol Poisoning.
+ ///
public int alcoholPoisonLevel = 0;
- public int modStealthTimer;
public int dashTimeMod;
+ ///
+ /// Timer variable which tracks how long the player has spent outside of Providence's border radius, in frames.
+ /// Used to scale the damage of the Holy Inferno debuff.
+ ///
public int hInfernoBoost = 0;
public int packetTimer = 0;
public int navyRodAuraTimer = 0;
- public int brimLoreInfernoTimer = 0;
+ /// Timer variable used to time when Hydrothermic armor's set bonus inferno ring deals damage to targets.
+ public int hydrothermicInfernoTimer = 0;
+ /// Timer variable used to time when Tarragon armor's set bonus life aura deals damage to targets.
public int tarraLifeAuraTimer = 0;
public int bloodflareHeartTimer = 300;
+ /// Counter variable used to determine when to spawn Dragon Rage's fireballs. Fireballs are spawned after 10 hits.
public int dragonRageHits = 0;
+ /// Cooldown variable for Dragon Rage's fireball spawning to prevent spamming projectiles when hitting multiple enemies simultaneously.
public int dragonRageCooldown = 0;
- public float modStealth = 1f;
public float aquaticBoostMax = 10000f;
+ ///
+ /// Counter variable which controls Aquatic Emblem's stat boosts while underwater.
+ /// This counter starts at , and is decremented by 2 for every frame the player remains underwater, reaching maximum boosts when it hits 0.
+ ///
public float aquaticBoost = 0f;
public int galileoCooldown = 0;
- public int soundCooldown = 0;
+ /// Used to track Prideful Hunter's Planar Ripper's movement speed boost, along with its visual effects.
public int planarSpeedBoost = 0;
public int profanedSoulWeaponUsage = 0;
public int profanedSoulWeaponType = 0;
- public int hurtSoundTimer = 0;
+ /// Counter variable used to track how many hits have been landed with The Dance of Light, for the purposes of triggering its blinding flash attack.
public int danceOfLightCharge = 0;
+ /// Cooldown variable used to prevent DoG from spamming combat text messages when hitting the player.
public int dogTextCooldown = 0;
public float auralisStealthCounter = 0f;
public int auralisAuroraCounter = 0;
public int auralisAuroraCooldown = 0;
public int auralisAurora = 0;
+ ///
+ /// Counter variable used to track Necro armor's set bonus temporary revive.
+ /// When the player receives fatal damage, this value is set to 0, and then increments on each frame.
+ ///
public int necroReviveCounter = -1;
public int hideOfDeusTimer = 0;
public int murasamaHitCooldown = 0;
@@ -277,6 +359,9 @@ namespace CalamityMod.CalPlayer
#endregion
#region Sound
+ /// General sound cooldown variable. Used by The Microwave and Gastric Belcher Staff.
+ public int soundCooldown = 0;
+ public int hurtSoundTimer = 0;
public bool playRogueStealthSound = false;
public int fullRageSoundCountdownTimer = 0;
private const int FullRageSoundDelay = 300; // The "Rage full" sound cannot play for 5 seconds after Rage has filled. This stops it from jittering.
@@ -304,25 +389,52 @@ namespace CalamityMod.CalPlayer
#endregion
#region Rogue
+ /// The player's current rogue stealth value.
+ /// Note that the player's displayed stealth value is 100x the internal value. For example, a value of 0.1f means having 10 stealth.
+ ///
public float rogueStealth = 0f;
+ ///
+ /// The player's maximum rogue stealth value, from armor and accessories.
+ /// Note that the player's displayed stealth value is 100x the internal value. For example, a value of 0.1f means having 10 max stealth.
+ ///
public float rogueStealthMax = 0f;
+ /// A multiplier to the player's stealth generation when standing still.
public float stealthGenStandstill = 1f;
+ /// A multiplier to the player's stealth generation when moving.
public float stealthGenMoving = 1f;
public int flatStealthLossReduction = 0;
public const float StealthAccelerationCap = 1.5f;
public float stealthAcceleration = 1f;
public bool stealthStrikeThisFrame = false;
+ ///
+ /// If true, stealth strikes only require 50% of the player's max stealth to perform.
+ /// Used by Dark Matter Sheath and Eclipse Mirror.
+ ///
public bool stealthStrikeHalfCost = false;
+ ///
+ /// If true, stealth strikes only require 75% of the player's max stealth to perform.
+ /// Used by Ruin Medallion.
+ ///
public bool stealthStrike75Cost = false;
+ ///
+ /// If true, stealth strikes only require 85% of the player's max stealth to perform.
+ /// Used by Coin of Deceit.
+ ///
public bool stealthStrike85Cost = false;
+ /// If true, this player is wearing a rogue or all-class armor set. This bool is required in order to use rogue stealth.
public bool wearingRogueArmor = false;
+ /// The sum of the player's stealth generation boosts from accessory modifiers.
public float accStealthGenBoost = 0f;
// TODO -- Stealth needs to be its own damage class so that stealth bonuses only apply to stealth strikes
- public float stealthDamage = 0f; // This is extra Rogue Damage that is only added for stealth strikes.
+ ///
+ /// The extra damage boost for rogue stealth strikes.
+ /// This is obtained from a formula derived from the player's current stealth, the weapon's use time, and the player's stealth generation boosts.
+ ///
+ public float stealthDamage = 0f;
+ /// An additional damage multiplier applied to rogue stealth strikes. Used by Filthy Glove and its upgrades, and Rotten Dogtooth.
public double bonusStealthDamage = 0;
public float rogueVelocity = 1f;
- public float rogueAmmoCost = 1f;
#endregion
#region Mount
@@ -332,6 +444,10 @@ namespace CalamityMod.CalPlayer
public bool crysthamyr = false;
public bool ExoChair = false;
public AndromedaPlayerState andromedaState;
+ ///
+ /// Andromeda Cripple is inflicted on the player if they dismount Flamsteed Ring while a boss is alive.
+ /// This severely slows movement and prevents the weapon from being used for its duration.
+ ///
public int andromedaCripple;
#endregion
@@ -369,77 +485,106 @@ namespace CalamityMod.CalPlayer
#endregion
#region Rage
+ ///
+ /// If true, enables the Rage mechanic. This is normally Revengeance-exclusive, but can also be enabled by Shattered Community.
+ /// Rage is gained from staying close to enemies, or passively by using certain accessories.
+ /// When the bar is filled, Rage can be activated to provide a small damage boost over a longer duration.
+ ///
public bool RageEnabled => CalamityWorld.revenge || shatteredCommunity;
public bool rageModeActive = false;
+ /// The player's current Rage level. Expressed as a percentage of maximum Rage.
public float rage = 0f;
public float rageMax = 100f; // 0 to 100% by default
+ ///
+ /// The duration which Rage Mode lasts.
+ /// Starts at 9 seconds, and is increased by 1 second for each upgrade, up to a maximum of 12 seconds.
+ ///
public int RageDuration = BalancingConstants.DefaultRageDuration;
+ /// Used by Shattered Community as a short cooldown for gaining Rage when taking damage.
public int rageGainCooldown = 0;
+ ///
+ /// Counter variable used as a delay before the player starts losing Rage.
+ /// The player will start losing Rage if they do not generate Rage, hit an enemy, or take damage for 10 seconds.
+ ///
public int rageCombatFrames = 0;
public float RageDamageBoost = BalancingConstants.DefaultRageDamageBoost;
#endregion
#region Adrenaline
+ ///
+ /// If true, enables the Adrenaline mechanic. This is normally Revengeance-exclusive, but can also be enabled by Draedon's Heart.
+ /// Adrenaline is gained by avoiding taking damage while a boss is alive.
+ /// When the bar is filled, Adrenaline can be activated to provide a large damage boost over a short duration.
+ ///
public bool AdrenalineEnabled => CalamityWorld.revenge || draedonsHeart;
public bool adrenalineModeActive = false;
public bool AdrenalineTrail = false;
+ /// The player's current Adrenaline level. Expressed as a percentage of maximum Adrenaline.
public float adrenaline = 0f;
public float adrenalineMax = 100f; // 0 to 100% by default
+ /// Used as a short cooldown when the player takes damage before Adrenaline can begin charging again.
public int adrenalinePauseTimer = 0;
+ /// Constant variable representing the duration which Adrenaline Mode lasts.
public int AdrenalineDuration = CalamityUtils.SecondsToFrames(5);
+ /// Constant variable representing the duration it takes to fully charge Adrenaline.
public int AdrenalineChargeTime = CalamityUtils.SecondsToFrames(30);
+ /// Constant variable representing the duration it takes for Adrenaline to empty if no boss is alive.
public int AdrenalineFadeTime = CalamityUtils.SecondsToFrames(2);
#endregion
#region Defense Damage
- // Ratio at which mitigated damage is converted into defense damage.
- // This is a significant rework, so the ratio is much higher than the previous 0.1 / 10%.
- // The net difference between incoming damage and final taken damage is what is multiplied by this ratio.
- //
- // Example: You have 200 defense and 25% DR and get hit for 576, on Expert.
- //
- // Incoming damage = 576
- // Defense reduction = 0.75 * 200 = 150
- // Damage after defense = 426
- // DR reduction = 0.25 * 426 = 106.5
- // Damage after DR = 319.5 (rounds down to 319)
- //
- // Net Difference = 576 - 319 = 257
- // Defense Damage = 257 * 0.3333 = 85.6581 (rounds up to 86)
- //
- // The player then loses 86 defense.
- // DR is lost according to the ratio of defense lost versus total defense.
- // In this case, that ratio is 86 / 200 = 0.43.
- // The player loses 0.43 * 0.25 = 10.75% DR.
+ ///
+ /// Ratio at which mitigated damage is converted into defense damage.
+ /// The net difference between incoming damage and final taken damage is what is multiplied by this ratio.
+ ///
+ /// For example, if the player has 200 defense and 25% DR and gets hit for 576 damage, on Expert:
+ ///
+ /// Incoming damage = 576
+ /// Defense reduction = 0.75 * 200 = 150
+ /// Damage after defense = 426
+ /// DR reduction = 0.25 * 426 = 106.5
+ /// Damage after DR = 319.5 (rounds down to 319)
+ ///
+ /// Net Difference = 576 - 319 = 257
+ /// Defense Damage = 257 * 0.3333 = 85.6581 (rounds up to 86)
+ ///
+ /// The player then loses 86 defense.
+ /// DR is lost according to the ratio of defense lost versus total defense.
+ /// In this case, that ratio is 86 / 200 = 0.43. The player loses 0.43 * 0.25 = 10.75% DR.
+ ///
public double defenseDamageRatio = BalancingConstants.DefaultDefenseDamageRatio;
- // Current effect of defense damage, calculated as total defense damage lerped to zero over the recovery time.
+ /// Current effect of defense damage, calculated as total defense damage lerped to zero over the recovery time.
public int CurrentDefenseDamage => (int)(totalDefenseDamage * ((float)defenseDamageRecoveryFrames / totalDefenseDamageRecoveryFrames));
- // Total defense damage inflicted. This number keeps increasing if the player is repeatedly hit during the recovery period.
+ /// Total defense damage inflicted. This number keeps increasing if the player is repeatedly hit during the recovery period.
internal int totalDefenseDamage = 0;
- // Defense damage from a single hit recovers in 60 frames, no matter how big the hit was.
- // If you get hit AGAIN before you have fully recovered, 60 more frames are added to your recovery timer!
+ ///
+ /// Defense damage from a single hit recovers in 60 frames, no matter how big the hit was.
+ /// If you get hit AGAIN before you have fully recovered, 60 more frames are added to your recovery timer.
+ ///
internal const int DefenseDamageBaseRecoveryTime = 60;
-
- // The maximum possible recovery time is 15 seconds. This is to prevent annoyance where godmode defense damage never goes away.
+ ///
+ /// The maximum possible recovery time is 15 seconds.
+ /// This is to prevent annoyance where godmode defense damage never goes away.
+ ///
internal const int DefenseDamageMaxRecoveryTime = 900;
-
- // How many frames the player will continue to be recovering from defense damage.
+ /// How many frames the player will continue to be recovering from defense damage.
internal int defenseDamageRecoveryFrames = 0;
- // The total timer of defense damage recovery that the player is currently suffering from.
+ /// The total timer of defense damage recovery that the player is currently suffering from.
internal int totalDefenseDamageRecoveryFrames = DefenseDamageBaseRecoveryTime;
- // Defense damage does not start recovering for a certain number of frames after iframes end.
+ /// The number of frames after immunity frames end before defense damage can start recovering.
internal const int DefenseDamageRecoveryDelay = 10;
-
- // The current timer for how long the player must wait before defense damage begins recovering.
+ /// The current timer for how long the player must wait before defense damage begins recovering.
internal int defenseDamageDelayFrames = 0;
- // Temporary bool for whether the current instance of incoming damage to the player is one that inflicts defense damage.
- // Bloodflare Core ignores this and makes every single instance of incoming damage apply defense damage.
+ ///
+ /// Temporary bool for whether the current instance of incoming damage to the player is one that inflicts defense damage.
+ /// Bloodflare Core ignores this and makes every single instance of incoming damage apply defense damage.
+ ///
public bool nextHitDealsDefenseDamage = false;
#endregion
@@ -464,7 +609,7 @@ namespace CalamityMod.CalPlayer
internal float lunicCorpsShieldPartialRechargeProgress = 0f;
internal bool playedLunicCorpsShieldSound = false;
- //Profaned soul shield applies to psa and psc, with differing max hps for each
+ // Profaned soul shield applies to psa and psc, with differing max hps for each
public int pSoulShieldDurability = 0;
public bool pSoulShieldVisible = false;
internal bool playedProfanedSoulShieldSound = false;
@@ -477,30 +622,51 @@ namespace CalamityMod.CalPlayer
#endregion
#region Abyss
+ /// The amount of breath lost on each tick while in the Abyss.
public float abyssBreathLossStat = 0;
+ /// The rate at which breath is lost while in the Abyss.
public float abyssBreathLossRateStat = 0;
+ /// The rate at which health is decreased after running out of breath while in the Abyss.
public int abyssLifeLostAtZeroBreathStat = 0;
+ /// The amount which defense is reduced while in the Abyss.
public int abyssDefenseLossStat = 0;
#endregion
#region Permanent Buff
- public bool spawnedPunchCard = false; // not exactly a buff, but is once per player permanent
+ /// If true, the player has spawned in Punch Card through its one-time chat easter egg.
+ public bool spawnedPunchCard = false;
+ /// If true, the player has consumed Celestial Onion.
public bool extraAccessoryML = 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 Tainted Cloudberry.
public bool tCloudberry = false;
+ /// If true, the player has consumed Sacred Strawberry.
public bool sStrawberry = false;
+ /// If true, the player has consumed Nimble Bounder.
public bool nimbleBounderBoost = false;
public bool revJamDrop = false;
+ /// If true, the player has consumed Mushroom Plasma Root.
public bool rageBoostOne = false;
+ /// If true, the player has consumed Infernal Blood.
public bool rageBoostTwo = false;
+ /// If true, the player has consumed Red Lightning Container.
public bool rageBoostThree = false;
+ /// If true, the player has consumed Electrolyte Gel Pack.
public bool adrenalineBoostOne = false;
+ /// If true, the player has consumed Starlight Fuel Cell.
public bool adrenalineBoostTwo = false;
+ /// If true, the player has consumed Ectoheart.
public bool adrenalineBoostThree = false;
+ /// Used to heal the player to full health on respawn.
public bool healToFull = false;
#endregion
@@ -515,6 +681,7 @@ namespace CalamityMod.CalPlayer
public bool theBee = false;
public bool arcFlashRing = false;
public bool arcFlashRingVisual = false;
+ /// Used to prevent dodges from triggering The Bee's full health damage reduction cooldown.
public bool shouldTriggerBeeCooldown = false;
public int theBeeCooldown = 0;
public bool alluringBait = false;
@@ -528,6 +695,7 @@ namespace CalamityMod.CalPlayer
public bool stressPills = false;
public bool laudanum = false;
public bool heartOfDarkness = false;
+ /// Used to buff the Profaned Guardian Relic drops while using Profaned Soul Crystal.
public bool profanedSoulRelicBuff = false;
public bool draedonsHeart = false;
public bool vexation = false;
@@ -545,12 +713,19 @@ namespace CalamityMod.CalPlayer
public bool ascendantTrail = false;
public bool frozenWingsCold = false;
public bool flameWingsHeat = false;
+ /// Used to toggle dust spawned while swinging, through accessory visibility.
public bool magmaStoneVisuals = true;
public bool eGauntlet = false;
- public bool eGauntletVisuals = true; // Used to control dust spawned when swinging
- public int gloveLevel = 0; // Used to prevent glove stacking
- public bool alreadyHasFrogLeg = false; // Used to prevent Frog Leg tinker stacking
+ ///
+ public bool eGauntletVisuals = true;
+ ///
+ /// Used to prevent melee speed stacking with Feral Claws and its upgrades.
+ /// Feral Claws = 1, Power Glove = 2, Mechanical Glove = 3, Fire Gauntlet = 4, Elemental Gauntlet = 5
+ ///
+ public int gloveLevel = 0;
+ public bool alreadyHasFrogLeg = false; // Unused, intended to prevent Frog Leg tinker stacking
public bool eTalisman = false;
+ /// Counter variable used for spawning Statis' Void Sash's scythes when dashing.
public int statisTimer = 0;
public bool nucleogenesis = false;
public bool nuclearFuelRod = false;
@@ -574,11 +749,18 @@ namespace CalamityMod.CalPlayer
public bool honeyDewHalveDebuffs = false;
public bool livingDewHalveDebuffs = false;
public int jewelBonusDefense = 0;
- public float pulseCounter = 0; // Toxic Heart
- public float pulseRate = 1; // Toxic Heart
+ ///
+ /// Counter variable for spawning Toxic Heart's pulses.
+ /// Incremented on every frame by , and when it reaches 420, it is reset and a pulse is spawned.
+ ///
+ public float pulseCounter = 0;
+ ///
+ /// The rate at which is incremented, and thus how often Toxic Heart's pulses are spawned.
+ /// This value scales with how low the player's life regeneration is.
+ ///
+ public float pulseRate = 1;
public bool aAmpoule = false;
public bool rOoze = false;
- public bool JustWasDebuffed = false;
public bool fBarrier = false;
public bool aBrain = false;
public bool amalgam = false;
@@ -599,7 +781,6 @@ namespace CalamityMod.CalPlayer
public bool tracersElysian = false;
public bool tracersSeraph = false;
public bool frostFlare = false;
- public bool uberBees = false;
public bool evolution = false;
public int evolutionLifeRegenCounter = 0;
public bool nanotech = false;
@@ -634,20 +815,27 @@ namespace CalamityMod.CalPlayer
public bool crownJewel = false;
public bool infectedJewel = false;
public bool purity = false;
+ /// If true, reduces the damage of electricity debuffs by 50%.
public bool eleResist = false;
public int PurityHealSlowdownFrames = 0;
public bool harpyRing = false;
public bool angelTreads = false;
- public bool harpyWingBoost = false; //harpy wings + harpy ring
- public int harpyWingFeatherCooldown = 0;
+ /// Synergy effect while wearing Harpy Wings with Harpy Ring or Angel Treads, allowing attacks to be accompanied by feathers.
+ public bool harpyWingBoost = false;
+ /// Makes Flesh Knuckles and its upgrades increase the player's max health by 45.
public bool fleshKnuckles = false;
public bool ironBoots = false;
public bool depthCharm = false;
public bool anechoicPlating = false;
+ /// Used for increasing light level in the Abyss.
public bool jellyfishNecklace = false;
public bool fairyBoots = false;
public bool flameWakerBoots = false;
- public int bootLevel = 0; //Used to prevent Flame Waker and Hellfire Treads stacking
+ ///
+ /// Used to prevent heat debuff damage stacking with Flame Waker Boots and Hellfire Treads.
+ /// Flame Waker Boots = 1, Hellfire Treads = 2
+ ///
+ public int bootLevel = 0;
public bool hellfireTreads = false;
public bool abyssalAmulet = false;
public bool lumenousAmulet = false;
@@ -677,7 +865,9 @@ namespace CalamityMod.CalPlayer
public bool XykVisualsBlue = false;
public bool XykVisualsOrange = false;
public bool manaOverloader = false;
+ /// Used for allowing Calamity slimes to be affected by Royal Gel.
public bool royalGel = false;
+ /// Used for implementing its synergy with Snow armor.
public bool handWarmer = false;
public bool ursaSergeant = false;
public bool ursaSergeantVisual = false;
@@ -692,6 +882,7 @@ namespace CalamityMod.CalPlayer
public bool blazingCoreEmpoweredParry = false;
public bool voltaicJelly = false;
public bool jellyChargedBattery = false;
+ /// General cooldown for accessories which spawn projectiles on minion hits.
public float summonProjCooldown;
public bool sandWaifu = false;
public bool sandWaifuVanity = false;
@@ -741,14 +932,21 @@ namespace CalamityMod.CalPlayer
public int hallowedRuneCooldown = 0;
public bool phantomicArtifact = false;
public int phantomicBulwarkCooldown = 0;
- public int phantomicHeartRegen = 0; // 0 = can spawn, 720 = regen applied, 600 = regen stops and 10 sec cd before it can spawn again
+ ///
+ /// 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.
+ ///
+ public int phantomicHeartRegen = 0;
public bool silvaWings = false;
public int silvaWingsLifeRegenTimer = 0;
public int wingProjectileCooldown = 0;
public bool RustyMedallionDroplets = false;
public bool MiniSwarmers = false;
public bool noStupidNaturalARSpawns = false;
+ /// Used for animating Void Concentration Staff's draw layer.
public int voidFrameCounter = 0;
+ ///
public int voidFrame = 0;
public bool rottenDogTooth = false;
public bool angelicAlliance = false;
@@ -757,14 +955,18 @@ namespace CalamityMod.CalPlayer
public bool ChaosStone = false;
public bool CryoStone = false;
public bool CryoStoneVanity = false;
+ /// Used for spawning Quiver of Nihility's void fields.
public bool voidField = false;
public bool copyrightInfringementShield = false;
#endregion
#region Armor Set
+ /// Calamity's Silver armor set bonus; taking over 20 damage heals 10 health if you avoid damage for 2 seconds.
public bool silverMedkit = false;
public int silverMedkitTimer = 0;
+ /// Calamity's Gold armor set bonus; makes enemies drop Gold Coins.
public bool goldArmorGoldDrops = false;
+ /// Calamity's Mining armor set bonus; gives a chance for extra items to drop when mining ores.
public bool miningSet = false;
public int miningSetCooldown = 0;
public bool desertProwler = false;
@@ -772,10 +974,14 @@ namespace CalamityMod.CalPlayer
public bool forbiddenCirclet = false;
public int forbiddenCooldown = 0;
public int tornadoCooldown = 0;
- public bool eskimoSet = false; //vanilla armor
- public bool meteorSet = false; //vanilla armor, for space gun nerf
- public bool necroSet = false; //vanilla armor
- public bool frostSet = false; //vanilla armor
+ /// Calamity's Snow armor set bonus; reduces cold enemy damage and increases cold debuff damage.
+ public bool eskimoSet = false;
+ /// Calamity's Meteor armor set bonus; makes all magic guns cost 33% mana instead of Space Gun costing 0 mana.
+ public bool meteorSet = false;
+ /// Calamity's Necro armor set bonus; gives a temporary 10 second revive when the player is killed before actually dying.
+ public bool necroSet = false;
+ /// Calamity's Frost armor set bonus; gives a combined 20% damage boost split between melee and ranged based on distance from the closest enemy.
+ public bool frostSet = false;
public bool victideSet = false;
public bool victideSummoner = false;
public bool sulphurSet = false;
@@ -822,7 +1028,9 @@ namespace CalamityMod.CalPlayer
public bool brimflameFrenzy = false;
public bool lunicCorpsSet = false;
public bool lunicCorpsLegs = false;
+ /// Demonshade Breastplate's life regeneration boost.
public bool shadeRegen = false;
+ /// Demonshade Greaves' movement speed boost.
public bool shadowSpeed = false;
public bool dsSetBonus = false;
public bool auricBoost = false;
@@ -843,7 +1051,9 @@ namespace CalamityMod.CalPlayer
public bool fathomSwarmerVisage = false;
public bool fathomSwarmerBreastplate = false;
public bool fathomSwarmerTail = false;
+ /// Used for animating Fathom Swarmer armor's tail layer.
public int tailFrameUp = 0;
+ ///
public int tailFrame = 0;
public bool astralStarRain = false;
public int astralStarRainCooldown = 0;
@@ -884,12 +1094,19 @@ namespace CalamityMod.CalPlayer
public bool chaosSpirit = false;
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.
public bool CobaltSet = false;
+ /// Calamity's Mythril armor set bonus; hits spawn additional homing mythril flares.
public bool MythrilSet = false;
public int MythrilFlareSpawnCountdown = 0;
+ /// Calamity's Adamantite armor set bonus; adds half of DR to crit chance, and makes landing hits give a stacking defense boost.
public bool AdamantiteSet = false;
public int AdamantiteSetDecayDelay = 0;
public int ChlorophyteHealDelay = 0;
+ ///
+ /// If true, the player is wearing a post-Moon Lord summoner armor set.
+ /// Currently unused.
+ ///
public bool WearingPostMLSummonerSet = false;
private float adamantiteSetDefenseBoostInterpolant;
@@ -1231,24 +1448,44 @@ namespace CalamityMod.CalPlayer
#endregion
#region Calamitas Enchant Effects
+ /// If true, the player is holding an item with the Indignant enchantment.
public bool cursedSummonsEnchant = false;
+ /// If true, the player is holding an item with the Aflame enchantment.
public bool flamingItemEnchant = false;
+ /// If true, the player is holding an item with the Oblatory enchantment.
public bool lifeManaEnchant = false;
+ /// If true, the player is holding an item with the Resentful enchantment.
public bool farProximityRewardEnchant = false;
+ /// If true, the player is holding an item with the Bloodthirsty enchantment.
public bool closeProximityRewardEnchant = false;
+ /// If true, the player is holding an item with the Ephemeral enchantment.
public bool dischargingItemEnchant = false;
+ /// If true, the player is holding an item with the Hellbound enchantment.
public bool explosiveMinionsEnchant = false;
+ /// If true, the player is holding an item with the Tainted enchantment.
public bool bladeArmEnchant = false;
+ /// If true, the player is holding an item with the Traitorous enchantment.
public bool manaMonsterEnchant = false;
+ /// If true, the player is holding an item with the Withering enchantment.
public bool witheringWeaponEnchant = false;
public bool witheredDebuff = false;
+ ///
+ /// Counter variable which controls negative life regeneration from the Withered debuff.
+ /// Increments every frame a weapon with the Withering enchantment is held, and decrements vice versa.
+ ///
public int witheredWeaponHoldTime = 0;
+ ///
+ /// How much damage was dealt by a weapon with the Withering enchantment.
+ /// Used to determine what percentage of the hit to heal back.
+ ///
public int witheringDamageDone = 0;
+ /// If true, the player is holding an item with the Persecuted enchantment.
public bool persecutedEnchant = false;
public int persecutedEnchantSummonTimer = 0;
+ /// If true, the player is holding an item with the Lecherous enchantment.
public bool lecherousOrbEnchant = false;
public bool awaitingLecherousOrbSpawn = false;
#endregion Calamitas Enchant Effects
@@ -1303,19 +1540,19 @@ namespace CalamityMod.CalPlayer
private Vector2 oldMouseWorld;
///
- /// Set this to true if you need to recieve updates on right clicks from players and sync them in mp.
- /// Automatically resets itself after sending an update
- /// <\summary>
+ /// Set this to true if you need to receive updates on right clicks from players and sync them in multiplayer.
+ /// Automatically resets itself after sending an update.
+ ///
public bool rightClickListener = false;
///
- /// Set this to true if you need to recieve updates on the position of the player's mouse and sync them in mp.
- /// Automatically resets itself after sending an update
- /// <\summary>
+ /// Set this to true if you need to receive updates on the position of the player's mouse and sync them in multiplayer.
+ /// Automatically resets itself after sending an update.
+ ///
public bool mouseWorldListener = false;
///
- /// Set this to true if you need to recieve updates on the rotation of the mouse to the player. This sends updates less frequently than the more tight tolerance mouseWorldListener
- /// Automatically resets itself after sending an update
- /// <\summary>
+ /// Set this to true if you need to receive updates on the rotation of the mouse to the player. This sends updates less frequently the tighter the tolerance of mouseWorldListener.
+ /// Automatically resets itself after sending an update.
+ ///
public bool mouseRotationListener = false;
public bool syncMouseControls = false;
@@ -1630,7 +1867,6 @@ namespace CalamityMod.CalPlayer
contactDamageReduction = 0D;
projectileDamageReduction = 0D;
rogueVelocity = 1f;
- rogueAmmoCost = 1f;
accStealthGenBoost = 0f;
DashID = string.Empty;
@@ -1796,7 +2032,6 @@ namespace CalamityMod.CalPlayer
aBrain = false;
amalgam = false;
frostFlare = false;
- uberBees = false;
evolution = false;
nanotech = false;
deadshotBrooch = false;
@@ -1958,10 +2193,10 @@ namespace CalamityMod.CalPlayer
miningSet = false;
miningSetCooldown = 0;
- eskimoSet = false; //vanilla armor
- meteorSet = false; //vanilla armor, for Space Gun nerf
- necroSet = false; //vanilla armor
- frostSet = false; //vanilla armor
+ eskimoSet = false;
+ meteorSet = false;
+ necroSet = false;
+ frostSet = false;
victideSet = false;
victideSummoner = false;
@@ -2540,7 +2775,6 @@ namespace CalamityMod.CalPlayer
stealthDamage = 0f;
bonusStealthDamage = 0;
rogueVelocity = 1f;
- rogueAmmoCost = 1f;
#endregion
#region UI
@@ -2727,10 +2961,10 @@ namespace CalamityMod.CalPlayer
forbiddenCirclet = false;
forbiddenCooldown = 0;
tornadoCooldown = 0;
- eskimoSet = false; //vanilla armor
- meteorSet = false; //vanilla armor, for Space Gun nerf
- necroSet = false; //vanilla armor
- frostSet = false; //vanilla armor
+ eskimoSet = false;
+ meteorSet = false;
+ necroSet = false;
+ frostSet = false;
victideSet = false;
aeroSet = false;
sulphurSet = false;
@@ -2794,7 +3028,6 @@ namespace CalamityMod.CalPlayer
persecutedEnchantSummonTimer = 0;
momentumCapacitorTime = 0;
momentumCapacitorBoost = 0f;
- harpyWingFeatherCooldown = 0;
silvaWingsLifeRegenTimer = 0;
LungingDown = false;
@@ -3984,8 +4217,6 @@ namespace CalamityMod.CalPlayer
{
// Adding to StatModifier adds to the additive multiplier
bool rogue = item.CountsAsClass();
- if (auricBoost)
- knockback += ((1f - modStealth) * 0.5f);
if (whiskey)
knockback += Whiskey.KnockbackBoost;
diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs
index 3f175fd86a..b88c193bc4 100644
--- a/CalPlayer/CalamityPlayerHitHurt.cs
+++ b/CalPlayer/CalamityPlayerHitHurt.cs
@@ -2245,8 +2245,6 @@ namespace CalamityMod.CalPlayer
}
#endregion
- modStealth = 1f;
-
// Give Rage combat frames because being hurt counts as combat.
if (RageEnabled)
rageCombatFrames = BalancingConstants.RageCombatDelayTime;
diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs
index ef562b99c3..67d155ad6c 100644
--- a/CalPlayer/CalamityPlayerMiscEffects.cs
+++ b/CalPlayer/CalamityPlayerMiscEffects.cs
@@ -1725,8 +1725,6 @@ namespace CalamityMod.CalPlayer
hideOfDeusTimer--;
if (murasamaHitCooldown > 0)
murasamaHitCooldown--;
- if (harpyWingFeatherCooldown > 0)
- harpyWingFeatherCooldown--;
if (burningSeaBurnOut > 0)
{
burningSeaBurnOut--;
@@ -2755,7 +2753,7 @@ namespace CalamityMod.CalPlayer
Player.moveSpeed -= (1f - aquaticBoost * 0.0001f) * 0.1f;
}
else
- aquaticBoost = aquaticBoostMax; modStealth = 1f;
+ aquaticBoost = aquaticBoostMax;
if (Player.ActiveItem().type == ModContent.ItemType() && Player.StandingStill(0.1f))
{
@@ -3532,7 +3530,7 @@ namespace CalamityMod.CalPlayer
const int FramesPerHit = 30;
// Constantly increment the timer every frame.
- brimLoreInfernoTimer = (brimLoreInfernoTimer + 1) % FramesPerHit;
+ hydrothermicInfernoTimer = (hydrothermicInfernoTimer + 1) % FramesPerHit;
// Only run this code for the client which is wearing the armor.
// Brimstone flames is applied every single frame, but direct damage is only dealt twice per second.
@@ -3552,7 +3550,7 @@ namespace CalamityMod.CalPlayer
if (Vector2.Distance(Player.Center, npc.Center) <= range)
{
npc.AddBuff(ModContent.BuffType(), 120);
- if (brimLoreInfernoTimer == 0)
+ if (hydrothermicInfernoTimer == 0)
Projectile.NewProjectile(source, npc.Center, Vector2.Zero, ModContent.ProjectileType(), damage, 0f, Player.whoAmI, npc.whoAmI);
}
}
diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs
index 7df5998976..cc355e8cd2 100644
--- a/CalPlayer/CalamityPlayerOnHit.cs
+++ b/CalPlayer/CalamityPlayerOnHit.cs
@@ -308,7 +308,7 @@ namespace CalamityMod.CalPlayer
if (!proj.npcProj && !proj.trap && proj.friendly)
{
- if ((plaguebringerCarapace || uberBees) && FriendlyBeesList.Includes(proj.type))
+ if (plaguebringerCarapace && FriendlyBeesList.Includes(proj.type))
target.AddBuff(BuffType(), 300);
// All projectiles fired from Soma Prime are marked using CalamityGlobalProjectile
diff --git a/Items/Accessories/StatMeter.cs b/Items/Accessories/StatMeter.cs
index eb6eb0c6b2..2a0664a95c 100644
--- a/Items/Accessories/StatMeter.cs
+++ b/Items/Accessories/StatMeter.cs
@@ -179,10 +179,6 @@ namespace CalamityMod.Items.Accessories
TwoPlaces(60f * player.GetStandingStealthRegen()),
TwoPlaces(60f * player.GetMovingStealthRegen()),
Sign(rogueVelocity) + TwoPlaces(100f * rogueVelocity));
-
- // Rogue consumable chance only if item is consumable
- if (heldItem.consumable)
- stats2 += this.GetLocalization("RogueConsumption").Format(100f * modPlayer.rogueAmmoCost);
}
// If tool, add tool range
diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs
index d4a0dae56d..478a04d030 100644
--- a/Items/CalamityGlobalItem.cs
+++ b/Items/CalamityGlobalItem.cs
@@ -558,9 +558,9 @@ namespace CalamityMod.Items
}
if (modPlayer.harpyWingBoost && (modPlayer.harpyRing || modPlayer.angelTreads))
{
- if (Main.rand.NextBool(5) && modPlayer.harpyWingFeatherCooldown == 0 && !item.channel)
+ if (Main.rand.NextBool(5) && modPlayer.wingProjectileCooldown == 0 && !item.channel)
{
- modPlayer.harpyWingFeatherCooldown = 20;
+ modPlayer.wingProjectileCooldown = 20;
if (player.whoAmI == Main.myPlayer)
{
float spreadX = velocity.X + Main.rand.NextFloat(-0.75f, 0.75f);
diff --git a/Items/Weapons/Rogue/RogueWeapon.cs b/Items/Weapons/Rogue/RogueWeapon.cs
index e1b71f353a..d3f15c1c90 100644
--- a/Items/Weapons/Rogue/RogueWeapon.cs
+++ b/Items/Weapons/Rogue/RogueWeapon.cs
@@ -37,7 +37,5 @@ namespace CalamityMod.Items.Weapons.Rogue
public virtual void ModifyStatsExtra(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
{
}
-
- public override bool ConsumeItem(Player player) => Main.rand.NextFloat() < player.Calamity().rogueAmmoCost;
}
}
diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson
index fa13fe286f..2d65bc0de5 100644
--- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson
+++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson
@@ -1732,7 +1732,6 @@ StatMeter: {
Max Stealth: {0} | Standing Regen: {1} / sec | Moving Regen: {2} / sec
Rogue Velocity Boost: {3}%
'''
- RogueConsumption: " | Rogue Weapon Consumption Chance: {0}%"
// Utility stats
ToolRange: Tool Range Bonus: ({0}, {1})
MiningSpeed: " | Mining Speed: {0}%"
diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs
index 1a3834bfd3..681f239e72 100644
--- a/Projectiles/CalamityGlobalProjectile.cs
+++ b/Projectiles/CalamityGlobalProjectile.cs
@@ -204,7 +204,7 @@ namespace CalamityMod.Projectiles
/// Timer for how long a projectile's damage is reduced by the value in .
public int flatDRTimer = 0;
- /// A temporary flat amount substracted from the projectile's damage when hitting the player. Resets to 0 if drops to 0.
+ /// A temporary flat amount subtracted from the projectile's damage when hitting the player. Resets to 0 if drops to 0.
public int flatDR = 0;
/// If true, allows hostile projectiles to deal defense damage to the player. Used mostly for hard-hitting bosses.
diff --git a/Projectiles/Melee/PwnagehammerProj.cs b/Projectiles/Melee/PwnagehammerProj.cs
index be9c4ce20d..3f656010c7 100644
--- a/Projectiles/Melee/PwnagehammerProj.cs
+++ b/Projectiles/Melee/PwnagehammerProj.cs
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Melee
public static readonly SoundStyle UseSoundFunny = new("CalamityMod/Sounds/Item/CalamityBell") { Volume = 1.5f };
public static int HighBong = 0;
public int time = 0;
- public ref int EmpoweredHammer => ref Main.player[Projectile.owner].Calamity().StellarHammer;
+ public ref int EmpoweredHammer => ref Main.player[Projectile.owner].Calamity().Holyhammer;
public override void SetStaticDefaults()
{