Quasimorph

Quasimorph

104 个评价
Pity Unlocks
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
105.699 KB
2024 年 11 月 25 日 下午 1:12
10 月 12 日 下午 1:50
17 项改动说明 ( 查看 )

订阅以下载
Pity Unlocks

描述
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.2
  • MCM Integration

2.3.1
  • Version 0.9.1 compatibility

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.
34 条留言
Comrade! 9 月 28 日 下午 12:41 
Oh that's great to hear! Thanks for all the hard work by the way!
nbk_redspy  [作者] 9 月 28 日 上午 5:46 
This mod is compatible with the 0.9.6 opt in beta.

The compatibility info for all of my mods can be found here:
https://gist.github.com/NBKRedSpy/c48ca611b47e905158f972990f0ed83f
nbk_redspy  [作者] 9 月 28 日 上午 5:45 
That is a great point. I'll go though my mods and add a comment on their compatibility.
Comrade! 9 月 28 日 上午 1:35 
Heya, is this compatible with 0.9.6? It's a bit unclear :(
nbk_redspy  [作者] 8 月 6 日 上午 10:50 
I've considered adding the option to set rules for items that have few chips. For example, the merc classes. If feels a bit unfair to be able to get the tunnel rat so quickly.
Golianther 8 月 5 日 下午 10:58 
chips either spawn too few or not at all. at least they are unique each time. set on always.
nbk_redspy  [作者] 4 月 17 日 下午 12:19 
Unless you set the mode to “always”, you will still get duplicates. See the docs above for details.
LLIPAM 4 月 17 日 上午 11:02 
For some reason I'm getting dublicates
soppyamoeba8402 4 月 16 日 下午 4:01 
It's already compatible
LLIPAM 4 月 16 日 下午 1:41 
Any plans on compatibility with 0.9?