Actions: Added some fundamental movement actions.

Places: Added functions for adding and getting places, and for finding places of specific types. Added beds, chairs and chest as places.
NPC: Added places map and action queue.
This commit is contained in:
zorman2000
2016-12-18 12:32:39 -05:00
parent a2e38ab85f
commit 646b422082
6 changed files with 275 additions and 7 deletions

View File

@ -1,4 +1,4 @@
-- NPC trading abilities by Zorman2000
-- Trading code for Advanced NPC by Zorman2000
npc.trade = {}
@ -125,8 +125,6 @@ end
-- This function will return an offer object, based
-- on the items the NPC has.
-- Criteria: The NPC will offer to sell its items
-- if it doesn't has any currency.
function npc.trade.get_casual_trade_offer(self, offer_type)
local result = {}
-- Check offer type