Пример #1
0
def Josephine(Unit):
    u = Unit
    uHP = WSD[Unit].HP
    uENE = WSD[Unit].ENE
    uSTR = WSD[Unit].STR
    uSPR = WSD[Unit].SPR
    uSKL = WSD[Unit].SKL
    uABL = WSD[Unit].ABL
    uAGI = WSD[Unit].AGI
    uEVA = WSD[Unit].EVA
    uTGH = WSD[Unit].TGH
    uRES = WSD[Unit].RES
    uLCK = WSD[Unit].LCK
    uPAR = WSD[Unit].PAR
    uMAR = WSD[Unit].MAR
    uWT = WSD[Unit].ArmorWT
    choice = input(
        "Select something!\n [St]atcheck!\n [K]nife!\n [I]nventory!\n ")
    if choice == "ST" or choice == "St" or choice == "st":
        print("-----------------")
        print("HP:", uHP)
        print("ENE:", uENE)
        print("STR:", uSTR)
        print("SPR:", uSPR)
        print("SKL:", uSKL)
        print("ABL:", uABL)
        print("AGI:", uAGI)
        print("EVA:", uEVA)
        print("TGH:", uTGH)
        print("RES:", uRES)
        print("LCK:", uLCK)
        print("PAR:", uPAR)
        print("MAR:", uMAR)
        print("WT:", uWT)
        print("-----------------")
    elif choice == "K" or choice == "k":
        choice = input("Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n ")
        if choice == "Q" or choice == "q":
            AttacksOO.Knife(WSD["Josephine"].Weapon1, "Josephine", Wind, 1.3,
                            0, 0, 0).QATK
        elif choice == "N" or choice == "n":
            AttacksOO.Knife(WSD["Josephine"].Weapon1, "Josephine", Wind, 1.3,
                            0, 0, 0).NATK
        elif choice == "H" or choice == "h":
            AttacksOO.Knife(WSD["Josephine"].Weapon1, "Josephine", Wind, 1.3,
                            0, 0, 0).HATK
    elif choice == "I" or choice == "i":
        choice = input("Use which Item?\n [P]otion!\n [R]ed Apple!\n ")
        if choice == "P" or choice == "p":
            Items.HealthPotion("Josephine")
        elif choice == "R" or choice == "r":
            Items.RedApple("Josephine")
Пример #2
0
def Josephine(Josephine):
    u = Josephine
    choice = input(
        "Select an Action!\n [ST] Statcheck!\n [K]nife!\n [I]nventory!\n ")
    uMHP = u + "MHP"
    uENE = u + "ENE"
    uSTR = u + "STR"
    uSPR = u + "SPR"
    uSKL = u + "SKL"
    uABL = u + "ABL"
    uAGI = u + "AGI"
    uEVA = u + "EVA"
    uTGH = u + "TGH"
    uRES = u + "RES"
    uLCK = u + "LCK"
    uPAR = u + "PAR"
    uMAR = u + "MAR"
    if choice == "ST" or choice == "st":
        print("These are the stats for", u, "as they currently stand!")
        print("-----------------")
        print("Health Pool", (WSD[uMHP]))
        print("Energy Pool", (WSD[uENE]))
        print("Strength:", (WSD[uSTR]))
        print("Spirit:", (WSD[uSPR]))
        print("Skill:", (WSD[uSKL]))
        print("Ability:", (WSD[uABL]))
        print("Agility:", (WSD[uAGI]))
        print("Evasion:", (WSD[uEVA]))
        print("Toughness:", (WSD[uTGH]))
        print("Resistance:", (WSD[uRES]))
        print("Luck:", (WSD[uLCK]))
        print("Physical Resist:", (WSD[uPAR]))
        print("Magical Resist:", (WSD[uMAR]))
        print("-----------------")
    elif choice == "K" or choice == "k":
        TLB.SharpKnife("Josephine", "IronKnife10", "Wind")
    elif choice == "I" or choice == "i":
        choice = input("Use which Item?\n [P]otion!\n [R]ed Apple!\n ")
        if choice == "P" or choice == "p":
            Items.HealthPotion("Josephine")
        elif choice == "R" or choice == "r":
            Items.RedApple("Josephine")
Пример #3
0
    def __init__(self, x, y):
        """

        :param x: party's start x coordinate
        :param y: party's start y coordinate
        """
        pg.sprite.Sprite.__init__(self)
        self.image = pg.Surface((P_WIDTH, P_HEIGHT))
        self.rect = pg.Rect(x, y, P_WIDTH, P_HEIGHT)
        self.iter = 0
        self.xvel = 0
        self.yvel = 0
        self.iter_index = 0
        self.up = self.down = self.left = self.right = False
        self.set_animations()
        self.current_anim = None
        self.paused = False
        item = Items.HealthPotion()
        sitem = Items.Weapon('BFG', 228, 228, 'Instant kill')
        self.inventory = [item, sitem]  # content of common inventory
        self.gold = 1000  # Starting gold amount
        self.create_party()
        self.current_alive = self.get_alive()
        self.alive_iter = iter(self.current_alive)