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

Implement Combat System #16

Open
duysqubix opened this issue Nov 30, 2020 · 1 comment
Open

Implement Combat System #16

duysqubix opened this issue Nov 30, 2020 · 1 comment
Labels
planned feature feature that needs to be implemented

Comments

@duysqubix
Copy link
Owner

implements a command system

@duysqubix duysqubix added the planned feature feature that needs to be implemented label Nov 30, 2020
@duysqubix
Copy link
Owner Author

duysqubix commented Nov 30, 2020

@ChrisLR

Goal of the first iteration will be a CombatHandler that holds CombatInstances
Each CombatInstance will hold the references to fighters and context stuff like initiative, maybe in json format?
The CombatHandler will be where the flow is defined but not where each piece will be defined, I mean by that it will call related functions and only keep the things together.
Only the auto attack will be implemented first and very loosely, just as a starting point.
Combat messages will be split in two parts and taken from dicts of combat styles, say oneHandedSword, that will contain the attack string to be formatted,
the second part will be the defense string or the wound string.
Defense string will need to be altered by type of defense and perhaps type of attack, could be a dict of dict if we keep to JSON
Wound messages will need to be altered by the damage type, damage lethality and wounds created
At first, I will only implement damage type and damage lethality
This lethality will be based off damage given vs health remaining, so the player can't be killed by a scratch and each wounds are progressively worse as the combat goes on until the "coup de grace" which could be a special "execution" message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
planned feature feature that needs to be implemented
Projects
None yet
Development

No branches or pull requests

1 participant