-
Notifications
You must be signed in to change notification settings - Fork 754
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
Battle & skill code cleanup #73
Comments
|
About no.2 |
In no.4, how would those function pointers be assigned to? How would you make it know i.e. that the function |
I didn't consider moving that particular information to the database yet. So they would be assigned in some sort of |
Okay, sounds good then. I was worried about excessive amounts of symbols requiring to be defined, in case you wanted to make them assignable (i.e. by function name) directly from the skill_db. |
This is something I've been thinking about for long time now.
int battle_calc_skillratio
is placed inbattle.c
now, instead ofskill.c
)skill_db*.txt
files (eg already mentioned skill damage ratios, certain skills that bypass X, etc)switch (skill_id)
in favor of expanding internal skill database representation with function pointers to perform extra actions unique for given skill id (eg. overriding default skill damage ratio calculation, adding extra conditions or extra effects that would be too complex to represent in plain txt db files); in future allow overriding these functions by plugins for easy skill modificationsOpinions, suggestions?
The text was updated successfully, but these errors were encountered: