Chore: fixed config for umbrella
This commit is contained in:
18
.vscode/settings.json
vendored
18
.vscode/settings.json
vendored
@@ -11,14 +11,26 @@
|
|||||||
"Lua.diagnostics.globals": [
|
"Lua.diagnostics.globals": [
|
||||||
"ModOptions",
|
"ModOptions",
|
||||||
"zombie",
|
"zombie",
|
||||||
"_"
|
"_",
|
||||||
],
|
],
|
||||||
"Lua.format.defaultConfig": {
|
"Lua.format.defaultConfig": {
|
||||||
"indent_style": "space",
|
"indent_style": "space",
|
||||||
"indent_size": "2"
|
"indent_size": "2"
|
||||||
},
|
},
|
||||||
"Lua.workspace.library": [
|
"Lua.workspace.library": [
|
||||||
"C:\\Users\\picch\\Zomboid\\Umbrella",
|
"${addons}/umbrella-unstable/module/library"
|
||||||
"C:\\Users\\picch\\Zomboid\\mods\\The-Only-Cure"
|
|
||||||
],
|
],
|
||||||
|
"Lua.runtime.version": "Lua 5.1",
|
||||||
|
"Lua.runtime.path": [
|
||||||
|
"?.lua",
|
||||||
|
"?/init.lua",
|
||||||
|
"server/?.lua"
|
||||||
|
],
|
||||||
|
"Lua.completion.requireSeparator": "/",
|
||||||
|
"Lua.runtime.builtin": {
|
||||||
|
"debug": "disable",
|
||||||
|
"io": "disable",
|
||||||
|
"package": "disable"
|
||||||
|
},
|
||||||
|
"Lua.workspace.checkThirdParty": false
|
||||||
}
|
}
|
||||||
@@ -129,7 +129,7 @@ function ISBaseTimedAction:perform()
|
|||||||
|
|
||||||
|
|
||||||
-- First check level of perks. if already at max, skip
|
-- First check level of perks. if already at max, skip
|
||||||
LocalPlayerController.playerObj:getPerkLevel(perkAmp)
|
-- LocalPlayerController.playerObj:getPerkLevel(perkAmp) -- todo
|
||||||
local amputatedLimbs = CachedDataHandler.GetAmputatedLimbs(LocalPlayerController.username)
|
local amputatedLimbs = CachedDataHandler.GetAmputatedLimbs(LocalPlayerController.username)
|
||||||
local xp = self.maxTime / 100
|
local xp = self.maxTime / 100
|
||||||
|
|
||||||
@@ -173,7 +173,7 @@ end
|
|||||||
--* Equipping items overrides *--
|
--* Equipping items overrides *--
|
||||||
local og_ISEquipWeaponAction_isValid = ISEquipWeaponAction.isValid
|
local og_ISEquipWeaponAction_isValid = ISEquipWeaponAction.isValid
|
||||||
---Add a condition to check the feasibility of having 2 handed weapons or if both arms are cut off
|
---Add a condition to check the feasibility of having 2 handed weapons or if both arms are cut off
|
||||||
---@return boolean
|
---@return boolean?
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
function ISEquipWeaponAction:isValid()
|
function ISEquipWeaponAction:isValid()
|
||||||
local isValid = og_ISEquipWeaponAction_isValid(self)
|
local isValid = og_ISEquipWeaponAction_isValid(self)
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ function CleanWoundAction:new(doctor, otherPlayer, bandage, bodyPart)
|
|||||||
if doctor:isTimedActionInstant() then
|
if doctor:isTimedActionInstant() then
|
||||||
o.maxTime = 1
|
o.maxTime = 1
|
||||||
end
|
end
|
||||||
if doctor:getAccessLevel() ~= "None" then
|
if doctor:getAccessLevel() ~= "None" then -- TODO Fix for B42
|
||||||
o.doctorLevel = 10
|
o.doctorLevel = 10
|
||||||
end
|
end
|
||||||
return o
|
return o
|
||||||
|
|||||||
Reference in New Issue
Block a user