summaryrefslogtreecommitdiff
path: root/src/statuseffect.h
AgeCommit message (Collapse)AuthorFilesLines
2025-02-25Added tooltips to status effect iconsThorbjørn Lindeijer1-0/+1
Based on the name attributes in the status-effect XML elements. Also cleanup the code a little. Since the MiniStatusWindow now adjust its size to respect the status icons, those icons no longer have to be drawn from the Viewport.
2025-02-25Added support for option, opt1, opt2, opt3 status effect fieldsThorbjørn Lindeijer1-78/+20
Supporting these fields is necessary to correctly identify status effects sent by tmwAthena. This is a manual port of ac4e40a1408ad4d6fbcfce9d2bc6a0bc187ea5a4, 542d2ba78d84e0fa051e0620ccab5fb3a0c711e3 and 8800940bb4b94f6dab7dcf80bf0abc3e3b09e35f from M+.
2025-02-25Some code cleanups related to status iconsThorbjørn Lindeijer1-2/+3
Fixed leaking of Sprite instances.
2025-02-21Merged AnimatedSprite into SpriteThorbjørn Lindeijer1-2/+2
With AnimatedSprite being the only implementation of the Sprite interface, there was no longer a point in separating these.
2025-01-21Replaced include guards with #pragma onceThorbjørn Lindeijer1-4/+1
Thanks to https://github.com/cgmb/guardonce and a follow-up replace to remove duplicated newlines at end of file: find src -type f -name '*.h' -exec \ sed --in-place -e :a -e '/^\n*$/{$d;N;};/\n$/ba' {} \; Source: https://unix.stackexchange.com/questions/81685/how-to-remove-multiple-newlines-at-eof Fixes compile on macOS, which appears to have been due to the EVENT_H include guard.
2025-01-20Wrapped xmlNodePtr access with a Node classThorbjørn Lindeijer1-1/+1
Slightly more ergonomic and this eliminates direct libxml2 usage from many places.
2024-03-02Changed server type to "enum class"Thorbjørn Lindeijer1-3/+2
2013-05-04Client-side settings are now available from settings.xmlPrzemysław Grzywacz1-2/+7
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2010-07-29Changed the items loading to handle a new 'attack-action' parameter.Yohann Ferreira1-2/+2
The old behaviour was to load the weapon-type value and do many unnecessary checks and transformation on it: The weapon-type was transformed using hard-coded values into an integer enum value. The exact same thing was done on the opposite side in the animation files before comparing the two. As both data were string values, I simplified all of it by using the value taken in items.xml to call the corresponding action. This now also permit to set up new attack animation in items.xml and in the playerset.xml without having the need to modify the client code. Last but not least, the weapon-type value was used by both the skills and the actions and avoided the possibility to set up a definite action for a weapon-type. Note: The weapon-type parameter will become deprecated for the server in favor of a 'skill' parameter to reflect more it's actual use. This patch is the first step to fix Manasource issue: #157.
2010-06-03Unload loaded DBs before loading them againJared Adams1-0/+1
This greatly simplifies handling DBs when changing states. No more need to manage unloading in Client (except when exiting). Reviewed-by: Thorbjørn Lindeijer
2010-02-21Made tick counter and framerate limiter work during login sequenceThorbjørn Lindeijer1-1/+0
Much code was moved from main() to the new Client::exec(). This new event loop now integrates with the Game class, so that the tick counter and framerate limiter apply universally. The Client class is also responsible for some things that used to be global variables. Mantis-issue: ...
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-12Standardize header orderJared Adams1-1/+2
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2009-03-12Fix leaks in status effectsJared Adams1-1/+3
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2008-12-09Status particle effects: when looking up block IDs (effect IDs for otherFate1-0/+7
players), make sure to initialise if needed Status particle effects: properly delete particles after effect has worn off
2008-12-07Some small updates and reformattingBjørn Lindeijer1-11/+11
2008-12-07Added client-side status change handlers (text, icon, particle effect, audio).Fate1-0/+101