-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame_data.py
More file actions
51 lines (49 loc) · 4.16 KB
/
game_data.py
File metadata and controls
51 lines (49 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import random
def get_shop_items():
return {
"swords": [
{"name": "Steel Sword", "cost": 4, "type": "steel", "item_type": "sword", "damage": 2},
{"name": "Iron Sword", "cost": 3, "type": "iron", "item_type": "sword", "damage": 1.75},
{"name": "Bronze Sword", "cost": 2, "type": "bronze", "item_type": "sword", "damage": 1.5},
{"name": "Wood Sword", "cost": 1, "type": "wood", "item_type": "sword", "damage": 1.25},
],
"armors": [
{"name": "Steel Armor", "cost": 4, "type": "steel", "item_type": "armor", "defense": 2},
{"name": "Iron Armor", "cost": 3, "type": "iron", "item_type": "armor", "defense": 1.75},
{"name": "Chain Armor", "cost": 2, "type": "chain", "item_type": "armor", "defense": 1.5},
{"name": "Leather Armor", "cost": 1, "type": "leather", "item_type": "armor", "defense": 1.25},
],
"trinkets": [
{"name": "Speed Ring", "power": "speed", "type": "ring", "cost": 5, "item_type": "trinket", "speed": 1},
{"name": "Strength Ring", "power": "strength", "type": "ring", "cost": 5, "item_type": "trinket", "damage": 5},
{"name": "Health Ring", "power": "health", "type": "ring", "cost": 5, "item_type": "trinket", "health": 5},
{"name": "Speed Amulet", "power": "speed", "type": "amulet", "cost": 5, "item_type": "trinket", "speed": 1},
{"name": "Strength Amulet", "power": "strength", "type": "amulet", "cost": 5, "item_type": "trinket", "damage": 5},
{"name": "Health Amulet", "power": "health", "type": "amulet", "cost": 5, "item_type": "trinket", "health": 5},
{"name": "Speed Charm", "power": "speed", "type": "charm", "cost": 5, "item_type": "trinket", "speed": 1},
{"name": "Strength Charm", "power": "strength", "type": "charm", "cost": 5, "item_type": "trinket", "damage": 5},
{"name": "Health Charm", "power": "health", "type": "charm", "cost": 5, "item_type": "trinket", "health": 5}
],
"potions": [
{"name": "Healing Potion I", "type": "healing", "potentcy": 1, "cost": 1, "item_type": "potion"},
{"name": "Healing Potion II", "type": "healing", "potentcy": 2, "cost": 2, "item_type": "potion"},
{"name": "Healing Potion III", "type": "healing", "potentcy": 3, "cost": 3, "item_type": "potion"},
{"name": "Healing Potion IV", "type": "healing", "potentcy": 4, "cost": 4, "item_type": "potion"},
{"name": "Agility Potion I", "type": "agility", "potentcy": 1, "cost": 1, "item_type": "potion"},
{"name": "Agility Potion II", "type": "agility", "potentcy": 2, "cost": 2, "item_type": "potion"},
{"name": "Agility Potion III", "type": "agility", "potentcy": 3, "cost": 3, "item_type": "potion"},
{"name": "Agility Potion IV", "type": "agility", "potentcy": 4, "cost": 4, "item_type": "potion"},
{"name": "Strength Potion I", "type": "strength", "potentcy": 1, "cost": 1, "item_type": "potion"},
{"name": "Strength Potion II", "type": "strength", "potentcy": 2, "cost": 2, "item_type": "potion"},
{"name": "Strength Potion III", "type": "strength", "potentcy": 3, "cost": 3, "item_type": "potion"},
{"name": "Strength Potion IV", "type": "strength", "potentcy": 4, "cost": 4, "item_type": "potion"},
]
}
def get_enemy_templates():
return [
{"name": "Goblin", "health": 25, "damage": 25, "agility": 1.5, "coin_value": random.choice([8, 9, 10, 11]), "detectable": True, "aggressive": True},
{"name": "Zombie", "health": 30, "damage": 20, "agility": 1.75, "coin_value": random.choice([4,5,6]), "detectable": True, "aggressive": "Neutral"},
{"name": "Skeleton", "health": 20, "damage": 30, "agility": 1.25, "coin_value": random.choice([5,6,7,8]), "detectable": False, "aggressive": True},
{"name": "Orc", "health": 50, "damage": 50, "agility": 2, "coin_value": random.choice([11,12,13]), "detectable": True, "aggressive": True},
{"name": "Ghost", "health": 50, "damage": 10, "agility": 1.25, "coin_value": random.choice([4,5,6]), "detectable": False, "aggressive": False},
]