ZetaArcade-CQ_SBT_Patch icon

CQ SBT Patch

[v81] Temporary 1-line of code fix for an issue between Configurable Quota + ScienceBirdTweaks

Last updated 21 hours ago
Total downloads 38
Total rating 0 
Categories Bug Fixes BepInEx Client-side Server-side Mods Misc
Dependency string ZetaArcade-CQ_SBT_Patch-0.0.1
Dependants 1 other package depends on this package

This mod requires the following mods to function

seechela-Configurable_Quota-2.0.0 icon
seechela-Configurable_Quota

Allows users to configure every aspect of the quota the way they want.

Preferred version: 2.0.0

README

Configurable Quota + ScienceBirdTweaks Patch

Literally just sets scrapLevel to null after ConfigurableQuota's SpawnScrapInLevel_Prefix runs, if DynamicScrapAmount is disabled. Without this mod, when playing with ScienceBirdTweaks and using it's own Interior scrap bonuses, and when using Configurable Quota, a reference to the level is saved alongside how much min/max scrap CQ thinks it should have inside of CQ's patches, but these dont factor in ScienceBirdTweaks messing with the level min/max scrap items. This then causes those bonus scraps to persist between rounds, even when the interior is different. From what i know, this issue has only come up now with the 2.0.0 update of Configurable Quota, and sadly it applies this patch even if you disable the Dynamic Scrap Amount related settings, hence this quick patch.
To be on the safe side, i also included matty's networky thingamajiggy in case clients not having the mod would somehow break stuff. The host and all clients need the mod.
Requires Configurable Quota. Does nothing if DynamicScrapAmount is enabled in CQ. Might solve issues relating to mods i dont know about that change scrap min/max amounts in the same way ScienceBirdTweaks does.
I also had to rename the project TWICE because i kept mistyping CQ SBT as CBT or some bullshit