饥荒联机版

饥荒联机版

94 个评价
More Drops JEM
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
43.108 KB
2018 年 5 月 29 日 上午 3:14
1 项改动说明 ( 查看 )

订阅以下载
More Drops JEM

描述
Makes trees, boulders, and other resource sources drop more. Also Adds a configurable chance to drop gems.

All credit to original author!
24 条留言
Leigh G. 10 月 1 日 上午 8:41 
sadly it is crashing while mining ice.... :(
swann3rz 9 月 13 日 下午 3:35 
Still crashes when mining ice.
ry_chiu 7 月 19 日 下午 6:49 
挖冰时崩溃,包括流星摧毁地上的冰块
[Spirit] 2024 年 12 月 3 日 下午 1:03 
Crashing when mining Ice
Cherbie 2024 年 5 月 23 日 上午 5:02 
Crash game when play like 6-15 days ++
not compatible with some other mod
For me it a "[ANR]More In tumbleweed" mod
TDDO0o 2023 年 12 月 20 日 下午 6:57 
Guys check the comment sent by LuiJua117, it works! The glacier bug fixed!:steamhappy:
Valoneu 2023 年 12 月 19 日 上午 7:06 
yep
Cún Cool 2023 年 12 月 2 日 下午 5:56 
crash game when mining ice bro. Fix it please :<
Chupucchino 2023 年 10 月 28 日 上午 9:41 
fix bug when mining ice please
LuiJua117 2023 年 10 月 3 日 下午 1:02 
Edit the Steam/Steamapps/Common/Don't Starve Together/mods/workshop-1397586934/scripts/glaciers.LUA file.

A reference to the onwork function is stored in the oldonwork variable. However, this function has evolved and now takes 4 parameters: inst, worker, workleft, numworks. We therefore need to modify both the signature of the function we wish to redefine, and the call to oldonwork.

My file now looks like this:

local utils = require("utils")

local function ImproveGlacier(inst)
local oldonwork = inst.components.workable.onwork
inst.components.workable.onwork = function(inst, worker, workleft, numworks)
--Allow ice to spawn while mining
utils.DropLootRandom(inst, "ice", .1)
oldonwork(inst, worker, workleft, numworks)
end
end

return ImproveGlacier