Skip to content

Commit

Permalink
add catch rates
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatNateDev committed Aug 3, 2024
1 parent 2ddd8a5 commit 8ed8277
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions scripts/main_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func Move4():
func get_random_mon(lvl):
getrandmon.emit(lvl)
func retux_mon(sprite, type):
data.Enemy.pokemon = sprite
$Cast/Enemy/Enemy_sprite.texture = load("res://assets/pokemon/"+sprite+"/front.png")
Globals.Enemy_type = type
func request_type(pokemon):
Expand Down
12 changes: 8 additions & 4 deletions scripts/pokemon.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ extends Control
class_name pokemon
signal pkmn_data(pkmn)
@export var zigzagoon = {
"type": "Normal"
"type": "Normal",
"catch" : 255
}
@export var mudkip = {
"type" : "Water"
"type" : "Water",
"catch" : 45
}
@export var torchic = {
"type" : "Fire"
"type" : "Fire",
"catch" : 45
}
@export var treecko = {
"type" : "Grass"
"type" : "Grass",
"catch" : 45
}
@export var pkmn = {
"zigzagoon": zigzagoon,
Expand Down

0 comments on commit 8ed8277

Please sign in to comment.