Commit Graph

6 Commits

Author SHA1 Message Date
zorman2000
fcc1968179 Trade: Added dedicated trader's formspec. 2017-02-01 21:16:31 -05:00
zorman2000
d7a8de5b86 Trade: A list of buyable items is now calculated with the maximum amount buyable (given the currency), the minimum buyable amount and the minimum price.
Port casual trading to use this system.
Refactor the offer function to also support dedicated trading.
2017-01-29 20:08:34 -05:00
zorman2000
75af34beb5 Dialogue: full support for flag-based dialogues.
Added support for nested dialogue trees.
Trade: (WIP) Refactor code to support dedicated trading.
2017-01-26 12:55:04 -05:00
zorman2000
d78fee695e Actions: added experimental, still WIP path-finding code in Lua 2016-12-28 22:10:06 -05:00
zorman2000
c15e8232d5 Trade: Fully working buy and sell offers.
Improvements to prices and price-related mechanisms.
NPC: Improved get_item_name and get_item_count methods.
2016-12-17 12:01:35 -05:00
zorman2000
83c9b2c681 Cleanup: moved relationships into own file.
Moved trading and pricing code to another folder, separate files.
NPC: Added further inventory functionality.
Trading: Added price data structure, which allows for setting prices for items. Also includes some default definitions.
2016-12-11 20:52:57 -05:00