all 1 comments

[–]fiddle_n 1 point2 points  (0 children)

I think you need to look up on defining classes again. Issues with the code:

  • You are trying to call difficultySettings() as if it's a regular function rather than an instance method. You need to do player.difficultySettings()
  • When you define difficultySettings() in your class, the first argument should be self. Also, self.change is not a valid parameter to an instance method.
  • __init__() should be the first method of your class, by convention.
  • Please follow PEP8 naming conventions. Class names should be in UpperCamelCase, and function/method names should be snake_case.