You are viewing a potentially older version of this package. View all versions.
Ceyolf-SummonInheritanceFix-1.6.0 icon

SummonInheritanceFix

Summons, drones and allies inherit your items, with summon-loop protection: items that spawn allies (Smouldering Comet, Queen's Gland...) are detected automatically and never inherited.

By Ceyolf
Date uploaded a month ago
Version 1.6.0
Download link Ceyolf-SummonInheritanceFix-1.6.0.zip
Downloads 215
Dependency string Ceyolf-SummonInheritanceFix-1.6.0

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2117 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2117
Rune580-Risk_Of_Options-2.8.2 icon
Rune580-Risk_Of_Options

A convenient API for adding BepInEx ConfigEntry's to a option menu

Preferred version: 2.8.2

README

SummonInheritanceFix

Your drones, turrets and other allies inherit your items and equipment, with protection against summon loops.

The problem this fixes

If an item spawns allies (for example the Smouldering Comet), and your drones inherit it, every drone spawns its own ally. With chains of summons the ally count explodes.

What it does

  • Startup scan: reads the item-behaviour classes of your installed mods. Items whose code spawns allies are detected and never inherited. The detected items are listed in BepInEx/LogOutput.log (search for ItemBehaviorScanner).
  • Built-in blocklist for vanilla summon items (Queen's Gland, Empathy Cores, Halcyon Seed, Squid Polyp, Happiest Mask, Defiant Gouge, Newly Hatched Zoea, The Back-up...).
  • Runtime watcher: if an inheriting minion ever summons an ally, the new ally cannot inherit, and the responsible item is learned automatically (saved to LearnedSummonItems).
  • Safety cap: at most 40 inheriting minions per player (configurable).

Configuration

All options are in BepInEx/config/ and in Risk of Options. Section 5. Loop Protection has the new settings: BlockSummonItems, BlockSummonEquipment, ExtraSummonItems, ExtraSummonEquipment, MaxInheritingMinionsPerOwner, AutoDetectSummoners, ProactiveBehaviorScan, VerboseLogging, DumpItemCodenames. Section 6. Performance has MaxItemChangesPerFrame and MaxMinionSyncsPerFrame (lower = smoother with many minions/items; minions still end up with the same items). 4. Safety & Blacklist has InheritHiddenItems.

If an item that should inherit gets blocked by mistake, set ProactiveBehaviorScan = false and please report the item name.

Compatibility

  • Host-side logic (runs where the run is hosted).
  • Do not install together with the original SummonInheritance mod.
  • Tested with the Smouldering Comet from Spikestrip.

Credits and takedown

This is a fork of the original SummonInheritance mod. The original source does not name its author or license, so I cannot credit them by name; all credit for the original inheritance system goes to its author. The loop protection (summon blocklist, startup scan, runtime watcher, safety cap) was added in this version.

If you are the original author and want this fork removed, renamed or credited differently, contact me at: [email protected] and I will do it.

CHANGELOG

Changelog

1.7.1

  • Just some corrections in files and versions, plus some more optimizations.

1.7.0

  • New optional setting HideMinionAuraVisuals (section 7. Visuals, also in Risk of Options): hides the auras, rings and indicators that items create around your minions. Cosmetic only, the effects keep working. Helps readability and frame rate with many minions. Works per player, host not required.
  • MinionVisualsToKeep keeps chosen auras visible; LogMinionVisuals lists what was found.

1.6.0

  • Minions keep the items they already own: the mod now only manages the stacks it gave itself and never takes away a stack that is not its own.
  • Hidden internal helper items are no longer copied to minions (InheritHiddenItems brings the old behaviour back).
  • Smoother frames: the work is limited by the number of inventory changes per frame (MaxItemChangesPerFrame), and a minion with many items is filled in over a few frames.
  • Long-run stability: all runtime state is reset at the start and end of every run; enemies no longer cost a check when they spawn; duplicate checks for the same minion are merged; the expensive call-stack analysis is rate limited.

1.5.1

  • ExtraSummonItems / ExtraSummonEquipment now accept in-game names (e.g. Vengeful Spirit) as well as codenames.
  • Startup scan also covers the game's own item behaviours (ScanGameItems), so new vanilla items that spawn allies can be detected automatically.

1.5.0

  • Performance: inventory events from enemies/minions are rejected in O(1); item changes in the same frame collapse into one sync.
  • Performance: item rules (tiers, blacklist, summon lists) are cached instead of re-evaluated for every item on every sync.
  • Performance: minions are synced a few per frame (MaxMinionSyncsPerFrame, default 3) instead of all at once.
  • Blocked-item log lines are written once per config change instead of on every sync.

1.5.0

  • Startup scan of mod item-behaviour classes: items that spawn allies are never inherited.
  • Runtime watcher attributes summons to ItemBehavior classes found on the call stack.

1.2.0

  • Runtime watcher (MasterSummon) with automatic learning of summon items.

1.1.0

  • Built-in summon item/equipment blocklist, per-owner cap on inheriting minions.