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

@ -276,7 +276,31 @@ npc.FAVORITE_ITEMS.female["phase1"] = {
hint = "I could really do with an apple..."},
{item = "farming:bread",
response = "Thanks, you didn't have to, but thanks...",
hint = "Some fresh bread would be good!"}
hint = "Some fresh bread would be good!"},
{item = "farming:seed_cotton",
response = "Thank you, I will plant this really soon",
hint = "I would like to have some cotton plants around"},
{item = "farming:seed_wheat",
response = "Thank you! These seeds will make a good wheat plant!",
hint = "I've been thinking I should get wheat seeds"},
{item = "flowers:rose",
response = "Thanks...",
hint = "Red roses make a nice gift!"},
{item = "flowers:geranium",
response = "Oh, for me? Thank you!",
hint = "Blue geraniums are so beautiful"},
{item = "default:clay_lump",
response = "Thanks! Now, what can I do with this...",
hint = "If I had some clay lump, I may do some pottery"},
{item = "mobs:meat_raw",
response = "This will be great for tonight! Thanks",
hint = "A good dinner always have meat"},
{item = "mobs:leather",
response = "Thank you! I needed this leather!",
hint = "If only I could get some leather"},
{item = "default:sapling",
response = "Now I can plant that tree...",
hint = "I really would like an apple tree close by."}
}
npc.FAVORITE_ITEMS.female["phase2"] = {
{item = "farming:cotton",
@ -320,12 +344,36 @@ npc.FAVORITE_ITEMS.female["phase6"] = {
}
-- Male
npc.FAVORITE_ITEMS.male["phase1"] = {
{item = "default:apple",
{item = "default:apple",
response = "Hey, I really wanted an apple, thank you!",
hint = "I could really do with an apple..."},
{item = "farming:bread",
response = "Thanks, you didn't have to, but thanks...",
hint = "Some fresh bread would be good!"}
hint = "Some fresh bread would be good!"},
{item = "farming:seed_cotton",
response = "Thank you, I will plant this really soon",
hint = "I would like to have some cotton plants around"},
{item = "farming:seed_wheat",
response = "Thank you! These seeds will make a good wheat plant!",
hint = "I've been thinking I should get wheat seeds"},
{item = "default:wood",
response = "Thanks, I needed this.",
hint = "Some wood without having to cut a tree would be good."},
{item = "default:tree",
response = "Excellent to get that furnace going!",
hint = "I need logs, do you have some?"},
{item = "default:clay_lump",
response = "Thanks! Now, what can I do with this...",
hint = "I wish I had some clay"},
{item = "mobs:meat_raw",
response = "This makes a great meal. Thank you",
hint = "Meat is always great"},
{item = "mobs:leather",
response = "Time to tan some leathers!",
hint = "I have been needing leather these days"},
{item = "default:sapling",
response = "Thanks, I will plant this right now",
hint = "I really would like an apple tree close by."}
}
npc.FAVORITE_ITEMS.male["phase2"] = {
{item = "farming:cotton",