Skip to content

Commit

Permalink
Release v2.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaakma committed May 15, 2021
1 parent e9aaee1 commit 5b66cf1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
30 changes: 14 additions & 16 deletions Data Files/MWSE/mods/mer/ashfall/camping/gearPlacement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,21 @@ local common = require("mer.ashfall.common.common")

local function onDropGear(e)
local gearValues = common.staticConfigs.placementConfig[string.lower(e.reference.object.id)]
common.log:debug("ref: %s, source mod: %s", e.reference.object.id, e.reference.object.sourceMod:lower() )
if gearValues or e.reference.object.sourceMod:lower() == "ashfall.esp" then
if gearValues or (e.reference.object.sourceMod and e.reference.object.sourceMod:lower() == "ashfall.esp") then
gearValues = gearValues or { maxSteepness = 0.5 }
--timer.frame.delayOneFrame(function()
if gearValues.maxSteepness then
common.helper.orientRefToGround{ ref = e.reference, maxSteepness = gearValues.maxSteepness }
end
if gearValues.drop then
common.log:debug("Dropping %s by %s", e.reference.object.name, gearValues.drop)
e.reference.position = {
e.reference.position.x,
e.reference.position.y,
e.reference.position.z - gearValues.drop,
}
end
event.trigger("Ashfall:GearDropped", e)
-- end)
if gearValues.maxSteepness then
common.helper.orientRefToGround{ ref = e.reference, maxSteepness = gearValues.maxSteepness }
end
if gearValues.drop then
common.log:debug("Dropping %s by %s", e.reference.object.name, gearValues.drop)
e.reference.position = {
e.reference.position.x,
e.reference.position.y,
e.reference.position.z - gearValues.drop,
}
end
event.trigger("Ashfall:GearDropped", e)

end
end

Expand Down
2 changes: 1 addition & 1 deletion Data Files/MWSE/mods/mer/ashfall/quickKeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ end

event.register("filterInventorySelect", function(e)
if isBottle(e) then e.filter = true end
end)
end, { filter = "quick" })
2 changes: 1 addition & 1 deletion Data Files/MWSE/mods/mer/ashfall/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.1.7
v2.1.8

0 comments on commit 5b66cf1

Please sign in to comment.