diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-22 10:52:28 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-22 10:52:28 +0100 |
commit | 5aa34d1f2b0034f0f07009a83c611fa7de41a63e (patch) | |
tree | e855145485fce9cb851e4db66e01a305e53ec72d | |
parent | 3f0c9291baebc09c764a022e69f250689465e44f (diff) | |
download | manamarket-5aa34d1f2b0034f0f07009a83c611fa7de41a63e.tar.gz manamarket-5aa34d1f2b0034f0f07009a83c611fa7de41a63e.tar.bz2 manamarket-5aa34d1f2b0034f0f07009a83c611fa7de41a63e.tar.xz manamarket-5aa34d1f2b0034f0f07009a83c611fa7de41a63e.zip |
Revert "oops"
This reverts commit 10a88e29dd96066663fe104fe7bcbd7739bbc729.
-rw-r--r-- | net/packet_handler.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/net/packet_handler.py b/net/packet_handler.py deleted file mode 100644 index 48a0a6d..0000000 --- a/net/packet_handler.py +++ /dev/null @@ -1,24 +0,0 @@ -from packet import * -from protocol import * - -def handle_stat_update_1(packet, player_node, logging): - stat_type = packet.read_int16() - value = packet.read_int32() - if stat_type == 0x0005: - player_node.HP = value - elif stat_type == 0x0006: - player_node.MaxHP = value - elif stat_type == 0x0007: - player_node.MP = value - elif stat_type == 0x0008: - player_node.MaxMP = value - elif stat_type == 0x000b: - player_node.LEVEL = value - elif stat_type == 0x0018: - logging.info("Weight changed from %s/%s to %s/%s", \ - player_node.WEIGHT, player_node.MaxWEIGHT, value, player_node.MaxWEIGHT) - player_node.WEIGHT = value - elif stat_type == 0x0019: - logging.info("Max Weight: %s", value) - player_node.MaxWEIGHT = value - |