Favorite food

From Matcha Flavoured Wiki
Jump to navigation Jump to search
Favorite food
TypeTrading mechanic

A villager's favorite food is one extra trade that every employed villager gets after its first trade: it buys one serving of a randomly chosen food for an Obol, once. It is the only way to sell most of the pack's foods.

Mechanics

When the data pack loads, it starts a check that runs 3 seconds later and then every 30 seconds.[1][2] Each check looks at every loaded villager that:

  • has a profession (any profession other than none), and
  • has more than 0 villager experience, meaning the player has traded with it at least once, and
  • has not been given a favorite food yet.

For each such villager, the pack picks a random whole number from 0 to 41 and runs the matching one of 42 food functions.[3] The number is passed to the function name through a macro, food_trades/food_$(num).[4] That function appends one offer to the end of the villager's trade list and tags the villager so it is never picked again:[5]

Villager wants Villager gives Uses
1 of the favorite food (4 for a chicken nugget) 1 Obol Obol 1

Every one of the 42 foods has the same 1 in 42 chance. The food in the trade carries the full item data of the pack's current version of that food, so it has to be a food made or found in the current version; older copies with a different format do not match.

Because the check needs the villager to have experience, the favorite food appears only after the first trade with a villager, and never on an unemployed villager or a nitwit. The favorite food is a villager trade only; the Wandering Trader does not get one.

An Amnestic clears the villager's favorite food flag. Since the villager keeps its experience, it is given a new random favorite food shortly after it takes a new profession.[6]

Foods

# Food Amount
0 Apple Empanada Apple Empanada 1
1 Bokguk Bokguk 1
2 Brachio Chicken Nugget Brachio Chicken Nugget 4
3 Brownie Brownie 1
4 Bruschetta Bruschetta 1
5 Bubbling Mead Bubbling Mead 1
6 Buñuelo Buñuelo 1
7 Carrot Cupcake Carrot Cupcake 1
8 Cheese Pizza Cheese Pizza 1
9 Chocolate Chip Cookie Chocolate Chip Cookie 1
10 Crimson Stroganoff Crimson Stroganoff 1
11 Fish and Chips Fish and Chips 1
12 French Toast French Toast 1
13 Gimmari Gimmari 1
14 Glow Berry Crumble Glow Berry Crumble 1
15 Gnocchi Gnocchi 1
16 Honied French Toast Honied French Toast 1
17 Ice Cream Ice Cream 1
18 Kontomire-Dandelion Stew Kontomire-Dandelion Stew 1
19 Latke Latke 1
20 Lumpia Lumpia 1
21 Mead Mead 1
22 Meat Pizza Meat Pizza 1
23 Melon Sorbet Melon Sorbet 1
24 Mushroom Pizza Mushroom Pizza 1
25 Apple Cinnamon Oatmeal Apple Cinnamon Oatmeal 1
26 Pad Thai Pad Thai 1
27 Ptero Chicken Nugget Ptero Chicken Nugget 4
28 Puerquito Puerquito 1
29 Pumpkin Empanada Pumpkin Empanada 1
30 Toadstool Stroganoff Toadstool Stroganoff 1
31 Stego Chicken Nugget Stego Chicken Nugget 4
32 Stroganoff Stroganoff 1
33 Sweet Berry Danish Sweet Berry Danish 1
34 Tricero Chicken Nugget Tricero Chicken Nugget 4
35 Warped Pizza Warped Pizza 1
36 Green Curry Green Curry 1
37 Honey Ginger Tea Honey Ginger Tea 1
38 Japanese Curry Japanese Curry 1
39 Paneer Makhani Paneer Makhani 1
40 Pumpkin Curry Pumpkin Curry 1
41 Tonkotsu Ramen Tonkotsu Ramen 1

All 42 foods sell for 1 obol, including the curries and ramen, which take the most steps to cook.

Trivia

  • The functions and tags use the internal names favorite_food, trader_update and foodChecked.
  • The favorite food trade is added with a data command rather than through the pack's trade sets, which is why it does not appear on the profession pages' trade tables.

See also

References