Trade: Working buy/sell trade mechanism.

Various cleanups and modularizations for supporting dedicated traders.
Data: Added more favorite items for phase 1.
This commit is contained in:
zorman2000
2016-12-15 20:51:06 -05:00
parent 376c6e1df0
commit f717c3f1e5
5 changed files with 128 additions and 32 deletions

View File

@@ -34,7 +34,7 @@ function npc.dialogue.show_options_dialogue(self,
for i = 1, #responses do
local y = 0.8;
if i > 1 then
y = (0.7 * i)
y = (0.75 * i)
end
formspec = formspec.."button_exit[0.5,"
..(y - 0.5)..";6,0.5;opt"..tostring(i)..";"..responses[i].text.."]"