Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
------------------------------
开了海难兼容鱼人房制作就有问题,modmain.lua中把if (GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC)) then下面Recipe中"mermhouse“改成”mermhouse_sw", 在
mermhouserecipe.atlas = "images/inventoryimages/mermhouse.xml"
下面加入
mermhouserecipe.product = "mermhouse"
再把GLOBAL.RECIPE_GAME_TYPE.COMMON改成GLOBAL.RECIPE_GAME_TYPE.ROG
就能在巨人国正常制造
不过制造栏图片还不能正常显示,最好在images/inventoryimages目录下加入mermhouse_sw.tex和mermhouse_sw.xml,图片可以把原有的mermhouse.tex改名(原文件)保留,xml同理。再在Asset下照葫芦画瓢加一个
Asset("ATLAS", "images/inventoryimages/mermhouse_sw.xml"),
把mermhouserecipe.atlas = "images/inventoryimages/mermhouse.xml"中mermhouse.xml改成mermhouse_sw.xml
对了,
@龍淵LoongY
能不能把渔夫的房子加到巨人国来,我试过可以制造
if inst:HasTag("fire") and inst.components.burnable then
inst.components.burnable:Extinguish()
end
inst.components.lootdropper:DropLoot()
for i=1 , math.floor(V_S16N/2) do
GLOBAL.SpawnPrefab(V_S16).Transform:SetPosition(inst.Transform:GetWorldPosition())
end
for i=1 , math.floor(V_S17N/2) do
GLOBAL.SpawnPrefab(V_S17).Transform:SetPosition(inst.Transform:GetWorldPosition())
end
for i=1 , math.floor(V_S18N/2) do
GLOBAL.SpawnPrefab(V_S18).Transform:SetPosition(inst.Transform:GetWorldPosition())
end
inst.SoundEmitter:PlaySound("dontstarve/common/destroy_wood")
inst:Remove()
end
local function Destroyablefn(inst)
inst:AddComponent("lootdropper")
inst:AddComponent("workable")
inst.components.workable:SetWorkAction(GLOBAL.ACTIONS.HAMMER)
inst.components.workable:SetWorkLeft(4)
inst.components.workable:SetOnFinishCallback(OnHammered)
end
local function DigUp(inst)
if (GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC)) then
for i=1,math.floor(V_S4N/2) do
inst.components.lootdropper:SpawnLootPrefab(V_S4)
end
for i=1,math.floor(V_S5N/2) do
inst.components.lootdropper:SpawnLootPrefab(V_S5)
end
for i=1,math.floor(V_S6N/2) do
inst.components.lootdropper:SpawnLootPrefab(V_S6)
end
end
inst:Remove()
end
接上文
local function diggablefn(inst)
if not inst.components.lootdropper then
inst:AddComponent("lootdropper")
end
if not inst.components.workable then
inst:AddComponent("workable")
inst.components.workable:SetWorkAction(GLOBAL.ACTIONS.DIG)
inst.components.workable:SetOnFinishCallback(DigUp)
inst.components.workable:SetWorkLeft(1)
end
inst.components.workable:SetWorkAction(GLOBAL.ACTIONS.DIG)
inst.components.workable:SetOnFinishCallback(DigUp)
inst.components.workable:SetWorkLeft(1)
inst:AddComponent("diggable")
end
AddPrefabPostInit("pond",diggablefn)
AddPrefabPostInit("walrus_camp", Destroyablefn)
这个代码修改了海象屋子和池塘,所有池塘可以铲掉‘返还建造花费一半(向下取整),所有海象屋子可以锤掉,返还材料一半向下取整。不要问我是谁,我的名字叫雷锋
鱼人房:鱼x4,木板x4,石材x2
池塘:鱼x4,黄金铲子x1,石材x2
高鸟巢:草x10,高鸟蛋x2,石材x2
兔子洞:兔子x1,黄金铲子x1,石材x2
浣熊猫屋:木板x4,浣熊尾巴x2,绳子x2
海象窝:海象牙x1,冰块x6,石材x4
暴躁猴窝:香蕉x3,木板x2,便便x4
蜗牛窝:蜗牛黏液x3,蜗牛壳x2,大理石x2
狗窝:狗牙x4,骨片(骨头)x4,怪物肉x4
(个人觉得配方都挺合理,适合建筑党后期打造大型豪华基地。)
这几天刚想用代码敲出这些建筑,感觉很作弊,(自己建造的东西有目标性 东奔西跑收集大量材料,完成后也有成就感)
于是看到作者就把这个MOD写出来了,非常感谢~