V0.21

## Alpha v0.21 - (13th August 2021)

### Introduction

The Major Update is a lot different than all previous ones released. It focuses on providing an extremely important feature to the game, as well as fixing a lot of issues that have been present.

The lack of new content or changes to explore in this update might be disappointing to some, but I hope what it does provide is the functionality and stability you have been looking for in Melvor Idle.

I also want to point out that pretty much all credit for this update must be handed over to Coolrox95. He was the one who developed the Combat Rewrite and Offline Combat portion of this update. It has allowed for easier growth and scalability within the game, and also enabled one of the most important and highly requested features of the game to become a reality.

I ask that you pass on all thanks to him for this, as this update is not mine to take any credit for.

### Combat Rewrite

It was well overdue, but the complete rewrite of Combat has been done. This rewrite will allow for faster development, as well as cleaning up many inconsistencies that exist throughout the previous Combat system.

#### What has Changed?

Most of the rework focused on the back-end side of things, changing the way Combat itself works and operates behind the scenes.

From a general player perspective, you won't notice much of a change at all. There are a few new QoL additions which are detailed below.

The most important change is that Combat has been transitioned to a tick-based system. What this means is that Combat performs its operations every 50ms, allowing for accurate calculations as well as increasing general performance.

#### New Stuff & QoL

There's a few new features and QoL that you will enjoy:

* All buffs and debuffs will now display as an icon next to your HP (As well as the Enemy's). They also contain a tooltip detailing their effects and a number showing how many turns are remaining on the debuff.
* Improved Damage Splashes allow for better visualization of when players/enemies are damaged and healed, and what source the damage is from.
* Special Attack descriptions that contain buffs/debuffs will nwo highlight the buff/debuff in a different text colour.
* Hot-swapping equipment is now possible, which means you can swap gear with a full bank and not have to worry about clearing a slot to unequip something if it is a direct swap.
* Equipping a two-handed weapon, Javelins or Throwing Knives will now display that same weapon within the 2nd slot it takes up (slightly faded image).
* There is now a Setting to disable Combat Progress bars if they are causing performance issues.
* Due to the tick-based functionality, the new Combat system will mitigate browser throttling automatically by comparing timestamps and awarding you the correct progress if a large enough difference is detected.

There has also been some changes to Player Stat Calculations which will make them consistent across the board.

#### Changes to Player Stat Calculations

Several formulas for player stat calculations have been tweaked slightly to make them consistent with the stat calculations of enemies, as well as correcting some inconsistencies between the different ranged, magic and melee calculations. Overall these changes have resulted in a slight buff to players in combat. Outlined below are the changes to each of the core stats.

##### Melee & Ranged Max Hits

The base calculation for melee and ranged max hit has remained the same and is as follows:

# Mat Hit

⌊

Gamemode Multiplier
×

(

1.3

Effective Strength Level
10

Strength Bonus
80

Effective Strength Level
×
Strength Bonus

640

)

⌋

{\displaystyle \text{Mat Hit} = \left \lfloor \text{Gamemode Multiplier} \times \left (1.3 + \frac{\text{Effective Strength Level}}{10} + \frac{\text{Strength Bonus}}{80} + \frac{\text{Effective Strength Level} \times \text{Strength Bonus}}{640} \right ) \right \rfloor}

Strength bonus rtefers to the bonus provided by equipment. Gamemode Multiplier refers to the multiplier to all HP related values for a gamemode. This is 10 for Standard and Hardcore mode, and 100 for Adventure mode. Effective Strength Level is calculated from the player's skill levels and any hidden levels. This calculation has been changed for players to be consistent with enemies as follows:

###### Effective Melee Strength Level

**Old:**

Strength Level
Hidden Strength Levels
8

{\displaystyle \text{Strength Level} + \text{Hidden Strength Levels} + 8}

**New:**

Strength Level
Hidden Strength Levels
9

{\displaystyle \text{Strength Level} + \text{Hidden Strength Levels} + 9}

###### Effective Ranged Strength Level

**Old:**

Ranged Level
Hidden Ranged Levels
Style Bonus

{\displaystyle \text{Ranged Level} + \text{Hidden Ranged Levels} + \text{Style Bonus}}

**New:**

Ranged Level
Hidden Ranged Levels
9

{\displaystyle \text{Ranged Level} + \text{Hidden Ranged Levels} + 9}

Note: The style bonus for the Accurate style has been changed to just provide +3 Hidden Ranged Levels. Overall this change increases the Effective Ranged Strength level by +9.

##### Magic Max Hits

The base calculation for magic max hit as remained the same for players:

# Max Hit

⌊

Gamemode Multiplier
×
Spell Max Hit
×

(

1

Magic Damage Bonus
100

)

(

1

Magic Level
Hidden Magic Levels
1

200

)

⌋

{\displaystyle \text{Max Hit} = \left \lfloor \text{Gamemode Multiplier} \times \text{Spell Max Hit} \times \left ( 1 + \frac{\text{Magic Damage Bonus}}{100} \right ) \left ( 1 + \frac{\text{Magic Level} + \text{Hidden Magic Levels} + 1}{200} \right ) \right \rfloor}

Magic Damage Bonus is the percent bonus provided by equipment.

Enemies have been changed to use the same formula as players, and have had their spell selection and magic damage bonuses adjusted to produce similar max hits as before, resulting in slightly lower values overall.

##### Evasion Ratings

The base calculation for evasion ratings is as follows:

# Evasion Rating
Effective Defence Level
×

(

Defence Bonus
64

)

{\displaystyle \text{Evasion Rating} = \text{Effective Defence Level} \times \left ( \text{Defence Bonus} + 64 \right )}

###### Melee Evasion

The effective defence level calculation has been changed to be consistent with Ranged and Magic Evasion.

**Old:**

Defence Level
Hidden Defence Levels
8

{\displaystyle \text{Defence Level} + \text{Hidden Defence Levels} + 8}

**New:**

Defence Level
Hidden Defence Levels
9

{\displaystyle \text{Defence Level} + \text{Hidden Defence Levels} + 9}

###### Ranged Evasion

The effective defence level calculation has remained the same as:

**Effective Defence Level:**

Defence Level
Hidden Defence Levels
9

{\displaystyle \text{Defence Level} + \text{Hidden Defence Levels} + 9}

###### Magic Evasion

The effective defence level calculation has remained the same as:

**Effective Defence Level:**

0.7
×

(

Magic Level
Hidden Magic Levels

)

0.3
×

(

Defence Level
Hidden Defence Levels
9

)

{\displaystyle 0.7 \times \left ( \text{Magic Level} + \text{Hidden Magic Levels} \right ) + 0.3 \times \left ( \text{Defence Level} + \text{Hidden Defence Levels} + 9 \right )}

##### Accuracy Ratings

The base calculation for accuracy rating is as follows:

# Accuracy Rating
Effective Attack Level
×

(

Attack Bonus
64

)

{\displaystyle \text{Accuracy Rating} = \text{Effective Attack Level} \times \left ( \text{Attack Bonus} + 64 \right )}

The attack bonus is the bonus provided by equipment

###### Melee Accuracy

The effective attack level calculation has been changed:

**Old:**

Attack Level
Hidden Attack Levels
8

{\displaystyle \text{Attack Level} + \text{Hidden Attack Levels} + 8}

**New:**

Attack Level
Hidden Attack Levels
9

{\displaystyle \text{Attack Level} + \text{Hidden Attack Levels} + 9}

###### Ranged Accuracy

The effective attack level calculation has been changed:

**Old:**

Ranged Level
Hidden Ranged Levels
Style Bonus

{\displaystyle \text{Ranged Level} + \text{Hidden Ranged Levels} + \text{Style Bonus}}

**New:**

Ranged Level
Hidden Ranged Levels
9

{\displaystyle \text{Ranged Level} + \text{Hidden Ranged Levels} + 9}

Note: The style bonus for the Accuracy style has been changed to just provide +3 Hidden Ranged Levels. Overall this change increases the Effective Attack Level by +1.

###### Magic Accuracy

The effective attack level calculation has been changed:

**Old:**

Magic Level
Hidden Magic Levels
8

{\displaystyle \text{Magic Level} + \text{Hidden Magic Levels} + 8}

**New:**

Magic Level
Hidden Magic Levels
9

{\displaystyle \text{Magic Level} + \text{Hidden Magic Levels} + 9}

##### Summoning Max Hit

Summoning max hit has been changed to combine the values of both Summons. Previously it was the largest value of both Summons.

**The structure of all items, special attacks, Monsters etc. has changed, so this means a lot of scripts and extensions that interact with Combat will no longer work. Please be cautious of this.**

### Offline Combat

Along with the rewrite, Offline Combat has also been added.

Offline Combat follows the same rules and functionality of all other Skills in the game. There is a 12 hour Offline cap, and you will be provided with your experience and items upon returning to the game.

The benefit of a tick-based system really shows here, allowing for players to log back into the game at the extact moment they would be if they were training Online.

Here is a breakdown of general Offline Combat features:

* Offline Combat is calculated exactly as it would be if you were training Online.
* Returning from an Offline Session will continue exactly where you would be if you were training Online. This includes the progress of a Dungeon, the HP of you or the Monster, and also how far into an Attack you are.
* All dynamic modifiers to players and enemies are taken into account while Offline, including temporary modifiers from special attacks.
* All Combat content can be completed Offline, with the exception of Into the Mist where you will return to the game at the start of the first boss fight (Due to the Dungeon Pause mechanic)
* Auto slayer works Offline, and follows the same rules as Online does when selecting a new Monster to fight.
* Amulet of Looting works Offline and will collect all Loot, as long as you have the available Bank space. Training without this Amulet will cause your loot to fill up the loot container (Max 16 slots)
* Bone Amulet works Offline and will bury all Bones that are dropped automatically.
* All Combat Summoning Familiars and their respective Synergies work Offline.
* Offline Progress popup will display relevant XP gained, Monsters killed, food consumed, Prayer Points Used, Runes & Arrow consumption, Slayer Coins earned, Summoning Tablet usage, number of Slayer Tasks completed.
* Yes, it is possible to die Offline (More details about this below)

#### Dying Offline

As mentioned above, it is possible to die while Offline in Combat.

Dying while Offline will result in the same consequences as dying Online. This means losing an Item for Standard/Adventure Characters and losing your Character entirely for Hardcore Characters.

If you die Offline, Combat will not progress. There is also no way of the game notifying you that you died while away due to the nature of the game.

To help mitigate the risk of accidental deaths, these have been added to the game:

* Offline Combat is disabled by default, and must be enabled by the Player.
* Attempting to enable Offline Combat will display a large warning screen, where a Player must agree to the listed points before being able to turn it on.
* Offline Combat can be disabled at any time. Re-enabling will require the same points as above to be agreed upon again.
* You can now view the stats and special attacks of Monsters you have killed from the Monster log.

**Offline Combat is DISABLED by default for all Characters. You will be required to enable it for each Character if you wish to use it (You won't miss the notification in game). This can be enabled/disabled as you please from the Settings page.**

### Changelog

#### New Features

* Combat has been completely rewritten from the ground-up, transitioning to a tick-based system in the process.
* Offline Combat has been introduced, allowing for all Combat content to be completed Offline in the exact same manner as it would be done Online.
* Offline Combat can be enabled/disabled, which comes with a warning popup that must be agreed to every time you wish to enable Offline Combat.
* Returning to the game during an Offline Combat session will continue exactly where it would be if you were training Online.
* Combat now performs all required calculations every 50ms instead of set intervals, allowing for more accurate gameplay as well as increased performance.
* Added icons for Buffs and Debuffs to the game that display next to HP values within Combat. These icons contain a Tooltip detailing their effects as well as a number showing how many turns are remaining until it disappears.
* Improved Damage Splashes allow for better visualization of when players/enemies are damaged and healed, and what source the damage is from
* Hot-swapping equipment is now possible, which means you can swap gear with a full bank and not have to worry about clearing a slot to unequip something if it is a direct swap.
* Special Attack descriptions that contain buffs/debuffs will now highlight the buff/debuff in a different text colour.
* Equipping a two-handed weapon, Javelins or Throwing Knives will now display that same weapon within the 2nd slot it takes up (slightly faded image).
* New Setting has been added to disable Combat Progress Bars
* New Setting has been added to disable Combat Damage Splashes
* New Setting has been added to disable Preservation notifications.
* A button has been added to the Marks Page within Summoning, allowing you to jump to the Create Familiar screen relating to that Mark.
* Quick buying of items from the Shop has been added. Items within Crafting related Skills that contain a small Shop icon in the top left corner can be clicked to quickly buy more of that item via a small popup window. This functionality has also been added to Compost and Gloop within the Farming Page.
* You can now see which Agility Obstacle is currently built within the "Build Agility Obstacle" window.
* A small tick now displays on the Skilling Minibar to represent if that particular item is currently equipped in your active Equipment Set.
* The Max Skillcape will now display on the Skilling Minibar, alongside the button for the Skill's respective Skillcape. This will only display once you have purchased at least 1 Max Skillcape.
* Added a "View Monster Stats" window to the game, allowing you to view the stats and Special Attacks/Passive of Monsters you have killed. This can be accessed by clicking the Monster's image in the Monster Log.
* Search Summoning Synergies page now contains an icon of the Skill relating to the Familiar in the top left corner.
* The new Combat system will now attempt to mitigate browser throttling automatically by comparing timestamps and awarding you the correct progress if a large enough time difference is detected.
* A large popup will now display if your Force Save to the Cloud does not succeed for whatever reason.
* There is also a nice new notification confirming if the Cloud Save was successful.
* The confirmation popup when attempting to load a Save while connected to the Cloud will now also display the save's timestamp.

#### Changed Features

* Player Stats such as Max Hit, Evasion Rating and Accuracy Ratings have been adjusted as per the above breakdown.
* Increased the amount of Bank Slots a Hardcore Character can buy to 78, up from 68.
* All images for Items have been converted to PNG format (They were previously SVG). This should drastically increase performance throughout the bank, specifically with banks that contain over 100 items.
* "Attack Speed" is now known as "Attack Interval" throughout the entire game to allow for clear descriptions of Modifiers.
* Ku-Tul now has a Max Hit for Normal Attacks of 765, up from 10.
* Reduced Glacia's Magic Damage Bonus to 8, down from 17. This is due to the above stat changes to ensure her Max Hit does not increase above her intended Max.
* Reduced Malcs, the Leader of the Dragons' Strength Level to 669, down from 700. Due to the above stat calcuation changes, his Max Hit has increased by 1.
* Buff - Burn DOT Effect - Now deals damage equal to 15% of Current HP over 2.5s (Up from 15% Current HP over 5s). "Current HP" refers to the HP of the Player/Enemy the Burn effect is applied to.
* Buff - Pig + Ent Synergy - +15% chance to receive +1 Cooked Food in Cooking. Cannot be doubled (Up from 1%).
* Buff - Wolf + Unicorn Synergy - +50% Lifesteal from Bleed damage (Up from 1%)
* Buff - Ent + Monkey Synergy - In Woodcutting, +30% chance for a random Silver or Gold Jewelry to drop instead of a Bird Nest (Up from 1%).
* Buff - Mole + Leprechaun Synergy - When successfully pickpocketing the Miner in Thieving, +20% chance to get a random Gem (Up from 10%).
* Buff - Pig + Leprechaun Synergy - The Chef in Thieving now deals no damage to you. Now also Grants +1 Base Items from the Chef.
* Cloudburst Staff - New Special Attack Name & Description (Still works the same, no mechanical changes) - Magic Ray (100%) Converts your selected Standard Magic Spell into a Magic Ray, dealing up to 40% of your normal damage 5 times over 1.6s. On a hit, gives the enemy +15% Attack Interval for 2 of the enemy's turns. Consumes Runes per hit.
* Sandstorm Ring - Special Attack is now Melee Only and cannot be used if you are using a Ranged or Magic Attack Type. It will not display in the Special Attack list if it cannot be used.
* Sandstorm Ring - Now requires Level 50 Attack to equip.
* Sandstorm Ring - Special Attack chance is now 15%, down from 20%.
* Sandstorm Ring - Damage dealt is now 1% - 15% of Current Player HP, down from 5 - 15%
* Sand Beast's Sandstorm Special Attack - Damage dealt is now 1% - 15% of Current Enemy HP, down from 5 - 15%
* The format in which Local Saves are stored has changed. Local Saves now only store the compressed string into Local Storage. It no longer stores each individual save item. Old save formats are automatically converted to the new format upon loading. Old saves are still compatible with this version.

#### Bugfixes

* "Most Recent Save" banner on the character selection screen now displays accurately (This was hotfixed roughly 6 weeks ago).
* Smithing gloves now correctly provides +50% Smithing Skill XP (Additive)
* Merged Coal Ore drops from Mining Cape and general Mining on the Welcome Back screen
* Offline Progress spinner on the Welcome Back popup no longer causes a scroll bar to appear and disappear rapidly
* Inconsistencies with mouse icon on horizontal menu items in crafting related skills has been fixed.
* Issues loading into the game from Offline Progress that cause errors have mostly been rectified.
* Activating Offline Thieving by switching tab or minimizing the game would not always activate the Offline session, causing 0 XP to be gained upon returning
* Skilled Fletching Potion III was providing 10% bonus instead of the intended 15% bonus
* Burning status icon in Combat is displayed on Player permanently, without taking burn damage
* Ranged Strength was calculated twice if Throwing Knives/Javelins were equipped (Visual only).
* No comma notation on Runecrafting Screen for currently selected item.
* Rare issues of Auto Eat using more food than intended should be fixed.
* Priest Hat increased Prayer Costs by 1, instead of reducing it as intended.
* Offline Woodcutting was not providing double log bonuses.
* Max Skillcape and Cape of Completion were providing a larger HP regen bonus than intended.
* Summoning was not applying the cost reduction bonus obtained at Level 99 Mastery
* Slayer Platebody (Elite) was providing +15% Slayer XP Bonus instead of the intended +30%.
* Double clicking loot will give both the clicked loot and the loot to the right without removing the right side loot allowing infinite duplication.
* Issue that caused the "Sell x" textbox in the Bank to lag considerably during long play sessions when changing the value has been recitified.
* Performance around equipping and unequipping items have been greatly improved.
* Tooltips within the Bank no longer have a slight delay when displaying due to high item counts.
* Very rare occurance of dying twice within the Fire God Dungeon has been fixed.
* Memory Leak issues should be mostly eliminated for Steam users.
* Slayer 'Cancel' New Task selection button disappaering when Monster respawns.
* Slayer Sidebar Menu item not being highlighted while training but Thieving is.
* Rare occurance of dungeons icons not working while fighting the second+ Monster.
* Dropped Loot tooltips not showing item descriptions, special attacks or healing value
* When you equip/bury something from the bank or change attack style the Hitpoints label is unhighlighted until the next new monster is refreshed to fight.
* Runic Ruins Magic Evasion debuff being applied incorrectly while using Magic
* Rare occurance of super fast attack interval within the Golbin Raid should be rectified.
* Combat Skill Progress Bars should be fixed and no longer show incorrect progress.
* Golbin Raid should now correctly set your character unlocks back to the intended values when leaving or dying within the Raid. This includes Prayers and Magic Spells.
* Activating Prayers now correctly changes the text of Prayer in the Sidebar green
* Special Attacks persisting after weapon swapping in Golbin Raid should be fixed.
* Rare occurance of fluctuating damage values for the Tidal Edge should be recitified.
* Lack of description on Summoning Attack Bar tooltip within Combat is now fixed.
* Summon attacks that miss in Combat now correctly display a Miss indicator.
* Finding the Red Herring within the Golbin Raid will no longer break everything.
* CPU usage due to progress bars within Combat should now use much less CPU.
* Issue with Crafting unintentionally using Combat Doubling Chance has been fixed.
* Ancient Magicks tooltip displaying how many clears are remaining should no longer go into negatives.
* Mud Runes are now inside the Combination Runes array.
* Ent + Monkey Synergy only used charges on birds nest drop (Online only)
* Ent + Bear Synergy used charges when the potion was inactive (Both Online & Offline)
* Octopus + Bear Synergy used charges when the potion was inactive (Online only)
* Octopus + Bear Synergy was not using charges offline
* Devil + Bear Synergy used charges when the potion was inactive (Both Online & Offline)
* Pig + Bear Synergy used charges when the potion was inactive (Both Online & Offline)
* Pig + Devil Synergy didn't use charges in Cooking (Online only)
* Mole + Octopus Synergy only used charges on gem drop (Both Online & Offline)
* Mole + Salamander Synergy used charges even when Mining Ores with no smeltable output (Both Online & Offline)
* Mole + Bear Synergy used charges when the potion was inactive (Both Online & Offline)
* Salamander + Ent Synergy charges used the incorrect interval resulting in inaccurate Summoning XP provided (Offline only)
* Salamander + Octopus Synergy used the incorrect interval resulting in inaccurate Summoning XP provided (Both Online & Offline)
* Salamander + Pig Synergy is used charges at the start of the interval
* Salamander + Pig Synergy was not consuming charges as intended (Offline only)
* Salamander + Crow Synergy used the incorrect interval resulting in inaccurate Summoning XP provided (Offline only)
* Salamander + Bear Synergy used charges when smithing Gold Bars even though it didn't use the potion (Both Online & Offline)
* Salamander + Bear Synergy used the incorrect interval resulting in inaccurate Summoning XP provided (Offline only)
* Salamander + Devil Synergy used charges when Smithing items without Coal requirements (Both Online & Offline)
* Leprechaun + Octopus Synergy actually halved the interval, instead of doubling it for Fisherman in Theiving lol.
* Leprechaun + Pig Synergy only used charges when you failed the pickpocket (Online only)
* Leprechaun + Devil Synergy incorrectly rolling the RNG value, resulting in inaccurate bonuses provided (Online only)
* Monkey + Pig Synergy didn't use charges (Offline only)
* Monkey + Pig Synergy didn't use charges when preserving resources (Both Online & Offline)
* Monkey + Bear Synergy used charges when the potion was inactive (Both Online & Offline)
* Crow + Salamander Synergy used the incorrect interval resulting in inaccurate Summoning XP provided (Offline only)
* Crow + Bear Synergy used charges when the potion was inactive (Both Online & Offline)