Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Python RPG game
#2
Hi, welcome to the forum, your player has a spell hack that causes the players mp to always be the players max mp
getMP(self) is returning self.max_mp
Note i also noticed self.msx_hp max spelt wrong but it is spelt wrong in all places used so doesn't cause any problems but may do for you later.
class Person:
    def __init__(self,hp, mp, atk, df, magic):
        self.msx_hp = hp
        self.hp = hp
        self.max_mp = mp
        self.mp = mp
        ....
        ....

    def getHP(self):
        return  self.hp
 
    def getMaxHP(self):
        return self.msx_hp
 
    def getMP(self):
        return self.max_mp
 
    def getMaxMP(self):
        return self.max_mp
 
    ....
    ....
   
Reply


Messages In This Thread
Help with Python RPG game - by Psypher1 - Apr-24-2019, 06:57 AM
RE: Help with Python RPG game - by Yoriz - Apr-24-2019, 08:52 PM
RE: Help with Python RPG game - by Psypher1 - Apr-26-2019, 06:24 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020