-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobals.gd
More file actions
71 lines (59 loc) · 2.64 KB
/
Globals.gd
File metadata and controls
71 lines (59 loc) · 2.64 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#Globals.gd
extends Node
# Weapon and sounds definitions
var weapons = {
"Sword": {
"Swing": {"damage": 15, "Stamina": 15, "description": "Swing your sword, deal 15 damage", "sound": "res://assets/audio/sword_swing.mp3"},
"Riposte": {"damage": 15, "Stamina": 30, "description": "Block and attack deal 15 damage", "sound": "res://assets/audio/sword_riposte.wav"},
"Spin Attack": {"damage": 20, "Stamina": 40, "description": "Spin around and deal 20 damage, cannot be blocked", "sound": "res://assets/audio/sword_spin_attack.wav"}
},
"Spear and Shield": {
"Stab": {"damage": 10, "Stamina": 15, "description": "Stab with your spear, deal 10 damage and start bleeding", "sound": "res://assets/audio/spear_stab.wav"},
"Shield Block": {"damage": 0, "Stamina": 10, "description": "Block with your shield, deal 0 damage", "sound": "res://assets/audio/shield_block.mp3"},
"Shield Bash": {"damage": 10, "Stamina": 40, "description": "Slam your shield at the enemy, stunning them", "sound": "res://assets/audio/shield_bash.mp3"}
},
"Mace": {
"Hit": {"damage": 25, "Stamina": 20, "description": "Hit with your mace, deal 25 damage", "sound": "res://assets/audio/mace_hit.mp3"},
"Break Shield": {"damage": 15, "Stamina": 30, "description": "Negate enemy's block, dealing 15 damage", "sound": "res://assets/audio/mace_break_shiedl.wav"},
"Ground Slam": {"damage": 0, "Stamina": 15, "description": "Slam the ground stunning enemy for 1 turn", "sound": "res://assets/audio/mace_ground_slam.mp3"}
}
}
var damage_moves = ["Swing","Spin Attack", "Stab", "Shield Bash", "Hit", "Break Shield", "Ground Slam"]
var block_moves = ["Block", "Riposte", "Shield Block"]
var stun_moves = ["Shield Bash", "Ground Slam"]
var bleed_moves = ["Stab"]
var unblockable_moves = ["Spin Attack", "Break Shield"]
#
#"Bow and Arrow": {
#"Shoot": {"damage": 10, "Stamina": -20, "description": "Shoot your bow, deal 10 damage"},
#"Quick shoot": {"damage": 7, "Stamina": -20, "description": "Quickly shoot your bow, deal 7 damage"}
#},
#
#"Flail": {
#"Swing": {"damage": 20, "Stamina": -20, "description": "Swing your flail, deal 20 damage"},
#"Whirlwind": {"damage": 25, "Stamina": -25, "description": "Perform a Whirlwind attack, deal 25 damage"}
#}
#
#
#
#
# Animation for the enemy
var enemyAnimation = "idle"
# Player Attributes
var playerHealth
var playerStamina
var playerWeapon
var playerStun
var playerBleed
var playerBleedTurns
var playerPotions
# Enemy Attributes
var enemyHealth
var enemyStamina
var enemyWeapon
var enemyStun
var enemyBleed
var enemyBleedTurns
var enemyPotions
var enemyMove # The move the enemy will choose
var potionHeal = 10 #the amount of health restored by a potion