This commit is contained in:
@@ -26,7 +26,8 @@ public class Gen7CaptureLibrary : ICaptureLibrary
|
||||
}
|
||||
|
||||
byte bonusStatus = 1;
|
||||
target.RunScriptHook(x => x.ChangeCatchRateBonus(target, captureItem, ref bonusStatus));
|
||||
target.RunScriptHook<IScriptChangeCatchRateBonus>(x =>
|
||||
x.ChangeCatchRateBonus(target, captureItem, ref bonusStatus));
|
||||
|
||||
var modifiedCatchRate = (3.0f * maxHealth - 2.0f * currentHealth) * catchRate * bonusBall / (3.0f * maxHealth);
|
||||
modifiedCatchRate *= bonusStatus;
|
||||
|
||||
Reference in New Issue
Block a user