Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code explanation #27

Open
hai061898 opened this issue Mar 17, 2024 · 0 comments
Open

code explanation #27

hai061898 opened this issue Mar 17, 2024 · 0 comments

Comments

@hai061898
Copy link

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
    "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant