I\'m learning python and am trying to write a wound system based on hot zones of a character. Here\'s what I\'ve written. Don\'t judge me too much.
class Charact
Every local variable assigned within a function is thrown away as soon as the function ends. You need to prepend self.
to those names so that they are saved as instance variables, such as self.l_arm
, self.r_arm
, and so on. The same goes for the wound pretty names, if you plan on using those objects later on.