From 3120be4f673c3e106c47ee250ca02179bacec52f Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 8 Oct 2015 09:10:08 -0400 Subject: improved inventory, debug flags --- src/gameplay.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gameplay.cpp') diff --git a/src/gameplay.cpp b/src/gameplay.cpp index b6b939a..a690203 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -31,6 +31,12 @@ int giveTestQuest(NPC *speaker){ return 0; } +int giveStuff(NPC *speaker){ + ui::dialogBox(speaker->name,"Take my stuff you ugly whore"); + player->inv->addItem(SWORD_ITEM,1); + return 0; +} + void initEverything(void){ unsigned int i; @@ -59,5 +65,6 @@ void initEverything(void){ NPCp(entity[1])->addAIFunc(giveTestQuest); for(i=0;iinWorld=test; + if(entity[i]->type==NPCT&&i>1)NPCp(entity[i])->addAIFunc(giveStuff); } } -- cgit v1.2.3