Esempio n. 1
0
 def set_items(mapping, display):  #pylint: disable=W0613
     tube = Item('tube', 'tube.png', mapping)
     ether = Item('ether', 'ether.png', mapping)
     needle = Item('needle', 'needle.png', mapping)
     items = [tube, ether, needle]
     display.set_items(items)
     pygame.display.flip()
     return items
Esempio n. 2
0
    p2List = []
    for i in range(0, 4):
        choice = secrets.choice(list)
        if i % 2 == 0:
            p1List.append(choice)
            index = list.index(choice)
            del list[index]
        elif i % 2 == 1:
            p2List.append(choice)
            index = list.index(choice)
            del list[index]
    return p1List, p2List


# ITEMS
Potion = Item("Potion", "potion", 'This boi regenerate 20 Hp!', 20)
SuperPotion = Item("Super Potion", "potion", 'This boi regenerates 50 Hp!', 50)
HyperPotion = Item("Hyper Potion", "potion", 'This boi regenerates 200 Hp!',
                   200)

Rock = Item(
    "Rock", "weapon",
    'Its kinda works like grenade but not explode n its plenty of it everywhere!',
    500)

# ITEMS SETS
Player1Set = [{
    "item": Potion,
    "quantity": 2
}, {
    "item": SuperPotion,
Esempio n. 3
0

"""

import numpy as np
from classes.arena import Arena
from classes.knight import Knight
from classes.items import Item

R = Knight('R', 0, 0)
B = Knight('B', 7, 0)
G = Knight('G', 7, 7)
Y = Knight('Y', 0, 7)

# Name, Starting Row, Starting Col, Attack, Defence, Importance
A = Item('A', 2, 2, 2, 0, 1)
D = Item('D', 2, 5, 1, 0, 2)
H = Item('H', 5, 2, 0, 1, 3)
M = Item('M', 5, 5, 1, 1, 4)

knights = [R, B, G, Y]
items = [A, D, H, M]

arena = Arena(8, 8, '|_|')


def set_starting_board():
    for knight in knights:
        starting_row, starting_col = knight.get_starting_position()
        arena.add_knight(knight.get_name(), starting_row, starting_col)
magics = {
    1: Magic(name="Dark Love", dmg=25, mp_cost=15, type=MagicType.dark),
    2: Magic(name="Banana Bread", dmg=30, mp_cost=20, type=MagicType.dark),
    3: Magic(name="Heart Break", dmg=35, mp_cost=25, type=MagicType.dark),
    4: Magic(name="Pink Depression", dmg=40, mp_cost=30, type=MagicType.dark),
    5: Magic(name="Kiss", dmg=15, mp_cost=10, type=MagicType.light),
    6: Magic(name="Lust", dmg=25, mp_cost=20, type=MagicType.light),
    7: Magic(name="Sex", dmg=35, mp_cost=30, type=MagicType.light),
}

items = {
    1: Item(
        name="potion",
        type=ItemType.potion,
        description="heal 50 HP",
        property=50,
        quantity=10,
    ),
    2: Item(
        name="high potion",
        type=ItemType.potion,
        description="heal 100 HP",
        property=100,
        quantity=10,
    ),
    3: Item(
        name="super potion",
        type=ItemType.potion,
        description="heal 300 HP",
        property=300,
Esempio n. 5
0
from classes.items import Item
import random as rd

#create black magic
Fire = spell("fire", 10, 100, "black")
Thunder = spell("thunder", 10, 100, "black")
blizzard = spell("Blizzard", 10, 100, "black")
Meteor = spell("meteor", 10, 100, "black")
Quake = spell("Quake", 120, 140, "black")

#create white magic
cure = spell("cure", 12, 120, "white")
cura = spell("cura", 18, 200, "white")

#create item
potion = Item("potion", "potion", "Heals 50 HP", 50)
hipotion = Item("Hi-potion", "potion", "Heals 50 HP", 50)
superpotion = Item("Super-potion", "potion", "Heals 50 HP", 50)
elixr = Item("elixr", "elixr", "fully restores HP/HP of one party member",
             9999)
superelixr = Item("MegaElixr", "elixr",
                  "fully restores HP/HP of entire party member", 9999)

grenade = Item("grenade", "attack", "Deals 500 damage", 500)

player_spells = [Fire, Thunder, blizzard, Meteor, Quake, cure, cura]
enemy_spells = [Fire, Thunder, cura]
player_items = [{
    "item": potion,
    "quantity": 12
}, {