饥荒函数修改
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
for k = 0, num_lightnings do
local rad = math.random(3, 15)
local angle = k*((4*PI)/num_lightnings)
local pos = Vector3(reader.Transform:GetWorldPosition()) + Vector3(rad*math.cos(angle), 0, rad*math.sin(angle))
WOLFGANG_HEALTH_MIGHTY = 3000,
WOLFGANG_HEALTH_NORMAL = 2000,
WOLFGANG_HEALTH_WIMPY = 1500,
用记事本打开游戏目录\data\scripts\prefabs\player_common.lua文件,在ponents.health:SetMaxHealth(TUNING.WILSON_HEALTH)的下一行插入以下内容:
WILSON_WALK_SPEED = 4,
WILSON_RUN_SPEED = 6,
修改为:
WILSON_WALK_SPEED = 8,
WILSON_RUN_SPEED = 12,
SpawnPrefab("resurrectionstone").Transform:SetPosition(inst.Transform:GetWorldPosition())
ponents.health:StartRegen(30, 10)
即可让主角自动回血,其中30为血量,10为10秒回血一次,可自行调整
用记事本打开游戏目录\data\scripts\tuning.lua文件,将local wilson_attack = 34修改为local wilson_attack = 500即可
inst:Remove()
ponents.fueled:SetDepletedFn(function(inst) inst:Remove() end)
修改为:
--inst:Remove()
end
的下一行插入以下内容:
function firefn(inst, reader)
local num_lightnings = 32
ponents.sanity:DoDelta(TUNING.SANITY_LARGE)
reader:StartThread(function()
GetSeasonManager():DoLightningStrike(pos)
Sleep(math.random( .3, .5))
end
end)
return true
end
主角复活后,再点身下的复活石,可使复活石再次完整
用记事本打开游戏目录\data\scripts\tuning.lua文件,将EFFIGY_HEALTH_PENALTY = 30,修改为EFFIGY_HEALTH_PENALTY = 0,即可
用记事本打开游戏目录\data\scripts\prefabs\torch.lua文件,依次查找以下内容:
ponents.health:SetInvincible(true)
神 之矛
local function onunequip(inst, owner)
owner.AnimState:Hide("ARM_carry")
owner.AnimState:Show("ARM_normal")
WOLFGANG_HEALTH_NORMAL = 200,
WOLFGANG_HEALTH_WIMPY = 150,
修改为:
local wilson_health = 1500
WX78_MIN_HEALTH = 1000,
WX78_MAX_HEALTH = 4000,
ponents.fueled:SetDepletedFn(function(inst) inst:Remove() end)
即可让火炬不用目录\data\scripts\prefabs\walls.lua文件,在inst:AddTag("noauradamage")的下一行插入以下内容:
用记事本打开游戏目录\data\scripts\tuning.lua文件,将以下内容:
local wilson_health = 150
WX78_MIN_HEALTH = 100,
WX78_MAX_HEALTH = 400,
WOLFGANG_HEALTH_MIGHTY = 300,
local rad = math.random(3, 15)
local angle = k*((4*PI)/num_lightnings)
local pos = Vector3(reader.Transform:GetWorldPosition()) + Vector3(rad*math.cos(angle), 0, rad*math.sin(angle))
WOLFGANG_HEALTH_MIGHTY = 3000,
WOLFGANG_HEALTH_NORMAL = 2000,
WOLFGANG_HEALTH_WIMPY = 1500,
用记事本打开游戏目录\data\scripts\prefabs\player_common.lua文件,在ponents.health:SetMaxHealth(TUNING.WILSON_HEALTH)的下一行插入以下内容:
WILSON_WALK_SPEED = 4,
WILSON_RUN_SPEED = 6,
修改为:
WILSON_WALK_SPEED = 8,
WILSON_RUN_SPEED = 12,
SpawnPrefab("resurrectionstone").Transform:SetPosition(inst.Transform:GetWorldPosition())
ponents.health:StartRegen(30, 10)
即可让主角自动回血,其中30为血量,10为10秒回血一次,可自行调整
用记事本打开游戏目录\data\scripts\tuning.lua文件,将local wilson_attack = 34修改为local wilson_attack = 500即可
inst:Remove()
ponents.fueled:SetDepletedFn(function(inst) inst:Remove() end)
修改为:
--inst:Remove()
end
的下一行插入以下内容:
function firefn(inst, reader)
local num_lightnings = 32
ponents.sanity:DoDelta(TUNING.SANITY_LARGE)
reader:StartThread(function()
GetSeasonManager():DoLightningStrike(pos)
Sleep(math.random( .3, .5))
end
end)
return true
end
主角复活后,再点身下的复活石,可使复活石再次完整
用记事本打开游戏目录\data\scripts\tuning.lua文件,将EFFIGY_HEALTH_PENALTY = 30,修改为EFFIGY_HEALTH_PENALTY = 0,即可
用记事本打开游戏目录\data\scripts\prefabs\torch.lua文件,依次查找以下内容:
ponents.health:SetInvincible(true)
神 之矛
local function onunequip(inst, owner)
owner.AnimState:Hide("ARM_carry")
owner.AnimState:Show("ARM_normal")
WOLFGANG_HEALTH_NORMAL = 200,
WOLFGANG_HEALTH_WIMPY = 150,
修改为:
local wilson_health = 1500
WX78_MIN_HEALTH = 1000,
WX78_MAX_HEALTH = 4000,
ponents.fueled:SetDepletedFn(function(inst) inst:Remove() end)
即可让火炬不用目录\data\scripts\prefabs\walls.lua文件,在inst:AddTag("noauradamage")的下一行插入以下内容:
用记事本打开游戏目录\data\scripts\tuning.lua文件,将以下内容:
local wilson_health = 150
WX78_MIN_HEALTH = 100,
WX78_MAX_HEALTH = 400,
WOLFGANG_HEALTH_MIGHTY = 300,