
ArtifactOfDoom
Adds an artifact to the game which destroys items of your inventory if you take damage but gives you items if you kill enemies.Artifact of Doom
A mod for Risk of Rain 2.
Adds an artifact to the game which destroys items of your inventory if you take damage but gives you items if you kill enemies.
Mods used to create this mod
The root projekt is TinkersSatchel: https://github.com/ThinkInvis/RoR2-TinkersSatchel
For the UI i took parts of Crashaholics UIModifier mod: https://github.com/Crashaholic/RoR2UIMod
And the Multiplayer UI support is based on the Example of MiniRPC: https://github.com/wildbook/R2Mods/tree/develop/MiniRpcLib
What does this mod do
This mod gives you items after killing some enemies. But you'll loose items if you get hit.
The calculation for the required kills is:
(totalItems - currentStage * averageItemsPerStage) * 2
totalItems is the current item count of each character. CurrentStage is the number of stages completed and averageItemsPerStage can be changed in the config file.
For example you've 20 items and are on stage 5. The configured averageItems are 3 (default). That means you've to kill (20-5*3)*2=10 enemies to get one item.
Everytime you get hit you'll loose an item. The only exception is if you've less items then the configured minItemsPerStage.
If that is the case you have a chance that you will not use an item.
The calculation for this is:
1.0 - (minItemsPerStage * currentStage - totalItems) / (minItemsPerStage. * currentStage)
minItemsPerStage can be configured in the setting. For example you've 6 items and are on stage 5. The configured minItemsPerStage are 2 (default).
So you've the calculation:
1.0-((25-6)/(25))=3/5 that means you've a change of 60% to not loose an item.
On the other hand the possibility increases if you've more items than you should have to loose more than one item. The formular to calculate that is:
(1 + (totalItems - maxItemsPerStage * currentStage) / (maxItemsPerStage * currentStage))^exponentailFactorToCalculateSumOfLostItems
maxItemsPerStage and exponentailFactorToCalculateSumOfLostItems are configurable and have a default value of 7 and 1.5.
For example you've 50 items, are on stage 5 and have the default values so you calculate:
(1 + (50 - 7 * 5) / (7 * 5))^1.5=1.7
So you'll have a 100% chance to loose one item and 70% chance to loose another.
UI
On the left side there are the symbols of the gained items. These are only the items which you obtained by the mod. On the right side there are all lost items. The UI is reseted every stage.
I've an issue:
Please add an issue to my github repository: https://github.com/SirHamburger/ArtifactOfDoom You can also reach me in Discord (Sir Hamburger#8447)