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

Script does not mark for infuse #3

Open
WindedHero opened this issue Jun 24, 2019 · 0 comments
Open

Script does not mark for infuse #3

WindedHero opened this issue Jun 24, 2019 · 0 comments

Comments

@WindedHero
Copy link

WindedHero commented Jun 24, 2019

Running the script does not tag items to infuse.

arm.power is a string, whereas maxPower is an integer, so comparing them fails and will never tag for infusion.
arm.tag is never None and so will never tag items for infusion.

To correct the issue:

  1. skip header row during CSV read -- if you don't do this, int() in next step will croak by trying to int("Power")
  2. use int() on arm.power so arm.power == maxPower functions correctly later on
  3. change if statement during infusion tagging to match changes above
  4. add headers to output csv code, since step 1 removes header from data.

if (row[4] != 'Exotic') and (row[0] !='Name'):
...
arm.power = int(row[8])
...
if arm.tag is '' and arm.power == maxPower:
...
data.writerow([ "Hash", "Id", "Tag", "Notes" ])

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

No branches or pull requests

1 participant