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

Determine how to model duels #5

Open
Palfore opened this issue Jun 19, 2020 · 0 comments
Open

Determine how to model duels #5

Palfore opened this issue Jun 19, 2020 · 0 comments
Labels
Combat Related to combat code enhancement New feature or request

Comments

@Palfore
Copy link
Owner

Palfore commented Jun 19, 2020

Determine how to structure the code to model the autonomous combat between two fighters (player or monster).

Here are some considerations:

  • A fighter does not have a max hit or accuracy without their opponent (i.e. it depends on the opponent).
  • A monster can have multiple attacks (eg: A dragon can use dragonfire & melee).
  • A fighter cannot have multiple attacks, since this would require an active switch (i.e. not autnonomous) or come from a single attack (think proc chance).

To treat these on equal footing, a fighter should have attacks registered to it. Those attacks should get joined when a damage distribution is needed. This would mean that all the special effects, like bolts, should be separated from their normal attack and both a registered to a fighter with respective probabilities.

Thus, the current state is that attacks should be the base unit.

@Palfore Palfore added the enhancement New feature or request label Jun 19, 2020
@Palfore Palfore added the Combat Related to combat code label Apr 16, 2021
@Palfore Palfore changed the title Refactor player.py and monster.py code. Determine how to model duels Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Combat Related to combat code enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant