Library/API to easily change CharacterBody.Recalculate() Create a list of hook to add/remove stats, and ItemSpecific hook, even PostRecalculate hook that apply before Health/Shield update (which is a bit issue if you edit maxHealth/MaxShield after)
Plugin ID : com.Plexus.ModRecalculate
CharacterDefault*** : Before Item are apllied
***Effect : Item specific hook
***Recalculate : Applyed after all item are applied
PostRecalculate apply hook before the Health and Shield are updated
Hook are additional,if you want to act multiplicative, do it in PostRecalculate
Cooldown hook are MULTIPLICATIVE with other mod/BaseValue, if you want to make it Additional/Substractif, do it in PostRecalculate
To modify Items stats on character, use the ModifyHook with ModItemManager.AddStatToItem()
To overide an existing hook (ignoring Original or Other hook) use the ResetHook(string HookName,bool TotalReset) function, please, only use it only when REALY needed, a hook can only be overided Once !
To Create effect, Create a child class of ModHitEffect and in Modify item do :
AddOnHitEffect(YOURITEMINDEX, new YOURCHILDCLASS());
for example use "OnHitAll.cs" file, it contain all default rewriten effect
LIST (IN ORDER OF CALL) :
ModifyItem
CharacterDefaultHealth
InfusionEffect
KnurlMaxHpEffect
ItemBoosHpEffect
HealthRecalculation
CharacterDefaultShield
TranscendenceEffect
ShieldItemEffect
ShieldRecalculation
CharacterDefaultRegen
SlugEffect
KnurlRegenEffect
HealthDecayEffect
RegenRecalculation
CharacterDefaultSpeed
RedWimpHoofEffect
EnergyDrinkEffect
BettleJuiceSpeedEffect
MoveSpeedRecalculation
JumpPower
JumpCount
CharacterDefaultDamage
BettleJuiceDamageEffect
DamageBoostEffect
DamageRecalculation
CharacterDefaultAttackSpeed
SyringueEffect
BettleJuiceAttackSpeedEffect
AttackSpeedRecalculation
CharacterDefaultCrit
GlassesEffect
CritRecalculation
CharacterDefaultArmor
BucklerEffect
ArmorRecalculation
AlienHeadEffect
CoolDownRecalculation
PrimaryCoolDownMultiplier
PrimaryStackCount
SecondaryCoolDownMultiplier
SecondaryStackCount
UtilityCoolDownMultiplier
UtilityStackCount
PostRecalculate
0.5.2
fix NullReferenceException on ModRecalculate again (wrong dll was shipped...)
0.5.2
Fix additional skill stock bug
fix NullReferenceException on ModRecalculate
0.5.1
Added OnHitAll effects (a variable to change in the Child of ModHitEffect)
0.5.0
Added OnHitEnemy Effect customization
Added access to default item Stats and Effect using DefaultModItemDictionary
0.4.0
Added the ModItem and ModItemManager to add any stats to any items
Stats are limited to DirectItem effect, so buff like banner don't work
0.3.0
Added Ability to overide hook, either allowing or blocking other hooks
0.2.0
Added specific hook for DamageBoostEffect (multiplied with Character DefaultDamage
Added Item Specific public value to edit from ModifyItem Hook
Fixed Slug having no effect
Fixed a LogSpamming bug
0.1.0
Initial Release