Age | Commit message (Collapse) | Author | Files | Lines |
|
that position. This makes it so that when resolutions are changed, the
default locations stay relative to the window's position, and not the
800x600 screen resolution.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
The client can now differentiate between the following hit types:
- hit (normal)
- critical (full attack)
- multi (more than one hit at once, currently not used)
- reflect (reflected damage, currently not used)
- flee (dodging criticals)
The Being's showCrit method is now merged into takeDamage.
Being's takeDamage and handleAttack now both get the opponent, the amount of
damage and the attack type as parameter.
|
|
as removed a redundant call for sizing in the minimap class.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
the maximum width and height. Exceeding the minumum width and height
is a desireable case in some situations.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
As Bjorn did in 0a106989bd16c48525f01cb8515809e74f37a8d8
|
|
This was needed in the Minimap class, but not migrated out to the Window
class until now.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
smaller than the minimum width and height (a check that should have
been enforced in the first place), as well as modified the NPC list and
text dialogs to remember where they were when they were moved or resized
last.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
The cancel button in Video configuration window doesn't switch back the
"show name" setting to the original state. This patch fixes that.
|
|
|
|
This patch makes item links work in any chatLog() message, not only chatSend()
as before. I enabled it for the "You picked <nr> <item>" message by explicitly
adding [] around the item name in the string.
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
|
|
The first tiles of each tileset got shuffled.
|
|
|
|
Both packets do the same, but we should be explicit anyways. Also,
seperate out NPC client packets.
|
|
of adding overridable close functionality to the Window class. Now, if
you need a close button, but need to do something different, or in
addition to the Window close functionality, you can override it and do
that action.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
code. While this shouldn't do too much, if anything, for performance, it
makes maintenence easier in the future if only one set of ints needs to
be modified rather than 9 when they do the same thing.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
as some other optimizations that I could see that cut down on some
unneeded redraws, which in turn improved frame rates slightly.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Using unsigned rarely makes sense, especially when the server doesn't
use it either. Other uses of unsigned should be reviewed.
In all other cases, int is the fastest integer type on any architecture.
Using 8 or 16 bits can basically only be a memory optimization.
|
|
occur on each swing action.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
constant, particle attacks are now weapon specific, so that different
weapons can have different attacks.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
encountered when stepping someone through a 64-bit install on Ubuntu.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
server. TODO: Make this externally configurable, so that specific
servers can specify what they use specific sprite IDs for, as well as
specifying good defaults as well, in case that configuration file isn't
found.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
animation (case 1 is NOT death, but actually idle in SMSG_PLAYER_UPDATE_1)
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Loosely based on TMW commit f04a8713ffc83db8b3dc4a472b28aad25a2b2bd1
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
forgot to use it.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
text dialog.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Based on TMW commit a996d4bff3cc5a35ee5cdb6cb5bdef920cf44120
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
through the list requires the use of the mouse wheel at the moment),
fixed wrapping behavior for wrapping around lists to actually wrap
around lists properly, and placed a few checks for current_npc where
they were assumed before which could cause the client to hang or crash
in case the NPC is no longer around.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
(which would happen from using the keyboard instead of the mouse).
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Let it be set by the netcode if the NPC responds. This caused a movement
bug if they didn't.
|
|
THis will prevent loading updates when -u is used, and prevent error
messages in the log when -u is used.
|
|
Make it possible to sell non-stackable items all at once by introducing
"Duplicate Items" and a Shop that can handle them. Also fix a
trivial bug to correctly preview you money while selling.
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
|
|
other languages as well).
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
enable/disable this effect (default is off) and another option to disable the pickup notification in the chat log (default is on).
|
|
the two have been merged.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
The string utility methods are now grouped together in the stringutils.h
header. Also, a toLower method was added for convenience.
|
|
It shouldn't have been moved to where it was in the first place, as it
doesn't have any effecxt on that code, but was originally on the other
code (where it is now).
|