安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






Currently, there are crafts for flour, coffee, tea bags, vegetable oil, and popcorn."
Unfortunately, I'm currently working on three different projects, leaving time only for sleep and work.
function Seed_Apple(items, result, player)
local seed = 0
for i = 0, items:size() - 1 do
if instanceof(items:get(i), "Food") then
if items:get(i):isRotten() then
seed = ZombRand(1, 3)
else
seed = ZombRand(4, 9)
end
end
end
player:getInventory():AddItems("SHFR.Appleseed", seed)
end
'items' is an array of objects that represent the items being processed.
For each item in the array, I check if the item is of type "Food" using the instanceof(items:get(i), "Food") function.
If the item is food, I then check if it is rotten using the isRotten() method, which returns a boolean.
Depending on whether the item is rotten or not, I set the number of seeds to be added. Rotten items yield fewer seeds (ZombRand(1, 3)), while fresh items yield more seeds (ZombRand(4, 9)).
Finally, the seeds are added to the player's inventory with player:getInventory():AddItems("SHFR.Appleseed", seed).
Thank you so much for your enthusiasm! I'm really glad you love the mod. Your support means a lot and motivates me to keep improving it. Stay tuned for more updates!
Best regards,
ZooM
I'm glad to hear you're having fun with the mod!
I apologize for not noticing this earlier. I'm currently changing jobs and have been very busy. However, I will try to fix this bug today. Thank you for bringing this to my attention. If you have any ideas for improving the mod, I'm happy to hear them.
Best regards,
ZooM
Thank you so much for your positive feedback on my mod! I'm thrilled to hear that you're enjoying it. Your suggestion about allowing the harvesting of seeds from rotten veggies and fruits is a great idea. I will definitely add the "AllowRottenItem
" line to the main version of the mod.
Thank you again for your contribution and support! If you have any more suggestions or feedback, feel free to share.
Best regards,
ZooM
I also have an error where planting lettuce produces green onions. I've written about the error in the Bug Reporting Thread.
/* семена яблоки */
recipe Claim Apple Seeds {
Apple,
Result:Apple,
Time:150.0,
OnGiveXP:Recipe.OnGiveXP.SHFRFarming3,
Category:Farming,
NeedToBeLearn:False,
Sound:GetingSeeds,
AllowRottenItem:true,
RemoveResultItem:true,
OnCreate: Seed_Apple,
}
I borrowed the "AllowRottenItem:true," from the Seedy+ mod and i'm looking on how to reduce the number of seed given if rotten (i'm still learning).
Author: don't worry i won't post the file, people will have to edit it themselves. And a big thank you for the mod.
Later phase only seeds.
Could you add beets.
the mod i made for eaxamble hace some with normal grow, but other like cabbage where or you harvest the cabage or you harvest the seeds