Quasimorph

Quasimorph

76 ratings
Pity Unlocks
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
8.112 MB
Nov 25, 2024 @ 1:12pm
Apr 11 @ 3:03pm
11 Change Notes ( view )

Subscribe to download
Pity Unlocks

Description
Quasimorph Pity Unlock


Tired of only getting chips for mercenaries, classes, or production items that have already been unlocked?

This mod adds a "pity" system which increases the chances of getting a chip that has not been unlocked. The game's existing random chip spawn is still used for non "pity" rolls.

By default, this mod is configured to guarantee a chip that is not already unlocked after every unlocked chip found.

There are multiple pity algorithms and settings available such as "always locked", a "hard cap", and "increasing chance". See the Configuration section below for more information.

Credits

The "Always" mode is similar to functionality that is part of WarStalkeR's "Fight For Universe: Phase Shift" mod. The ability to change the outcome of spawn rolls is his idea and replicated with permission.

Glossary
Term
Description
Pity Roll
A 100% chance of spawning an undiscovered item. Replaces a single, random spawn chance every time the pity threshold is reached.
Chip
Class, merc, or production item chips
Discovered
Chips that have already been unlocked.

Spawning and Finding

The pity rolls occur at the time of a chip spawn, and the chips are chosen from the list of undiscovered chips at that point in time. Therefore, it is possible for chips from pity rolls to occur multiple times in a mission or from station rewards.

The player must still find chips from pity rolls as normal.

Anytime an undiscovered chip is spawned, the pity roll counter is reset.

Configuration

Example Configurations:
  • Every roll guarantees an undiscovered chip.
  • After X discovered chip rolls in a row. Ex: 5 means that after 5 discovered rolls in a row, a pity roll will occur.
  • For every discovered chip roll, adds an X% increased chance of a pity roll. Ex: .1 means that after three discovered rolls, there is a 30% chance of a pity roll.

Pity Options

The configuration file will be created on the first game run and can be found at %AppData%\..\LocalLow\Magnum Scriptum Ltd\Quasimorph_ModConfigs\QM_PityUnlock\config.json.
Name
Default Value
Description
Mode
Hard
Determines the pity algorithm to use. See the Pity Modes section below.
HardPityCount
1
Hard mode only setting. The number of discovered rolls in a row before next roll is a pity roll.
PercentageMultiplier
.1
Percentage mode only setting. The multiplier for the increased chance of a pity roll. Ex: .1 is +10% per discovered roll.

Pity Modes
Mode
Description
Always
Every spawned chip will be undiscovered.
Hard
Every X times in a row that an already discovered item is spawned, the next spawn is guaranteed to be undiscovered.
Percentage
An increasing chance of a pity roll per discovered chip roll. For example, if set to .10, three discovered chip rolls in a row would cause the next roll to have a 30% chance to spawn an item that is not discovered.

Support

If you enjoy my mods and want to buy me a coffee, check out my Ko-Fi[ko-fi.com] page.
Thanks!

Source Code

Source code is available on GitHub at https://github.com/NBKRedSpy/QM_PityUnlock

Change Log

2.3.0
  • Version 0.8.7 compatibility

2.2.0
  • Version 0.8.5 Compatibility
  • Fixed debug command item to use the Pity Unlock logic for easier debugging.

2.1.0
  • Changed debug log to be a config setting.
  • Changed debug log text to a count instead of an "unlocked" list

2.0.0
  • Data is now saved per save slot.

1.2.0
  • Moved config file directory.

1.1.0

Added production item chips.
28 Comments
nbk_redspy  [author] Apr 17 @ 12:19pm 
Unless you set the mode to “always”, you will still get duplicates. See the docs above for details.
LLIPAM Apr 17 @ 11:02am 
For some reason I'm getting dublicates
soppyamoeba8402 Apr 16 @ 4:01pm 
It's already compatible
LLIPAM Apr 16 @ 1:41pm 
Any plans on compatibility with 0.9?
nbk_redspy  [author] Mar 16 @ 10:49am 
Compatible with the 0.8.6 opt in beta
LLIPAM Feb 7 @ 5:32am 
Thanks, I w'll try Data loader.
nbk_redspy  [author] Feb 5 @ 7:31am 
@LLIPAM If it is just for you to play around with , use the Simple Data Loader mod. The docs are on the mod's page. Make sure to backup your save file just in case.

Otherwise you would need to create a mod.
LLIPAM Feb 5 @ 6:33am 
Just tested it, switched mode to always on my 50 hrs save, everything works good, thanks for the mod! Was tired of getting the same chips all the time, turns out i've never even met Niko's chip in this savefile lol. Oh and btw do you how to modify stats in game? Is it hard to do? Cause it seems to me an extremely strange decision that Franche-Comte weapons have such low Condition, especially Agony MAF being a tech lvl 7 gun and requiring Franche-Comte PS Chip to craft.
nbk_redspy  [author] Feb 5 @ 5:18am 
Currently all of my mods can be added or removed at any time. No new save required.
LLIPAM Feb 5 @ 3:59am 
I probably didn't read carefully, but I didn't find any information on whether I need to start a new game with this mod, or is it compatible with old saves?