Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capacitor Transfer amount for remote cap transfers borked when projecting on other ships #585

Closed
ZarosTenjin opened this issue May 1, 2016 · 1 comment
Labels
bug Confirmed to be a bug fixed This issue has been fixed! Oh joy!

Comments

@ZarosTenjin
Copy link

ZarosTenjin commented May 1, 2016

Heya,

i just updated to 1.21.0 and noticed a little different behavior on the amount of cap thats is projected on a fit by remote rep transfers
pyfa 1 21 0 - python fitting assistant_002

Disabling one transfer halves the 30k GJ ..

Example is an augoror projecting onto itself but also confirmed it with projecting onto other fits as well.

It seems to be a problem with the calculation instead of the module since with other module its also inflated but also reduced to reflect the meta tier of the module...
pyfa 1 21 0 - python fitting assistant_003

Cheers
Zaros

@blitzmann blitzmann added the bug Confirmed to be a bug label May 1, 2016
@blitzmann
Copy link
Collaborator

Oh look, I'm setting the amount to the modules max range.

def handler(fit, module, context):
    if "projected" in context:
        amount = module.getModifiedItemAttr("maxRange")
        duration = module.getModifiedItemAttr("duration")
        fit.addDrain(duration, -amount, 0)

Fail (and fixed)

@blitzmann blitzmann added the fixed This issue has been fixed! Oh joy! label May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed to be a bug fixed This issue has been fixed! Oh joy!
Projects
None yet
Development

No branches or pull requests

2 participants