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

Build data file for CombatHandler #9

Open
kikisaints opened this issue Aug 11, 2023 · 0 comments
Open

Build data file for CombatHandler #9

kikisaints opened this issue Aug 11, 2023 · 0 comments
Assignees
Labels
refactor/refinement Improves existing features, code, or the project

Comments

@kikisaints
Copy link
Owner

kikisaints commented Aug 11, 2023

Should have .xml file that stores all combat information that's loaded up into a data list for reference during gameplay (currently just pulls static data from a switch statement at runtime, this isn't good). This handler is for both monsters and the PC.

The data that should be in the .xml file is:

  • Damage formula based on attack type, character stats, and weapon
  • Subset string list of combat options based on weapon type being wielded
  • Label for whether the attack type is a monster-only attack, player-only attack, or either

This .xml file should be called CombatData.xml and will be loaded and handled by the CombatHandler.cs file (which today has the hard-coded info).

@kikisaints kikisaints added the refactor/refinement Improves existing features, code, or the project label Aug 11, 2023
@kikisaints kikisaints self-assigned this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor/refinement Improves existing features, code, or the project
Projects
None yet
Development

No branches or pull requests

1 participant