You are viewing a potentially older version of this package. View all versions.
Moffein-AssistManager-1.2.0 icon

AssistManager

Allows certain on-kill effects to trigger off of kill assists. Server-side and Vanilla-compatible.

Date uploaded 2 months ago
Version 1.2.0
Download link Moffein-AssistManager-1.2.0.zip
Downloads 12145
Dependency string Moffein-AssistManager-1.2.0

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2115 icon
bbepis-BepInExPack

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

Preferred version: 5.4.2115
RiskofThunder-R2API_Core-5.1.1 icon
RiskofThunder-R2API_Core

Core R2API module

Preferred version: 5.1.1
RiskofThunder-R2API_DamageType-1.1.1 icon
RiskofThunder-R2API_DamageType

API for registering damage types

Preferred version: 1.1.1

README

Allows certain on-kill effects to trigger off of kill assists. Everything can be toggled in the config.

Affected Things

  • Bandit's Specials

  • Topaz Brooch

  • Chronic Expansion

  • Berzerker's Pauldron

  • Hunter's Harpoon

  • Infusion

  • Brainstalks

  • Frost Relic

  • Resonance Disk

  • Soulbound Catalyst

  • Wake of Vultures

For Devs

Changes from this mod can be toggled in-game by calling SetEnabled(false) on the change.

To add an assist, add to AssistManager.HandleAssistInventoryActions or AssistManager.HandleAssistActions depending on whether or not you need the inventory to run your code. Use AssistManager.HandleAssistInventoryCompatibleActions or AssistManager.HandleAssistCompatibleActions if you do not want to have the Assist class in your code (ex. code is using SearchableAttribute).

You will need to explicitly check to make sure killerBody is not the same as Assist.attackerBody. This is required since there are a few niche cases where you might not want to do this.

If you want an "on kill with slight grace period" effect, use AssistManager.instance.AddDirectAssist(), refer to Bandit's Specials to see how it's set up, and subscribe to the HandleDirectAssist delegates instead. This needs to be called BEFORE the damage is processed.

CHANGELOG

1.2.0

  • Fixed Bandit revolver skills being able to trigger assists twice.

  • For Devs:

    • Killer is no longer added to the assist list.
    • Direct Assists now use separate HandleDirectAssist delegates.

    Mods that rely on this will need to be recompiled with the latest AssistManager dll.

1.1.0

  • Added extra delegates that don't expose the Assist class, for compatibility with mods that use SearchableAttribute.
    • HandleAssistCompatibleActions
    • HandleAssistInventoryCompatibleActions

1.0.0

  • Release