Added a new argument to REMOVEINVENOBJ hook (from Mr.Stalin)

Fixed inconsistent return value of get_npc_level.
This commit is contained in:
NovaRain
2019-02-25 12:26:42 +08:00
parent ae3d4fcb69
commit 627c0df484
6 changed files with 53 additions and 36 deletions
+2 -1
View File
@@ -103,6 +103,7 @@
#define RMOBJ_RM_MULT_OBJS 4563866
#define RMOBJ_REPLACE_WEAPON 4658526
#define RMOBJ_THROW 4266040
#define RMOBJ_SUB_CONTAINER 4683191 // search and remove the item from a container inside of an inventory
// offsets for get_proto_data
#define PROTO_PID (1)
@@ -348,7 +349,7 @@
#define OBJ_DATA_FID (0x20)
#define OBJ_DATA_ELEVATION (0x28)
#define OBJ_DATA_PID (0x64)
#define OBJ_DATA_CID (0x68)
#define OBJ_DATA_CID (0x68) // combat id, used for savegame
#define OBJ_DATA_SID (0x78)
// items
#define OBJ_DATA_CUR_CHARGES (0x3C)