Cosmetic Effects

If you liked this item, please rate it up on Steam Workshop page.

Author: Anter583

Last revision: 22 Feb, 2024 at 14:25 UTC

File size: 37.87 KB

On Steam Workshop

Description:

Modding resource that allows clothing items to optionally apply status effects when placed in the player’s cosmetic slots.

Uses the variables statusEffectsC, leveledStatusEffectsC and currentAugment/effectsC instead of the conventional ones, allowing items and augments to designate what effects will be applied in each slot type.

Primarily intended for cosmetic & utility effects, applying defensive stats will break the game’s balance.

Note that this mod makes heavy use of inventory calls to function, to my knowledge there’s no way to get around using them for this type of mod without blocking off the vanilla slots and making scriptable ones through a different UI.
Inventory calls are very performance intensive, primarily when the item that’s being returned has a lot of custom parameters attached.

I have done what I can to minimize the performance impact, this mod monitors how long it takes to complete an update cycle and slows down its own update delta if it takes too long.
This is in addition to caching the item’s config file.

This will not mitigate the occasional lagspike, but it should prevent this mod from turning SB into a slideshow if an item with a lot custom data is worn.

Download
Required items:

Click the title to search on this site.


antrUtilityLibSteam Workshop