The days sort of blur together over the summer without something to keep them separate; hopefully when classes start for me in a week that'll help.
I added an Effect class. Right now it's only set up to modify the basic statistics; while I might want to get something fancier later, most of the things I can think of (buffs, debuffs, poisons, heal over times, etc) will be covered by this.
Effect is a class with ints for duration, ATK, DEF, AP, HP, mHP, MP, mMP, resP, resF, resE, and resC. The Person class now has an array of Effects called Effs that is all the Effects on it; there's also a function for cATK (and all the other variables) that goes through each effect and adds their modifier to the base value.
The primary thing missing now are multipliers. I'm not sure I'll want them, and if I do it would be relatively easy to code (essentially, I would also have it add up a temporary multiplier as well as a temporary base, and then multiply them at the end before returning). I almost want to code it now in case, but it seems silly to put in possibly pointless code.
I've been putting off the battle interface. That won't be possible for too much longer :P
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment