summaryrefslogtreecommitdiff
path: root/src/game-server/skillmanager.h
AgeCommit message (Collapse)AuthorFilesLines
2013-08-26Removed skillsErik Schilling1-103/+0
This removes support for skills. The plan is to allow to implement the skills as they were implemented before via attributes. This adds a lot more flexibility to the server creators while also removing the confusion about skills and attributes. So this change does: - Remove the skillmanager with all its calls, the skill xml file, etc - Move exp giving to the script engine: --> Allows to implement the old behaviour (and more) in the scripts - Remove the exp tag from the monster definition: + Since the server itself does not require it anymore it feels wrong to require it for EVERY monster. TODO: Add a system to add properties to the monsters/items.xml which allow defining things like the exp and allows to read the value from the script engine. + Small drawback, but it should not be hard to implement this property system. - Drop the level networking and calculation. + level calculation will happen via the attribute system later but i would prefer to do this in a seperate patch since this patch already got longer than expected especially since this requires to make setting correction points and available status points scriptable. + The level would be simply set as a attribute, the int number of it will be the level, the remaining digits will be the % number till the next levelup. - NOT remove any existing skill tables in the database update scripts. + There is no way to move them into the attribute table in a unified way (there are too many different way they could have been used). So server admins have to care about moving theirs skills to attributes themselves. + Keeping the old tables does not hurt for existing databases. So removing does not give any advantage/is required anyway. The now obsolote info about the EXP transaction is not removed for updated databases either. (The update script basically only bumps the version number without doing anything else. - bump the network protocol version --> old clients won't be able to connect. - bump the database version --> serveradmins need to update their db.
2013-04-29Single xml solutionPrzemysław Grzywacz1-6/+7
Mana-mantis: #506.
2013-01-09Replaced 'unsigned int' with 'unsigned'Thorbjørn Lindeijer1-8/+8
Same thing, but shorter.
2013-01-08Work on (Auto)Attack system.Erik Schilling1-0/+2
During the implementation bjorn and I agreed to limit the number of attacks that can be used in the same tick to one. This makes a lot of stuff easier and the client cannot display two frames at the same time Things done: - Implemented setting of attacks when equipping/unequipping items - Single place where the xml attack node is parsed - Finished attack logic - Unified the attack handling of monsters and characters - Added a global cooldown after attack use (not only for next use of same attack) - Removed the temponary attributes for the monster attack values - Priorities for all attacks - Rewrote the attack core: - Attacks now have this attributes: - warmup -> time a attack needs after starting it to actually deal the damage - cooldown -> time a attack needs after dealing damage before another attack can be used - reuse -> time before the same attack can be used again - If no attack is performed at the moment the following is done: - make a list with all ready attacks - check for attack that has the necessarily range and highest priority - start this attack (inform client about it) - when warmup is finished -> trigger damage - when cooldown is finished -> allow to use other (or the same if reusetimer allows) attacks TODO: - sync client with this to allow better timed animations
2012-03-17Made skill related function capable of taking the skill name as parameterErik Schilling1-1/+8
Reviewed-by: bjorn.
2011-09-28Added a default skill id getter in the skill manager.Yohann Ferreira1-0/+4
I also added a link to the skillmanager object in its header file. This will later be used to get info from elsewhere than the server main loop.
2011-08-26Rewrote the skill manager the same way as the item manager.Yohann Ferreira1-7/+48
This will permit better handling of both skills names and id. This is needed to start reworking on the auto-attack system.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-0/+48
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.