You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Determine how to structure the code to model the autonomous combat between two fighters (player or monster).
Here are some considerations:
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.
The text was updated successfully, but these errors were encountered: