summaryrefslogtreecommitdiff
path: root/src/game-server/autoattack.h
AgeCommit message (Collapse)AuthorFilesLines
2012-07-07Rename AutoAttack to AttackErik Schilling1-153/+0
2012-03-10Moved the managing of NPC script coroutines into C++Thorbjørn Lindeijer1-2/+0
Rather than wrapping NPC functions up in coroutines in the Lua side, they are now managed on the C++ side as "script threads", which are essentially the same thing. The main purpose is that the server can now know whether any of these long running script interactions are still active, which will probably be useful when adding the ability to reload scripts. Reviewed-by: Erik Schilling
2012-03-05Added possibility to make a being attack an other beingErik Schilling1-14/+10
This allows the script to let the character perform a scripted attack but the character still gets xp and killed monsters give drops. You can now call: mana.being_damage(target, dmg, dmg_delta, accurancy, type, element, source, skill) While on it I also added checks to the being_damage function. Reviewed-by: bjorn, Bertram.
2011-09-28Started to fix the autoattack system.Yohann Ferreira1-28/+20
I simply made the default autoattack look for the default skill and add exp to it when killing monsters. Now the player can earn xp again even if it's not well handled between two logins.
2011-06-24Fixed autoattacks basic handling.Yohann Ferreira1-0/+12
The server is now using the autoattacks system to perform damage based on the attack's timer. I also added a default bare knuckle attack when the character is unequipped. As a result, maggots can be killed again with bare hands now. Known issues left: This isn't tested against equipment changes for now, and the client isn't in sync with the attacks speed. Reviewed-by: Crush.
2011-05-15Fixed compile with GCC 4.6Thorbjørn Lindeijer1-0/+1
* Include cstddef to be able to use size_t * Replace NULL with 0 since NULL doesn't happen to be defined in any included header file
2011-03-15Some code style cleanups in AutoAttack classThorbjørn Lindeijer1-24/+58
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-0/+120
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.