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

Fix for #261 #263

Merged
merged 2 commits into from
Feb 23, 2015
Merged

Fix for #261 #263

merged 2 commits into from
Feb 23, 2015

Conversation

OISumeko
Copy link
Contributor

This addresses #261. Launchers do not have a "capacitorNeed" attribute (whilst projectile weapon systems do), so getModifiedItemAttr will return None rather than 0 when checking for cap-affecting modules. Adding an explicit check for None fixes the issue with the fit presented in the report.

Missile launchers do not have a "capacitorNeed" attribute (while other
capless weapon systems do), so getModifiedItemAttr will return None
rather than 0. Added a check for this.
@blitzmann
Copy link
Collaborator

Nice find. However, I would prefer this syntax: if (mod.getModifiedItemAttr("capacitorNeed") or 0) != 0:. If you can change it, I'll go ahead and merge it. =D

@OISumeko
Copy link
Contributor Author

Updated with the requested change.

blitzmann added a commit that referenced this pull request Feb 23, 2015
@blitzmann blitzmann merged commit bb96ecb into pyfa-org:master Feb 23, 2015
@blitzmann
Copy link
Collaborator

Thanks =)

If you want to poke around at some more stuff, #211 has baffled me. =P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants