Muck
Install with App

Details

Latest version
0.2.1
Last Updated
First Uploaded
Downloads
5
Likes
0
Size
53KB
Dependants

Categories

Glacial Elite

Some ordinary hostile mobs spawn as Glacial elites.

A Glacial mob has 4× health and deals 2× damage. It is tinted icy blue. At the default damage multiplier, Muck treats it as a buff: it is larger, it shows the buff bar, the host drops 1.25× loot, and the kill counts toward the Steam BuffKills stat. A damage multiplier of 1 or less does not do those things. Its melee hit slows you on the ground for 1.5 seconds, and the edges of your screen frost over pale blue while you are slowed. When it dies it leaves a see-through blue sphere. Standing inside it tints your view pale blue. After 2 seconds that sphere bursts. If you are within 4 meters you take damage. On the ground your speed is clamped and you cannot jump for 1.5 seconds. A low clink plays and the frost on your screen edges grows stronger until you can move again. In the air you keep your momentum and can still steer. A player who is already standing still can creep, because the game adds a little force before it clamps speed. Shield drains before health, the same way a mob hit does. That hit path has been read in the Update 4 decompile and has not been confirmed in a match.

The health number is 4.03125× at the defaults. The extra 0.8% is a tag so the mod can recognize the mob after a save. The bomb's damage does not grow with the elite's damage multiplier. The default hit is 22. The host then applies the day's mob-damage multiplier and your armor, as for any mob hit, so on Normal it is 19 at day 0 and 116 at day 10, before armor. BombDamageCap (30) caps the value before that multiplier, not the damage you take.

On an Artifact of the Night Swarms night, mobs still roll Glacial. Swarms' health factor (0.5 by default) stacks with the 4×, so a Glacial mob has about 2× normal health that night. Everything else about it is the same. If you change Swarms' health factor to a value that is not a multiple of 1/16 (0.0625), such as 0.3, no mob becomes Glacial on Swarms nights.

With RoR2 Enemies installed, a mob it has converted (a Jellyfish or a Stone Titan, for example) is never Glacial. That mod stores the enemy type in the mob's health multiplier, and Glacial leaves that value alone so the type is not lost.

This is not a new powerup. It adds no item ids, so chest and shrine drops stay the same.

Bosses, guardians, and neutral animals do not spawn Glacial. Set IncludeNeutral if you want neutral animals included. Bosses and guardians stay excluded.

Multiplayer

All players should install this mod. A peer without it can still join, because the mod adds no packets and no ids. The players will not agree about which mobs are Glacial.

Every player in a lobby should use the same Spawn and Stats values. If they differ, health bars disagree. On launch the log prints Glacial config and a hash of those values. Every peer should print the same hash.

Slow, freeze, and the bomb are per player. Muck trusts the client that reports a hit, so each player's own config decides the debuffs they receive. Config is not copied to other players.

  • Modded host, vanilla client. The client sees a normal mob at normal size, with no buff bar, and takes normal melee damage. The host's health is about 4×, so the mob takes longer to kill. The client gets no slow and no bomb.
  • Vanilla host, modded client. The host's health is normal. The client's bar shows the tagged 4× value. That client takes 2× hits, the slow, and the bomb. The vanilla host still applies the bomb hit.
  • Both modded, same config. Both players pick the same mobs, and the health bars match. Each bomb hurts only the player who is standing in it.

Saves

MuckSaveGame loads mobs by calling the normal spawn path with the saved multipliers. A Glacial mob's saved pair carries a 1/64 tag, including one from a Swarms night. The mod sees that tag and puts the tint and the bomb back without scaling the mob again. If DamageFactor changed between the save and the load, the tag no longer matches and the mob is left as a plain buffed mob.

Config

BepInEx/config/evan.muck.glacialelite.cfg, created on first launch.

For a test, set Chance to 1. Every eligible mob is then Glacial.

Section Key Default Where the number comes from
Spawn Chance 0.1 Not from the wiki. RoR2 elites come from director credits, not a flat chance.
Spawn IncludeNeutral false Not from the wiki
Stats HealthFactor 4 RoR2 wiki, tier 1 elite health. The tag makes the effective value 4.03125
Stats DamageFactor 2 RoR2 wiki, tier 1 elite damage. Applied through mob.multiplier. Above 1 is Muck's buff, including 1.25× host loot and the Steam BuffKills stat. 1 or less is not a buff
Slow EnableSlow true Not from the wiki
Slow SlowSpeedFactor 0.2 RoR2 wiki, an 80% slow. Caps speed on the ground. Airborne movement is unchanged
Slow SlowSeconds 1.5 RoR2 wiki
Bomb EnableBomb true Not from the wiki
Bomb BombFuse 2 RoR2 wiki
Bomb BombRadius 4 Not from the wiki. The RoR2 wiki lists no radius
Bomb BombDamageFraction 1.5 RoR2 wiki, 150%
Bomb BombBaseDamage 15 Not from the RoR2 wiki. Goblin melee baseDamage from a pre-Update-4 asset rip
Bomb BombDamageCap 30 Not from the wiki. Applies before the day multiplier
Bomb FreezeSeconds 1.5 RoR2 wiki
Bomb FreezeSpeedFactor 0 RoR2 freeze, read as 0 ground speed. A still player can creep. Airborne momentum stays
Bomb FreezeBlocksJump true Not from the wiki
Bomb MaxLiveBombs 16 Not from the wiki
Visual TintStrength 0.6 Not from the wiki
Visual TintColor 0.55, 0.85, 1 Not from the wiki
Visual BombColor 0.35, 0.6, 0.9 Not from the wiki. Its alpha is ignored: the bomb draws at 0.35 alpha so you can see through it. Read when the first bomb builds its material. A later edit does not recolor bombs
Debug VerboseLogging false Not from the wiki. When on, the log names each Glacial mob id

What this version leaves out

  • Slow from arrows, thrown attacks, and bosses.
  • The bomb does not hurt mobs, does not chain, and does not freeze other players. Each player resolves their own body.
  • No freeze icon or particles. The sphere, the frost on your screen edges and the freeze clink are the only feedback.
  • Copying this config to other players. The log hash only shows a mismatch.
  • Mobs spawned by a MobZone. Those never go through MobSpawner.SpawnMob.
  • A mob that is both Blazing and Glacial. If both mods are installed, Blazing keeps the mob.

Credits

The Glacial elite idea is Hopoo Games' from Risk of Rain 2. This mod contains no assets from Risk of Rain 2 or Muck. The icon is original.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.