NachoKai / arena-survivors

⚔️ Game made with Firebelley Games Udemy course: "Learn how to create a complete 2D arena survival roguelike game from start to finish in Godot engine 4" and personal touches.
https://kaiafa.itch.io/arena-survivors
7 stars 1 forks source link

code explanation #27

Open hai061898 opened 6 months ago

hai061898 commented 6 months ago

First of all, thank you for sharing this code source. But there are some things I don't understand, I hope you can explain

  1. What does the variable max_quantity in the file ability_upgrade.gd mean?
  2. I don't really understand this part " func on_ability_upgrade_added(upgrade: AbilityUpgrade, current_upgrades: Dictionary): if not upgrade: return if upgrade.id == "axe_count": axe_count = current_upgrades.axe_count.quantity + 1
    "