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

Streamlining & Combat #3

Merged
merged 2 commits into from Jan 8, 2022
Merged

Streamlining & Combat #3

merged 2 commits into from Jan 8, 2022

Conversation

Quadrum1
Copy link
Contributor

@Quadrum1 Quadrum1 commented Jan 8, 2022

Streamlined some parts of the sell and mining function.
Removed redundant variables.
addMessage() is now used directly, without a buffer variable in front of it.

Combat:
Added dictionary to enemies.js to fetch data.
Removed cases where enemies where able to heal, since their defense was higher than player attack.
Modulized doCombat() to include dictionary fetching

Streamlined some parts of the sell and mining function.
Removed redundant variables.
addMessage is now used directly ,without a buffer variable in front of it.
Added dictionary to enemies.js to fetch data.
Removed cases where enemies where able to heal, since their defense was higher than player attack.
Modulized doCombat() to include dictionary fetching
@Quadrum1 Quadrum1 changed the title Streamlining Streamlining & Combat Jan 8, 2022
@Winnrman
Copy link
Owner

Winnrman commented Jan 8, 2022

Very helpful. The streamlining definitely helps with consistency, and the new combat dictionary approach is intelligently designed. Approved.

@Winnrman Winnrman merged commit 2855f7e into Winnrman:main Jan 8, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants