五、修改料理食谱(含全部料理精确食谱)
下一页列出了一张食谱:
25
26
用记事本打开游戏目录\\data\\DLC0001\\scripts\\preparedfoods.lua文件,以奶油松饼(butterflymuffin)食谱为例:
奶油松饼 butterflymuffin = { 所用食材 test = function(cooker, names, tags) return names.butterflywings and not tags.meat and tags.veggie end, 优先顺序 重量 食物类型 补血量 补饥饿量 保鲜时间 补脑值 料理时间
其中:
},
priority = 1, weight = 1,
foodtype = \
health = TUNING.HEALING_MED, hunger = TUNING.CALORIES_LARGE, perishtime = TUNING.PERISH_SLOW, sanity = TUNING.SANITY_TINY, cooktime = 2,
所用食材:names.butterflywings(蝴蝶翅膀)、not tags.meat(不放肉)、tags.veggie(蔬菜)
食物类型:\(蔬菜),可以修改的选项为\(肉)
补血量:TUNING.HEALING_MED,(20点血),可以修改的选项为TUNING.HEALING_TINY,(1点血)、TUNING.HEALING_SMALL,(3点血)、TUNING.HEALING_MEDSMALL,(8点血)、TUNING.HEALING_MEDLARGE,(30点血)、TUNING.HEALING_LARGE,(40点血)、TUNING.HEALING_HUGE,(60点血)、TUNING.HEALING_SUPERHUGE,(100点血)
补饥饿量:TUNING.CALORIES_LARGE,(37.5点饥饿),可以修改的选项为TUNING.CALORIES_TINY,(9.375点饥饿)、TUNING.CALORIES_SMALL,(12.5点饥饿)、TUNING.CALORIES_MEDSMALL,(18.75点饥饿)、TUNING.CALORIES_MED,(25点饥饿)、TUNING.CALORIES_HUGE,(75点饥饿)、TUNING.CALORIES_SUPERHUGE,(150点饥饿)
保鲜时间:TUNING.PERISH_SLOW,(15天),可以修改的选项为TUNING.PERISH_ONE_DAY,(1天)、TUNING.PERISH_TWO_DAY,(2天)、TUNING.PERISH_SUPERFAST,(3天)、TUNING.PERISH_FAST,(6天)、TUNING.PERISH_MED,(10天)、TUNING.PERISH_PRESERVED,(20天)、TUNING.PERISH_SUPERSLOW,(40天)
补脑值:TUNING.SANITY_TINY,(5点脑),可以修改的选项为TUNING.SANITY_SUPERTINY,(1点脑)、TUNING.SANITY_SMALL,(10点脑)、TUNING.SANITY_MED,(15点脑)、TUNING.SANITY_MEDLARGE,(20点脑)、TUNING.SANITY_LARGE,(33点脑)、TUNING.SANITY_HUGE,(50点脑)
27
料理时间:2,(2小时),可以自行调整,比如修改为.1,就是0.1个小时
举例1(简化所用食材):将曼德拉草汤食谱(至少有1个曼德拉草)简化为4个树枝。用记事本打开游戏目录\\data\\DLC0001\\scripts\\preparedfoods.lua文件,将test = function(cooker, names, tags) return names.mandrake end,替换为test = function(cooker, names, tags) return names.twigs >= 4 end,
即可在游戏中仅以4个树枝煮出曼德拉草汤
举例2(添加料理品种):用4个浆果煮出蓝色象鼻(trunk_winter)。用记事本打开游戏目录\\data\\DLC0001\\scripts\\preparedfoods.lua文件,在下列内容: cooktime = .25, },
的下一行插入以下内容: trunk_winter = { test = function(cooker, names, tags) return names.berries >= 4 end, priority = 1, foodtype = \ health = TUNING.HEALING_SUPERHUGE, hunger = TUNING.CALORIES_SUPERHUGE, perishtime = TUNING.PERISH_SUPERSLOW, sanity = TUNING.SANITY_HUGE, cooktime = .1, },
即可用4个浆果煮出蓝色象鼻,补血100点、补饥饿150点、保鲜时间40天、补50点脑、料理时间0.1小时。煮熟后会显示开盖的空锅,点空锅即可拿出蓝色象鼻。注意不要将不可食用、不会腐烂的物品添加为料理,比如黄金等,会改变其属性、使其存在保鲜时间。可添加为料理的食物名称见修改技巧最后一项“常用物品中英文名称”
备注:全部料理精确食谱
butterflymuffin(奶油松饼)
28
所用食材:names.butterflywings(蝴蝶翅膀)、not tags.meat(不放肉)、tags.veggie(蔬菜)
食物类型:\(蔬菜)
补血量:TUNING.HEALING_MED,(20点血)
补饥饿量:TUNING.CALORIES_LARGE,(37.5点饥饿) 保鲜时间:TUNING.PERISH_SLOW,(15天) 补脑值:TUNING.SANITY_TINY,(5点脑) 料理时间:2,(2小时)
frogglebunwich(青蛙圆面包三明治)
所用食材:names.froglegs or names.froglegs_cooked(生、熟蛙腿)、tags.veggie(蔬菜) 食物类型:\(肉)
补血量:TUNING.HEALING_MED,(8点血)
补饥饿量:TUNING.CALORIES_LARGE,(37.5点饥饿) 保鲜时间:TUNING.PERISH_SLOW,(15天) 补脑值:TUNING.SANITY_TINY,(5点脑) 料理时间:2,(2小时)
taffy(太妃糖)
所用食材:tags.sweetener and tags.sweetener >= 3(蜂蜜或蜂巢大于等于3)、not tags.meat(不放肉)
食物类型:\(蔬菜)
补血量:-TUNING.HEALING_SMALL,(-3点血)
补饥饿量:TUNING.CALORIES_SMALL*2,(25点饥饿) 保鲜时间:TUNING.PERISH_SLOW,(15天) 补脑值:TUNING.SANITY_MED,(15点脑) 料理时间:2,(2小时)
pumpkincookie(南瓜饼)
所用食材:names.pumpkin or names.pumpkin_cooked(生、熟南瓜)、tags.sweetener and tags.sweetener >= 2(蜂蜜或蜂巢大于等于2) 食物类型:\(蔬菜) 补血量:0,(0点血)
补饥饿量:TUNING.CALORIES_LARGE,(37.5点饥饿) 保鲜时间:TUNING.PERISH_MED,(10天) 补脑值:TUNING.SANITY_MED,(15点脑) 料理时间:2,(2小时)
stuffedeggplant(香酥茄盒)
所用食材:names.eggplant or names.eggplant_cooked(生、熟茄子)、tags.veggie and tags.veggie > 1(蔬菜大于1)
食物类型:\(蔬菜)
补血量:TUNING.HEALING_SMALL,(3点血)
补饥饿量:TUNING.CALORIES_LARGE,(37.5点饥饿)
29