summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorSimon Edwardsson <simon@crossnet.se>2004-09-26 19:01:56 +0000
committerSimon Edwardsson <simon@crossnet.se>2004-09-26 19:01:56 +0000
commitf141416397c8fd7f65fd9cd363a99257ca769d86 (patch)
tree72146533436ba487b35c8795194f729c220935f5 /src/game.cpp
parent9f25a358b6a10b9abeb93cd42129254a331d80cf (diff)
downloadmana-f141416397c8fd7f65fd9cd363a99257ca769d86.tar.gz
mana-f141416397c8fd7f65fd9cd363a99257ca769d86.tar.bz2
mana-f141416397c8fd7f65fd9cd363a99257ca769d86.tar.xz
mana-f141416397c8fd7f65fd9cd363a99257ca769d86.zip
The invetory now gets real items, and you can use them.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index cd494b8a..ebf1ddd6 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -462,6 +462,20 @@ void do_parse() {
show_npc_dialog = 1;
}
break;
+ case 0x01ee: //Get the items
+ for(int loop = 0; loop < RFIFOW(4); loop++)
+ {
+ inventory.addItem(loop,RFIFOW(10+18*loop));
+ }
+ break;
+ case 0x00a8: // could I use the item?
+ // index RFIFOW(2)
+ // succes or not RFIFOB(6);
+ if(RFIFOB(6))
+ {
+ inventory.addItem(RFIFOW(2),RFIFOW(4));
+ }
+ break;
// Warp
case 0x0091:
memset(map_path, '\0', 480);